Klasse OutputFormat
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.ant.cyclonedx.OutputFormat
public class OutputFormat
extends org.apache.tools.ant.types.EnumeratedAttribute
CycloneDX format to use for the SBOM.
Accepts the enum constants like JSON as well as the
lowercase version json and the special value
all. The values other than all are directly provided by
CycloneDX Core's enum.
all means the task will emit SBOMs in all formats
supported by the selected SpecVersion - i.e. only XML for
versions 1.1 and 1.2 and both JSON and XML afterwards.
-
Feldübersicht
FelderVon Klasse geerbte Felder org.apache.tools.ant.types.EnumeratedAttribute
value -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungIterable<org.cyclonedx.Format> getCycloneDxFormats(org.cyclonedx.Version version) Translates this instance toFormats.String[]Von Klasse geerbte Methoden org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Felddetails
-
JSON
JSON output format.
-
-
Konstruktordetails
-
OutputFormat
public OutputFormat()
-
-
Methodendetails
-
getValues
- Angegeben von:
getValuesin Klasseorg.apache.tools.ant.types.EnumeratedAttribute
-
getCycloneDxFormats
Translates this instance toFormats.- Parameter:
version- spec version- Gibt zurück:
- all suported formats of version
- Löst aus:
org.apache.tools.ant.BuildException- if the value can not be translated.
-