ComponentScope (ant-cyclonedx API)
Description: declaration: package: org.apache.ant.cyclonedx, class: ComponentScope

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

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `static ComponentScope`
  `from(org.cyclonedx.model.Component.Scope scope)`
  Maps a CycloneDX scope.
  `org.cyclonedx.model.Component.Scope`
  `getScope()`
  Translates this instance to a `Component.Scope`.
  `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

  - ### ComponentScope

    public ComponentScope()

- ## Methodendetails

  - ### getValues

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

  - ### getScope

    public org.cyclonedx.model.Component.Scope getScope()
    Translates this instance to a `Component.Scope`.
    Gibt zurück:
      translated scope
    Löst aus:
      `org.apache.tools.ant.BuildException` - if the value can not be translated.

  - ### from

    public static ComponentScope from(org.cyclonedx.model.Component.Scope scope)
    Maps a CycloneDX scope.
    Parameter:
      `scope` - CycloneDX scope.
    Gibt zurück:
      translated scope