Package org.apache.ant.cyclonedx
Class Organization
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.types.DataType
-
- org.apache.ant.cyclonedx.Organization
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Organization extends org.apache.tools.ant.types.DataTypeOrganization appears as "manufacturer" or "supplier" of components or the SBOM itself.The CycloneDX specification supports more information for an organization than this type currently exposes.
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 or other attributes are allowed.
-
-
Constructor Summary
Constructors Constructor Description Organization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredUrl(org.apache.tools.ant.types.resources.URLResource url)Adds an url of the organization.protected OrganizationgetRef()Perform the check for circular references and return the referenced Organization.voidsetName(java.lang.String name)Sets the name of the organization.org.cyclonedx.model.OrganizationalEntitytoOrganizationalEntity()Translates this organisation to its CycloneDX counterpart.-
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
-
setName
public void setName(java.lang.String name)
Sets the name of the organization.- Parameters:
name- organization name
-
addConfiguredUrl
public void addConfiguredUrl(org.apache.tools.ant.types.resources.URLResource url)
Adds an url of the organization.- Parameters:
url- organization URI
-
toOrganizationalEntity
public org.cyclonedx.model.OrganizationalEntity toOrganizationalEntity()
Translates this organisation to its CycloneDX counterpart.- Returns:
- the CycloneDX version of this instance.
-
getRef
protected Organization getRef()
Perform the check for circular references and return the referenced Organization.- Returns:
Organization.
-
-