Package org.apache.ant.cyclonedx
Class ExternalReferenceSet
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.types.DataType
-
- org.apache.ant.cyclonedx.ExternalReferenceSet
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ExternalReferenceSet extends org.apache.tools.ant.types.DataTypeA container for a collection ofExternalReferences.This class is a type exposed by this Ant Library. When using the inherited
refidattribute it can reference an instance defined previously - in which case no child elements are allowed.
-
-
Constructor Summary
Constructors Constructor Description ExternalReferenceSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredExternalReference(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 ExternalReferenceSetgetRef()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
-
-
-
-
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.
-
-