Package org.apache.ant.cyclonedx
Class Component.Dependency
- java.lang.Object
-
- org.apache.ant.cyclonedx.Component.Dependency
-
- Enclosing class:
- Component
public static class Component.Dependency extends java.lang.ObjectRepresents a dependency of a component.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<Component.Dependency>DependencyComparatorComparator for dependencies.
-
Constructor Summary
Constructors Constructor Description Dependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBomRef()Looks up the bom-ref of the dependency.voidsetBomRef(java.lang.String bomRef)Identifies the dependency by its bom-ref.voidsetComponentRef(org.apache.tools.ant.types.Reference componentRef)Identifies the dependency by its Antidattribute.
-
-
-
Field Detail
-
DependencyComparator
public static final java.util.Comparator<Component.Dependency> DependencyComparator
Comparator for dependencies.Sorts by bom-ref.
- Since:
- CycloneDX Antlib 0.2
-
-
Method Detail
-
setBomRef
public void setBomRef(java.lang.String bomRef)
Identifies the dependency by its bom-ref.- Parameters:
bomRef- dependency's bom-ref
-
setComponentRef
public void setComponentRef(org.apache.tools.ant.types.Reference componentRef)
Identifies the dependency by its Antidattribute.- Parameters:
componentRef- reference to component that constitutes the dependency
-
getBomRef
public java.lang.String getBomRef()
Looks up the bom-ref of the dependency.- Returns:
- bom-ref of the dependency.
-
-