Package org.apache.ant.cyclonedx
Class ComponentScope
- java.lang.Object
-
- org.apache.tools.ant.types.EnumeratedAttribute
-
- org.apache.ant.cyclonedx.ComponentScope
-
public class ComponentScope extends org.apache.tools.ant.types.EnumeratedAttributeCycloneDX component type.Accepts the enum constants like
OPTIONALas well as the lowercase versionoptional. The values are directly provided by CycloneDX Core's enum.
-
-
Constructor Summary
Constructors Constructor Description ComponentScope()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentScopefrom(org.cyclonedx.model.Component.Scope scope)Maps a CycloneDX scope.org.cyclonedx.model.Component.ScopegetScope()Translates this instance to aComponent.Scope.java.lang.String[]getValues()
-
-
-
Method Detail
-
getValues
public java.lang.String[] getValues()
- Specified by:
getValuesin classorg.apache.tools.ant.types.EnumeratedAttribute
-
getScope
public org.cyclonedx.model.Component.Scope getScope()
Translates this instance to aComponent.Scope.- Returns:
- translated scope
- Throws:
org.apache.tools.ant.BuildException- if the value can not be translated.
-
from
public static ComponentScope from(org.cyclonedx.model.Component.Scope scope)
Maps a CycloneDX scope.- Parameters:
scope- CycloneDX scope.- Returns:
- translated scope
-
-