Package org.spdx.rdfparser.model
Class SpdxNoneElement
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.model.SpdxElement
org.spdx.rdfparser.model.SpdxConstantElement
org.spdx.rdfparser.model.SpdxNoneElement
public class SpdxNoneElement extends SpdxConstantElement
This SPDX element represents no SPDX element at all.
This element should only be used on the right hand side of relationships to represent no SPDX element
is related to the subject.
This element has no properties and a fixed ID of "NONE".
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static intNONE_ELEMENT_HASHCODEstatic StringNONE_ELEMENT_IDstatic StringNONE_ELEMENT_URIFields inherited from class org.spdx.rdfparser.model.SpdxElement
annotations, comment, name, relationshipsFields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description SpdxNoneElement()SpdxNoneElement(IModelContainer container, org.apache.jena.graph.Node elementNode) -
Method Summary
Modifier and Type Method Description SpdxNoneElementclone()booleanequals(Object o)StringgetId()The ID is a unique identify for the SPDX element.org.apache.jena.rdf.model.ResourcegetType(org.apache.jena.rdf.model.Model model)StringgetUri(IModelContainer modelContainer)Get the URI for this RDF object.inthashCode()StringtoString()Methods inherited from class org.spdx.rdfparser.model.SpdxConstantElement
addAnnotation, addRelationship, equivalent, getPropertiesFromModel, populateModel, setAnnotations, setComment, setId, setName, setRelationships, verifyMethods inherited from class org.spdx.rdfparser.model.SpdxElement
addNameToWarnings, arraysEquivalent, arraysEquivalent, clone, cloneAnnotations, cloneRelationships, equivalent, equivalentConsideringNull, equivalentConsideringNull, getAnnotations, getComment, getName, getNamePropertyName, getRelationshipsMethods inherited from class org.spdx.rdfparser.model.RdfModelObject
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, createResource, createResource, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleCrossRefPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, SetPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode
-
Field Details
-
NONE_ELEMENT_ID
- See Also:
- Constant Field Values
-
NONE_ELEMENT_HASHCODE
public static final int NONE_ELEMENT_HASHCODE- See Also:
- Constant Field Values
-
NONE_ELEMENT_URI
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SpdxNoneElement
public SpdxNoneElement(IModelContainer container, org.apache.jena.graph.Node elementNode) throws InvalidSPDXAnalysisException- Throws:
InvalidSPDXAnalysisException
-
SpdxNoneElement
public SpdxNoneElement()
-
-
Method Details
-
getId
Description copied from class:SpdxElementThe ID is a unique identify for the SPDX element. It is only required if this element is to be used outside of the RDF model containing the element.- Overrides:
getIdin classSpdxElement- Returns:
- the id
-
toString
- Overrides:
toStringin classSpdxElement
-
hashCode
public int hashCode()- Overrides:
hashCodein classRdfModelObject
-
equals
- Overrides:
equalsin classRdfModelObject
-
getType
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)- Overrides:
getTypein classSpdxElement- Returns:
- the RDF class name for the object
-
clone
- Overrides:
clonein classSpdxElement
-
getUri
Description copied from class:RdfModelObjectGet the URI for this RDF object. Null if this is for an anonomous node.- Overrides:
getUriin classSpdxElement- Returns:
- Throws:
InvalidSPDXAnalysisException
-