Klasse ExternalReference
java.lang.Object
org.apache.ant.cyclonedx.ExternalReference
An "external reference", i.e. a notable link for the component or
the SBOM itself.
External references must have a type and an URL. The sepcification also supports optional comments and hashes which are currently not supported.
External references appear as children of Component or
ExternalReferenceSet elements.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidSet the type of the external reference.voidSet the URL (actually URI) of the external reference.org.cyclonedx.model.ExternalReferenceMaps the instance to a CycloneDX ExternalReference.
-
Konstruktordetails
-
ExternalReference
public ExternalReference()
-
-
Methodendetails
-
setUrl
Set the URL (actually URI) of the external reference.Required. This setter does not validate the value actually follows the URI syntax.
- Parameter:
url- reference's URI
-
setType
Set the type of the external reference.Required.
Types defined by the specification or the enum names of CycloneDX Core (Java)'s type enum are accepted.
- Parameter:
type- reference's type
-
toCycloneDxExternalReference
public org.cyclonedx.model.ExternalReference toCycloneDxExternalReference()Maps the instance to a CycloneDX ExternalReference.- Gibt zurück:
- CycloneDX version of this instance.
-