Class ExternalReferenceSet

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ExternalReferenceSet
    extends org.apache.tools.ant.types.DataType
    A container for a collection of ExternalReferences.

    This class is a type exposed by this Ant Library. When using the inherited refid attribute it can reference an instance defined previously - in which case no child elements are allowed.

    • Field Summary

      • Fields inherited from class org.apache.tools.ant.types.DataType

        checked, ref
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConfiguredExternalReference​(ExternalReference ref)
      Adds an external reference to this set.
      java.util.Collection<org.cyclonedx.model.ExternalReference> getExternalReferences()
      Return the external references contained in this set.
      protected ExternalReferenceSet getRef()
      Perform the check for circular references and return the referenced ExternalReferenceSet.
      • Methods inherited from class org.apache.tools.ant.types.DataType

        checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExternalReferenceSet

        public ExternalReferenceSet()
    • Method Detail

      • addConfiguredExternalReference

        public void addConfiguredExternalReference​(ExternalReference ref)
        Adds an external reference to this set.
        Parameters:
        ref - reference to add
      • getExternalReferences

        public java.util.Collection<org.cyclonedx.model.ExternalReference> getExternalReferences()
        Return the external references contained in this set.
        Returns:
        external references contained in this set
      • getRef

        protected ExternalReferenceSet getRef()
        Perform the check for circular references and return the referenced ExternalReferenceSet.
        Returns:
        ExternalReferenceSet.