Class Component.Dependency

  • Enclosing class:
    Component

    public static class Component.Dependency
    extends java.lang.Object
    Represents a dependency of a component.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dependency()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBomRef()
      Looks up the bom-ref of the dependency.
      void setBomRef​(java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DependencyComparator

        public static final java.util.Comparator<Component.Dependency> DependencyComparator
        Comparator for dependencies.

        Sorts by bom-ref.

        Since:
        CycloneDX Antlib 0.2
    • Constructor Detail

      • Dependency

        public Dependency()
    • 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 Ant id attribute.
        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.