# 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
  Konstruktor
  Beschreibung
  `ComponentType()`

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `static ComponentType`
  `from(org.cyclonedx.model.Component.Type type)`
  Maps a CycloneDX type.
  `org.cyclonedx.model.Component.Type`
  `getType()`
  Translates this instance to a `Component.Type`.
  `String[]`
  `getValues()`

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

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

  ### Von Klasse geerbte Methoden Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Konstruktordetails

  - ### ComponentType

    public ComponentType()

- ## Methodendetails

  - ### getValues

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

  - ### getType

    public org.cyclonedx.model.Component.Type getType()
    Translates this instance to a `Component.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

    public static ComponentType from(org.cyclonedx.model.Component.Type type)
    Maps a CycloneDX type.
    Parameter:
      `type` - CycloneDX type.
    Gibt zurück:
      translated type