Package org.spdx.library.model
Class SimpleUriValue
java.lang.Object
org.spdx.library.model.SimpleUriValue
- All Implemented Interfaces:
IndividualUriValue
- Direct Known Subclasses:
ReferenceType
public class SimpleUriValue extends Object implements IndividualUriValue
Simple class to just store a URI value. The method toModelObject will convert / inflate the value back to
either an Enum (if the URI matches), an ExternalSpdxElement if it matches the pattern of an external SPDX element
or returns itself otherwise
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description SimpleUriValue(String uri)SimpleUriValue(IndividualUriValue fromIndividualValue) -
Method Summary
Modifier and Type Method Description booleanequals(Object comp)StringgetIndividualURI()inthashCode()ObjecttoModelObject(IModelStore store, String documentUri, ModelCopyManager copyManager)inflate the value back to either an Enum (if the URI matches), an ExternalSpdxElement if it matches the pattern of an external SPDX element or returns itself otherwise
-
Constructor Details
-
Method Details
-
getIndividualURI
- Specified by:
getIndividualURIin interfaceIndividualUriValue- Returns:
- a unique identifier for this value. Typically the namespace + the long name
-
toModelObject
public Object toModelObject(IModelStore store, String documentUri, ModelCopyManager copyManager) throws InvalidSPDXAnalysisExceptioninflate the value back to either an Enum (if the URI matches), an ExternalSpdxElement if it matches the pattern of an external SPDX element or returns itself otherwise- Parameters:
store-documentUri-copyManager- if non-null, implicitly copy any referenced properties from other model stores- Returns:
- Enum, ExternalSpdxElement or itself depending on the pattern
- Throws:
InvalidSPDXAnalysisException
-
equals
-
hashCode
public int hashCode()
-