Package io.quarkus.domino
Interface ProductInfo
-
- All Known Subinterfaces:
ProductInfo.Mutable
- All Known Implementing Classes:
ProductInfoImpl,ProductInfoImpl.Builder
public interface ProductInfoThis type would mostly map to a Cyclone DX component
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceProductInfo.Mutable
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ProductInfo.Mutablebuilder()static ProductInfofromFile(Path path)Read build info from the specified filestatic ProductInfofromStream(InputStream inputStream)Read config from an input streamStringgetCpe()StringgetDescription()StringgetGroup()StringgetId()StringgetName()StringgetPurl()ProductReleaseNotesgetReleaseNotes()StringgetStream()StringgetType()StringgetVersion()default ProductInfo.Mutablemutable()static ProductInfo.MutablemutableFromFile(Path path)Read config from the specified filedefault voidpersist(Path p)Persist this configuration to the specified file.
-
-
-
Method Detail
-
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
default ProductInfo.Mutable mutable()
-
persist
default void persist(Path p) throws IOException
Persist this configuration to the specified file.- Parameters:
p- Target path- Throws:
IOException- if the specified file can not be written to.
-
builder
static ProductInfo.Mutable builder()
- Returns:
- a new mutable instance
-
fromFile
static ProductInfo fromFile(Path path) throws IOException
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
static ProductInfo.Mutable mutableFromFile(Path path) throws IOException
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
static ProductInfo fromStream(InputStream inputStream) throws IOException
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
-
-