Klasse ComponentType
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.ant.cyclonedx.ComponentType
public class ComponentType
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 ComponentTypefrom(org.cyclonedx.model.Component.Type type) Maps a CycloneDX type.org.cyclonedx.model.Component.TypegetType()Translates this instance to aComponent.Type.String[]Von Klasse geerbte Methoden org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Konstruktordetails
-
ComponentType
public ComponentType()
-
-
Methodendetails
-
getValues
- Angegeben von:
getValuesin Klasseorg.apache.tools.ant.types.EnumeratedAttribute
-
getType
public org.cyclonedx.model.Component.Type getType()Translates this instance to aComponent.Type.- Gibt zurück:
- CycloneDX type of this instance
- Löst aus:
org.apache.tools.ant.BuildException- if the value can not be translated.
-
from
Maps a CycloneDX type.- Parameter:
type- CycloneDX type.- Gibt zurück:
- translated type
-