Klasse SpecVersion

java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.ant.cyclonedx.SpecVersion

public class SpecVersion extends org.apache.tools.ant.types.EnumeratedAttribute
CycloneDX specification version to use for the SBOM.

Accepts the enum constants like VERSION_16 as well as the human readable version 1.6. The values are directly provided by CycloneDX Core's enum.

  • Feldübersicht

    Felder
    Modifikator und Typ
    Feld
    Beschreibung
    static final SpecVersion
    Default spec version.

    Von Klasse geerbte Felder org.apache.tools.ant.types.EnumeratedAttribute

    value
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    boolean
    equals(Object other)
     
     
    org.cyclonedx.Version
    Translates this instance to a Version.
    int
     

    Von Klasse geerbte Methoden org.apache.tools.ant.types.EnumeratedAttribute

    containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString

    Von Klasse geerbte Methoden Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Felddetails

    • DEFAULT

      public static final SpecVersion DEFAULT
      Default spec version.
  • Konstruktordetails

    • SpecVersion

      public SpecVersion()
  • Methodendetails

    • getValues

      public String[] getValues()
      Angegeben von:
      getValues in Klasse org.apache.tools.ant.types.EnumeratedAttribute
    • getVersion

      public org.cyclonedx.Version getVersion()
      Translates this instance to a Version.
      Gibt zurück:
      CycloneDX version of this instance
      Löst aus:
      org.apache.tools.ant.BuildException - if the value can not be translated.
    • equals

      public boolean equals(Object other)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object