Package io.quarkus.domino
Interface ProductInfo
- All Known Subinterfaces:
ProductInfo.Mutable
- All Known Implementing Classes:
ProductInfoImpl,ProductInfoImpl.Builder
public interface ProductInfo
This type would mostly map to a Cyclone DX component
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductInfo.Mutablebuilder()static ProductInfoRead build info from the specified filestatic ProductInfofromStream(InputStream inputStream) Read config from an input streamgetCpe()getGroup()getId()getName()getPurl()getType()default ProductInfo.Mutablemutable()static ProductInfo.MutablemutableFromFile(Path path) Read config from the specified filedefault voidPersist this configuration to the specified file.
-
Method Details
-
getId
String getId() -
getStream
String getStream() -
getGroup
String getGroup() -
getName
String getName() -
getType
String getType() -
getVersion
String getVersion() -
getPurl
String getPurl() -
getCpe
String getCpe() -
getDescription
String getDescription() -
getReleaseNotes
ProductReleaseNotes getReleaseNotes() -
mutable
-
persist
Persist this configuration to the specified file.- Parameters:
p- Target path- Throws:
IOException- if the specified file can not be written to.
-
builder
- Returns:
- a new mutable instance
-
fromFile
Read build info from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only
ProductInfoobject - Throws:
IOException- in case of a failure
-
mutableFromFile
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- mutable
ProductInfoinstance - Throws:
IOException- in case of a failure
-
fromStream
Read config from an input stream- Parameters:
inputStream- input stream to read from- Returns:
- read-only
ProductInfoobject (empty/default for an empty file) - Throws:
IOException- in case of a failure
-