Package org.apache.ant.cyclonedx
Class CompositionAggregate
- java.lang.Object
-
- org.apache.tools.ant.types.EnumeratedAttribute
-
- org.apache.ant.cyclonedx.CompositionAggregate
-
public class CompositionAggregate extends org.apache.tools.ant.types.EnumeratedAttributeCycloneDX composition's aggregate type.Specifies an aggregate type that describes how complete a relationship of a composition is.
Accepts the enum constants like
COMPLETEas well as the lowercase versioncomplete. The values are directly provided by CycloneDX Core's enum.- Since:
- CycloneDX Antlib 0.2
-
-
Constructor Summary
Constructors Constructor Description CompositionAggregate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositionAggregatefrom(org.cyclonedx.model.Composition.Aggregate aggregate)Maps a CycloneDX Aggregate.org.cyclonedx.model.Composition.AggregategetAggregate()Translates this instance to aComposition.Aggregate.java.lang.String[]getValues()
-
-
-
Method Detail
-
getValues
public java.lang.String[] getValues()
- Specified by:
getValuesin classorg.apache.tools.ant.types.EnumeratedAttribute
-
getAggregate
public org.cyclonedx.model.Composition.Aggregate getAggregate()
Translates this instance to aComposition.Aggregate.- Returns:
- translated aggregate
- Throws:
org.apache.tools.ant.BuildException- if the value can not be translated.
-
from
public static CompositionAggregate from(org.cyclonedx.model.Composition.Aggregate aggregate)
Maps a CycloneDX Aggregate.- Parameters:
aggregate- CycloneDX aggregate.- Returns:
- translated aggregate
-
-