Package org.spdx.storage.compatv2
Class CompatibleModelStoreWrapper
- java.lang.Object
-
- org.spdx.storage.compatv2.CompatibleModelStoreWrapper
-
- All Implemented Interfaces:
AutoCloseable
,org.spdx.storage.IModelStore
public class CompatibleModelStoreWrapper extends Object implements org.spdx.storage.IModelStore
Wraps a model store providing a compatible interface to the 1.X version of the SPDX Java Library- Author:
- Gary O'Neall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompatibleModelStoreWrapper.TypedValueCompatV2
-
Field Summary
Fields Modifier and Type Field Description static String
DOAP_NAMESPACE
static String
LATEST_SPDX_2X_VERSION
static String
OWL_NAMESPACE
static String
RDF_NAMESPACE
static String
RDF_POINTER_NAMESPACE
static String
RDFS_NAMESPACE
static String
SPDX_NAMESPACE
static String
XML_SCHEMA_NAMESPACE
-
Constructor Summary
Constructors Constructor Description CompatibleModelStoreWrapper(org.spdx.storage.IModelStore baseStore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addValueToCollection(String documentUri, String id, String propertyName, Object value)
boolean
addValueToCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
boolean
addValueToCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
void
clearValueCollection(String documentUri, String id, String propertyName)
void
clearValueCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
void
clearValueCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
void
close()
boolean
collectionContains(String documentUri, String id, String propertyName, Object value)
boolean
collectionContains(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
boolean
collectionContains(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
int
collectionSize(String documentUri, String id, String propertyName)
int
collectionSize(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
int
collectionSize(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
void
create(String documentUri, String id, String type)
void
create(org.spdx.core.TypedValue typedValue)
void
delete(String documentUri)
void
delete(String documentUri, String id)
static String
documentUriIdToUri(String documentUri, String id, boolean anonymous)
static String
documentUriIdToUri(String documentUri, String id, org.spdx.storage.IModelStore store)
static String
documentUriToNamespace(String documentUri)
org.spdx.storage.IModelStore.IModelStoreLock
enterCriticalSection(boolean readLockRequested)
org.spdx.storage.IModelStore.IModelStoreLock
enterCriticalSection(String documentUri, boolean readLockRequested)
boolean
equals(Object comp)
boolean
exists(String uri)
boolean
exists(String documentUri, String id)
Stream<org.spdx.core.TypedValue>
getAllItems(String nameSpace, String typeFilter)
org.spdx.storage.IModelStore
getBaseModelStore()
Optional<String>
getCaseSensitiveId(String documentUri, String caseInsensitiveId)
org.spdx.storage.IModelStore.IdType
getIdType(String objectUri)
String
getNextId(org.spdx.storage.IModelStore.IdType idType)
String
getNextId(org.spdx.storage.IModelStore.IdType idType, String documentUri)
List<org.spdx.storage.PropertyDescriptor>
getPropertyValueDescriptors(String objectUri)
List<org.spdx.storage.PropertyDescriptor>
getPropertyValueDescriptors(String documentUri, String id)
Collection<String>
getPropertyValueNames(String objectUri)
Collection<String>
getPropertyValueNames(String documentUri, String id)
Optional<org.spdx.core.TypedValue>
getTypedValue(String objectUri)
Optional<org.spdx.core.TypedValue>
getTypedValue(String documentUri, String id)
Optional<Object>
getValue(String documentUri, String id, String propertyName)
Optional<Object>
getValue(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
Optional<Object>
getValue(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
int
hashCode()
boolean
isAnon(String objectUri)
boolean
isCollectionMembersAssignableTo(String documentUri, String id, String propertyName, Class<?> clazz)
boolean
isCollectionMembersAssignableTo(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
boolean
isCollectionMembersAssignableTo(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
boolean
isCollectionProperty(String documentUri, String id, String propertyName)
boolean
isCollectionProperty(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
boolean
isCollectionProperty(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
boolean
isPropertyValueAssignableTo(String documentUri, String id, String propertyName, Class<?> clazz)
boolean
isPropertyValueAssignableTo(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
boolean
isPropertyValueAssignableTo(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz, String specVersion)
void
leaveCriticalSection(org.spdx.storage.IModelStore.IModelStoreLock lock)
Iterator<Object>
listValues(String documentUri, String id, String propertyName)
Iterator<Object>
listValues(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
Iterator<Object>
listValues(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
static String
objectUriToId(boolean anon, String objectUri, String documentUri)
static String
objectUriToId(org.spdx.storage.IModelStore store, String objectUri, String documentUri)
static org.spdx.storage.PropertyDescriptor
propNameToPropDescriptor(String propName)
void
removeProperty(String documentUri, String id, String propertyName)
void
removeProperty(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor)
void
removeProperty(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor)
boolean
removeValueFromCollection(String documentUri, String id, String propertyName, Object value)
boolean
removeValueFromCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
boolean
removeValueFromCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
void
setValue(String documentUri, String id, String propertyName, Object value)
void
setValue(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
void
setValue(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value)
static org.spdx.core.TypedValue
typedValueFromDocUri(String documentUri, String id, boolean anonymous, String type)
Convenience method to convert an SPDX 2.X style typed value to the current TypedValuestatic org.spdx.core.TypedValue
typedValueFromDocUri(String documentUri, String id, org.spdx.storage.IModelStore store, String type)
Convenience method to convert an SPDX 2.X style typed value to the current TypedValue
-
-
-
Field Detail
-
LATEST_SPDX_2X_VERSION
public static final String LATEST_SPDX_2X_VERSION
- See Also:
- Constant Field Values
-
RDF_NAMESPACE
public static final String RDF_NAMESPACE
- See Also:
- Constant Field Values
-
RDFS_NAMESPACE
public static final String RDFS_NAMESPACE
- See Also:
- Constant Field Values
-
SPDX_NAMESPACE
public static final String SPDX_NAMESPACE
- See Also:
- Constant Field Values
-
DOAP_NAMESPACE
public static final String DOAP_NAMESPACE
- See Also:
- Constant Field Values
-
OWL_NAMESPACE
public static final String OWL_NAMESPACE
- See Also:
- Constant Field Values
-
RDF_POINTER_NAMESPACE
public static final String RDF_POINTER_NAMESPACE
- See Also:
- Constant Field Values
-
XML_SCHEMA_NAMESPACE
public static final String XML_SCHEMA_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
propNameToPropDescriptor
public static org.spdx.storage.PropertyDescriptor propNameToPropDescriptor(String propName)
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
exists
public boolean exists(String documentUri, String id)
- Parameters:
documentUri
- a nameSpace for the IDid
- unique ID within the SPDX document- Returns:
- true if the objectUri already exists for the documentUri
-
documentUriIdToUri
public static String documentUriIdToUri(String documentUri, String id, org.spdx.storage.IModelStore store)
- Parameters:
documentUri
- SPDX v2 Document URIid
- ID consistent with SPDX v2 specstore
- store used for the Document URI- Returns:
- true if the objectUri already exists for the documentUri
-
documentUriIdToUri
public static String documentUriIdToUri(String documentUri, String id, boolean anonymous)
- Parameters:
documentUri
- SPDX v2 Document URIid
- ID consistent with SPDX v2 specanonymous
- true of this is an anonymous ID- Returns:
- a URI based on the document URI and ID - if anonymous is true, the ID is returned
-
typedValueFromDocUri
public static org.spdx.core.TypedValue typedValueFromDocUri(String documentUri, String id, boolean anonymous, String type) throws org.spdx.core.SpdxInvalidIdException, org.spdx.core.SpdxInvalidTypeException, org.spdx.core.ModelRegistryException
Convenience method to convert an SPDX 2.X style typed value to the current TypedValue- Parameters:
documentUri
- SPDX v2 Document URIid
- ID consistent with SPDX v2 specanonymous
- true of this is an anonymous IDtype
- SPDX type- Returns:
- TypedValue with the proper Object URI formed by the documentUri and ID
- Throws:
org.spdx.core.SpdxInvalidIdException
- if the ID is not validorg.spdx.core.SpdxInvalidTypeException
- if the type is not validorg.spdx.core.ModelRegistryException
- if there is no model registered for the spec version
-
typedValueFromDocUri
public static org.spdx.core.TypedValue typedValueFromDocUri(String documentUri, String id, org.spdx.storage.IModelStore store, String type) throws org.spdx.core.SpdxInvalidIdException, org.spdx.core.SpdxInvalidTypeException, org.spdx.core.ModelRegistryException
Convenience method to convert an SPDX 2.X style typed value to the current TypedValue- Parameters:
documentUri
- SPDX v2 Document URIid
- ID consistent with SPDX v2 specstore
- store usedtype
- SPDX type- Returns:
- TypedValue with the proper Object URI formed by the documentUri and ID
- Throws:
org.spdx.core.SpdxInvalidIdException
- if the ID is not validorg.spdx.core.SpdxInvalidTypeException
- if the type is not validorg.spdx.core.ModelRegistryException
- if there is no model registered for the spec version
-
objectUriToId
public static String objectUriToId(org.spdx.storage.IModelStore store, String objectUri, String documentUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
store
- Store storing the objet URIobjectUri
- Object URIdocumentUri
- SPDX 2 document URI for the ID- Returns:
- the SPDX 2 compatible ID
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
objectUriToId
public static String objectUriToId(boolean anon, String objectUri, String documentUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
anon
- true if the ID type is anonymousobjectUri
- Object URIdocumentUri
- SPDX 2 document URI for the ID- Returns:
- the SPDX 2 compatible ID
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- on any SPDX exception
-
exists
public boolean exists(String uri)
- Specified by:
exists
in interfaceorg.spdx.storage.IModelStore
-
create
public void create(String documentUri, String id, String type) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
documentUri
- SPDX v2 spec document URIid
- SPDX IDtype
- type- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- on any SPDX exception
-
create
public void create(org.spdx.core.TypedValue typedValue) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
create
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getPropertyValueDescriptors
public List<org.spdx.storage.PropertyDescriptor> getPropertyValueDescriptors(String objectUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
getPropertyValueDescriptors
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getPropertyValueDescriptors
public List<org.spdx.storage.PropertyDescriptor> getPropertyValueDescriptors(String documentUri, String id) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getPropertyValueNames
public Collection<String> getPropertyValueNames(String objectUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
objectUri
- URI for the item- Returns:
- all property names stored for the Object URI
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- on any SPDX exception
-
getPropertyValueNames
public Collection<String> getPropertyValueNames(String documentUri, String id) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
documentUri
- document URIid
- ID for the item- Returns:
- all property names stored for the documentUri#id
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- on any SPDX exception
-
setValue
public void setValue(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
setValue
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
setValue
public void setValue(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
setValue
public void setValue(String documentUri, String id, String propertyName, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getValue
public Optional<Object> getValue(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
getValue
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getValue
public Optional<Object> getValue(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getValue
public Optional<Object> getValue(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getNextId
public String getNextId(org.spdx.storage.IModelStore.IdType idType, String documentUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getNextId
public String getNextId(org.spdx.storage.IModelStore.IdType idType) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
getNextId
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
removeProperty
public void removeProperty(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
removeProperty
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
removeProperty
public void removeProperty(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
removeProperty
public void removeProperty(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getAllItems
public Stream<org.spdx.core.TypedValue> getAllItems(String nameSpace, String typeFilter) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
getAllItems
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
enterCriticalSection
public org.spdx.storage.IModelStore.IModelStoreLock enterCriticalSection(boolean readLockRequested) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
enterCriticalSection
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
enterCriticalSection
public org.spdx.storage.IModelStore.IModelStoreLock enterCriticalSection(String documentUri, boolean readLockRequested) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
leaveCriticalSection
public void leaveCriticalSection(org.spdx.storage.IModelStore.IModelStoreLock lock)
- Specified by:
leaveCriticalSection
in interfaceorg.spdx.storage.IModelStore
-
removeValueFromCollection
public boolean removeValueFromCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
removeValueFromCollection
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
removeValueFromCollection
public boolean removeValueFromCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
removeValueFromCollection
public boolean removeValueFromCollection(String documentUri, String id, String propertyName, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionSize
public int collectionSize(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
collectionSize
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionSize
public int collectionSize(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionSize
public int collectionSize(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionContains
public boolean collectionContains(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
collectionContains
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionContains
public boolean collectionContains(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
collectionContains
public boolean collectionContains(String documentUri, String id, String propertyName, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
clearValueCollection
public void clearValueCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
clearValueCollection
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
clearValueCollection
public void clearValueCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
clearValueCollection
public void clearValueCollection(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
addValueToCollection
public boolean addValueToCollection(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
addValueToCollection
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
addValueToCollection
public boolean addValueToCollection(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
addValueToCollection
public boolean addValueToCollection(String documentUri, String id, String propertyName, Object value) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
listValues
public Iterator<Object> listValues(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
listValues
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
listValues
public Iterator<Object> listValues(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
listValues
public Iterator<Object> listValues(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionMembersAssignableTo
public boolean isCollectionMembersAssignableTo(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
isCollectionMembersAssignableTo
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionMembersAssignableTo
public boolean isCollectionMembersAssignableTo(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionMembersAssignableTo
public boolean isCollectionMembersAssignableTo(String documentUri, String id, String propertyName, Class<?> clazz) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isPropertyValueAssignableTo
public boolean isPropertyValueAssignableTo(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz, String specVersion) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
isPropertyValueAssignableTo
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isPropertyValueAssignableTo
public boolean isPropertyValueAssignableTo(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isPropertyValueAssignableTo
public boolean isPropertyValueAssignableTo(String documentUri, String id, String propertyName, Class<?> clazz) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionProperty
public boolean isCollectionProperty(String objectUri, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
isCollectionProperty
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionProperty
public boolean isCollectionProperty(String documentUri, String id, org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
isCollectionProperty
public boolean isCollectionProperty(String documentUri, String id, String propertyName) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getIdType
public org.spdx.storage.IModelStore.IdType getIdType(String objectUri)
- Specified by:
getIdType
in interfaceorg.spdx.storage.IModelStore
-
getCaseSensitiveId
public Optional<String> getCaseSensitiveId(String documentUri, String caseInsensitiveId)
- Specified by:
getCaseSensitiveId
in interfaceorg.spdx.storage.IModelStore
-
getTypedValue
public Optional<org.spdx.core.TypedValue> getTypedValue(String objectUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
getTypedValue
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getTypedValue
public Optional<org.spdx.core.TypedValue> getTypedValue(String documentUri, String id) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
delete
public void delete(String documentUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Specified by:
delete
in interfaceorg.spdx.storage.IModelStore
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
delete
public void delete(String documentUri, String id) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getBaseModelStore
public org.spdx.storage.IModelStore getBaseModelStore()
- Returns:
- the store this store wraps
-
isAnon
public boolean isAnon(String objectUri)
- Specified by:
isAnon
in interfaceorg.spdx.storage.IModelStore
-
-