Klasse ComponentScope
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.ant.cyclonedx.ComponentScope
public class ComponentScope
extends org.apache.tools.ant.types.EnumeratedAttribute
CycloneDX component type.
Accepts the enum constants like LIBRARY as well as the
lowercase version library. The values are directly provided
by CycloneDX Core's enum.
-
Feldübersicht
Von Klasse geerbte Felder org.apache.tools.ant.types.EnumeratedAttribute
value -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic ComponentScopefrom(org.cyclonedx.model.Component.Scope scope) Maps a CycloneDX scope.org.cyclonedx.model.Component.ScopegetScope()Translates this instance to aComponent.Scope.String[]Von Klasse geerbte Methoden org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Konstruktordetails
-
ComponentScope
public ComponentScope()
-
-
Methodendetails
-
getValues
- Angegeben von:
getValuesin Klasseorg.apache.tools.ant.types.EnumeratedAttribute
-
getScope
public org.cyclonedx.model.Component.Scope getScope()Translates this instance to aComponent.Scope.- Gibt zurück:
- translated scope
- Löst aus:
org.apache.tools.ant.BuildException- if the value can not be translated.
-
from
Maps a CycloneDX scope.- Parameter:
scope- CycloneDX scope.- Gibt zurück:
- translated scope
-