Class PropertySet

  • All Implemented Interfaces:
    java.lang.Cloneable

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

    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.

    Since:
    CycloneDX Antlib 0.2
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertySet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConfiguredProperty​(org.cyclonedx.model.Property property)
      Adds a property to the set.
      java.util.Collection<org.cyclonedx.model.Property> getProperties()
      Return the external references contained in this set.
      protected PropertySet getRef()
      Perform the check for circular references and return the referenced PropertySet.
      • 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

      • PropertySet

        public PropertySet()
    • Method Detail

      • addConfiguredProperty

        public void addConfiguredProperty​(org.cyclonedx.model.Property property)
        Adds a property to the set.
        Parameters:
        property - set property
      • getProperties

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

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