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

# Klasse Component.Dependency

java.lang.Object
org.apache.ant.cyclonedx.Component.Dependency

Umschließende Klasse:
  `Component`

public static class Component.Dependency extends Object
Represents a dependency of a component.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `Dependency()`

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `String`
  `getBomRef()`
  Looks up the bom-ref of the dependency.
  `void`
  `setBomRef(String bomRef)`
  Identifies the dependency by its bom-ref.
  `void`
  `setComponentRef(org.apache.tools.ant.types.Reference componentRef)`
  Identifies the dependency by its Ant `id` attribute.

  ### Von Klasse geerbte Methoden Object

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

- ## Konstruktordetails

  - ### Dependency

    public Dependency()

- ## Methodendetails

  - ### setBomRef

    public void setBomRef(String bomRef)
    Identifies the dependency by its bom-ref.
    Parameter:
      `bomRef` - dependency's bom-ref

  - ### setComponentRef

    public void setComponentRef(org.apache.tools.ant.types.Reference componentRef)
    Identifies the dependency by its Ant `id` attribute.
    Parameter:
      `componentRef` - reference to component that constitutes the dependency

  - ### getBomRef

    public String getBomRef()
    Looks up the bom-ref of the dependency.
    Gibt zurück:
      bom-ref of the dependency.