Uses of Class
org.spdx.core.InvalidSPDXAnalysisException
-
Packages that use InvalidSPDXAnalysisException Package Description org.spdx.core Common classes used by the SPDX model and libraryorg.spdx.licenseTemplate License template are used for matching licensesorg.spdx.storage Classes that implement the storage interfaces for reading and writing SPDX document properties -
-
Uses of InvalidSPDXAnalysisException in org.spdx.core
Subclasses of InvalidSPDXAnalysisException in org.spdx.core Modifier and Type Class Description class
DefaultStoreNotInitializedException
Exception where the default store is used before it has been initializedclass
DuplicateSpdxIdException
Exception for duplicate SPDX ID creationsclass
InvalidSpdxPropertyException
Invalid property name or value for an SPDX itemclass
ModelRegistryException
Exceptions related to a model registryclass
SpdxIdInUseException
Exception when an SPDX element is in use (e.g.class
SpdxIdNotFoundException
Exception for no SPDX identifier foundclass
SpdxInvalidIdException
Invalid SPDX identifierclass
SpdxInvalidTypeException
Invalid type for an SPDX propertyclass
SpdxObjectNotInStoreException
Exception when an SPDX ID or object was not found in a model storeMethods in org.spdx.core that throw InvalidSPDXAnalysisException Modifier and Type Method Description void
CoreModelObject. addPropertyValueToCollection(PropertyDescriptor propertyDescriptor, Object value)
Add a value to a collection of values associated with a property.static void
ModelObjectHelper. addValueToCollection(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, Object value, IModelCopyManager copyManager, String idPrefix)
Add a value to a collection of values associated with a property.void
CoreModelObject. clearValueCollection(PropertyDescriptor propertyDescriptor)
Clears a collection of values associated with a propertystatic void
ModelObjectHelper. clearValueCollection(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor)
Clears a collection of values associated with a property creating the property if it does not existvoid
IModelCopyManager. copy(IModelStore toStore, String toObjectUri, IModelStore fromStore, String fromObjectUri, String toSpecVersion, String toNamespace)
Copy an item from one Model Object Store to anotherTypedValue
IModelCopyManager. copy(IModelStore toStore, IModelStore fromStore, String sourceUri, String toSpecVersion, String toNamespace)
Copy an item from one Model Object Store to another using the source ID for the target unless it is anonymousvoid
CoreModelObject. copyFrom(CoreModelObject source)
Copy all the properties from the source objectCoreModelObject
ISpdxModelInfo. createExternalElement(IModelStore store, String uri, IModelCopyManager copyManager, Class<?> type, String specVersion)
CoreModelObject
ISpdxModelInfo. createModelObject(IModelStore modelStore, String objectUri, String type, IModelCopyManager copyManager, String specVersion, boolean create, String idPrefix)
IModelStore.IModelStoreLock
CoreModelObject. enterCriticalSection(boolean readLockRequested)
Enter a critical section.boolean
CoreModelObject. equivalent(CoreModelObject compare)
boolean
CoreModelObject. equivalent(CoreModelObject compare, boolean ignoreRelatedElements)
Optional<Boolean>
CoreModelObject. getBooleanPropertyValue(PropertyDescriptor propertyDescriptor)
Optional<Double>
CoreModelObject. getDoublePropertyValue(PropertyDescriptor propertyDescriptor)
Optional<Enum<?>>
CoreModelObject. getEnumPropertyValue(PropertyDescriptor propertyDescriptor)
Object
ModelRegistry. getExternalElement(IModelStore store, String uri, IModelCopyManager copyManager, Class<?> type, String specVersion)
Optional<Integer>
CoreModelObject. getIntegerPropertyValue(PropertyDescriptor propertyDescriptor)
Optional<Object>
CoreModelObject. getObjectPropertyValue(PropertyDescriptor propertyDescriptor)
Get an object value for a propertyOptional<Object>
CoreModelObject. getObjectPropertyValue(PropertyDescriptor propertyDescriptor, Class<?> type)
Get an object value for a propertystatic Optional<Object>
ModelObjectHelper. getObjectPropertyValue(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, IModelCopyManager copyManager, String specVersion, Class<?> type, String idPrefix)
Get an object value for a propertyModelCollection<?>
CoreModelObject. getObjectPropertyValueCollection(PropertyDescriptor propertyDescriptor, Class<?> type)
ModelSet<?>
CoreModelObject. getObjectPropertyValueSet(PropertyDescriptor propertyDescriptor, Class<?> type)
List<PropertyDescriptor>
CoreModelObject. getPropertyValueDescriptors()
String
CoreModelObject. getSpecVersion()
Collection<String>
CoreModelObject. getStringCollection(PropertyDescriptor propertyDescriptor)
Optional<String>
CoreModelObject. getStringPropertyValue(PropertyDescriptor propertyDescriptor)
CoreModelObject
ModelRegistry. inflateModelObject(IModelStore modelStore, String objectUri, String type, IModelCopyManager copyManager, String specVersion, boolean create, String idPrefix)
If the object exists in the model store, it will be "inflated" back to the Java object.boolean
CoreModelObject. isCollectionMembersAssignableTo(PropertyDescriptor propertyDescriptor, Class<?> clazz)
static Object
ModelObjectHelper. modelObjectToStoredObject(Object value, IModelStore modelStore, IModelCopyManager copyManager, String idPrefix)
Converts a model object to the object to be storedstatic Optional<Object>
ModelObjectHelper. optionalStoredObjectToModelObject(Optional<Object> value, IModelStore modelStore, IModelCopyManager copyManager, String specVersion, Class<?> type, String idPrefix)
Converts any typed value or IndividualValue objects to a ModelObject, returning an existing ModelObject if it exists or creates a new ModelObjectvoid
CoreModelObject. removeProperty(PropertyDescriptor propertyDescriptor)
Removes a property and its value from the model store if it existsstatic void
ModelObjectHelper. removeProperty(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor)
Removes a property and its value from the model store if it existsvoid
CoreModelObject. removePropertyValueFromCollection(PropertyDescriptor propertyDescriptor, Object value)
Remove a property value from a collectionstatic void
ModelObjectHelper. removePropertyValueFromCollection(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, Object value)
Remove a property value from a collectionstatic void
ModelObjectHelper. replacePropertyValueCollection(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, Collection<?> values, IModelCopyManager copyManager, String idPrefix)
Replace the entire value collection for a property.void
CoreModelObject. setPropertyValue(PropertyDescriptor propertyDescriptor, Object value)
Set a property value for a property descriptor, creating the property if necessarystatic void
ModelObjectHelper. setPropertyValue(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, Object value, IModelCopyManager copyManager, String idPrefix)
Set a property value for a property descriptor, creating the property if necessarystatic Object
ModelObjectHelper. storedObjectToModelObject(Object value, IModelStore modelStore, IModelCopyManager copyManager, String specVersion, Class<?> type, String idPrefix)
Converts any typed value or individual value objects to a ModelObject, returning an existing ModelObject if it exists or creates a new ModelObjectObject
SimpleUriValue. toModelObject(IModelStore store, IModelCopyManager copyManager, String specVersion, Class<?> type)
inflate the value back to either an Enum (if the URI matches), an Individual (if the URI matches), the modelObject (if the store contains the object matching the URI), or an ExternalObject if not in the storeTypedValue
CoreModelObject. toTypedValue()
Constructors in org.spdx.core with parameters of type InvalidSPDXAnalysisException Constructor Description RuntimeSpdxException(String message, InvalidSPDXAnalysisException cause)
RuntimeSpdxException(InvalidSPDXAnalysisException cause)
Constructors in org.spdx.core that throw InvalidSPDXAnalysisException Constructor Description CoreModelObject(String specVersion)
Create a new Model Object using an Anonymous ID with the default store and default document URICoreModelObject(String objectUri, String specVersion)
Open or create a model object with the default storeCoreModelObject(CoreModelObject.CoreModelObjectBuilder builder, String specVersion)
CoreModelObject(IModelStore modelStore, String objectUri, IModelCopyManager copyManager, boolean create, String specVersion, String idPrefix)
Creates a new model objectModelCollection(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, IModelCopyManager copyManager, Class<?> type, String specVersion, String idPrefix)
ModelSet(IModelStore modelStore, String objectUri, PropertyDescriptor propertyDescriptor, IModelCopyManager copyManager, Class<?> type, String specVersion, String idPrefix)
-
Uses of InvalidSPDXAnalysisException in org.spdx.licenseTemplate
Subclasses of InvalidSPDXAnalysisException in org.spdx.licenseTemplate Modifier and Type Class Description class
LicenseParserException
Exception caused by an invalid license expression -
Uses of InvalidSPDXAnalysisException in org.spdx.storage
Methods in org.spdx.storage that throw InvalidSPDXAnalysisException Modifier and Type Method Description boolean
IModelStore. addValueToCollection(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
Adds a value to a property collection creating the propertyDescriptor if it does not existboolean
NullModelStore. addValueToCollection(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
void
IModelStore.ModelUpdate. apply()
void
IModelStore. clearValueCollection(String objectUri, PropertyDescriptor propertyDescriptor)
Sets the value collection for the property to an empty collection creating the propertyDescriptor if it does not existvoid
NullModelStore. clearValueCollection(String objectUri, PropertyDescriptor propertyDescriptor)
boolean
IModelStore. collectionContains(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
boolean
NullModelStore. collectionContains(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
int
IModelStore. collectionSize(String objectUri, PropertyDescriptor propertyDescriptor)
int
NullModelStore. collectionSize(String objectUri, PropertyDescriptor propertyDescriptor)
void
IModelStore. create(TypedValue typedValue)
Create a new object with objectUri, type and version from the typedValuevoid
NullModelStore. create(TypedValue typedValue)
void
IModelStore. delete(String objectUri)
Deletes an item from the documentvoid
NullModelStore. delete(String objectUri)
CoreModelObject
ISerializableModelStore. deSerialize(InputStream stream, boolean overwrite)
Deserialize / read an SPDX document from a streamIModelStore.IModelStoreLock
IModelStore. enterCriticalSection(boolean readLockRequested)
Enter a critical section.IModelStore.IModelStoreLock
NullModelStore. enterCriticalSection(boolean readLockRequested)
Stream<TypedValue>
IModelStore. getAllItems(String nameSpace, String typeFilter)
Stream<TypedValue>
NullModelStore. getAllItems(String nameSpace, String typeFilter)
String
IModelStore. getNextId(IModelStore.IdType idType)
Generate a unique ID within the model store - Note: for a full URI, the id should be prepended with a URI prefixString
NullModelStore. getNextId(IModelStore.IdType idType)
List<PropertyDescriptor>
IModelStore. getPropertyValueDescriptors(String objectUri)
List<PropertyDescriptor>
NullModelStore. getPropertyValueDescriptors(String objectUri)
Optional<TypedValue>
IModelStore. getTypedValue(String objectUri)
Optional<TypedValue>
NullModelStore. getTypedValue(String objectUri)
Optional<Object>
IModelStore. getValue(String objectUri, PropertyDescriptor propertyDescriptor)
Optional<Object>
NullModelStore. getValue(String objectUri, PropertyDescriptor propertyDescriptor)
boolean
IModelStore. isCollectionMembersAssignableTo(String objectUri, PropertyDescriptor propertyDescriptor, Class<?> clazz)
boolean
NullModelStore. isCollectionMembersAssignableTo(String objectUri, PropertyDescriptor propertyDescriptor, Class<?> clazz)
boolean
IModelStore. isCollectionProperty(String objectUri, PropertyDescriptor propertyDescriptor)
boolean
NullModelStore. isCollectionProperty(String objectUri, PropertyDescriptor propertyDescriptor)
boolean
IModelStore. isPropertyValueAssignableTo(String objectUri, PropertyDescriptor propertyDescriptor, Class<?> clazz, String specVersion)
boolean
NullModelStore. isPropertyValueAssignableTo(String objectUri, PropertyDescriptor propertyDescriptor, Class<?> clazz, String specVersion)
Iterator<Object>
IModelStore. listValues(String objectUri, PropertyDescriptor propertyDescriptor)
Iterator<Object>
NullModelStore. listValues(String objectUri, PropertyDescriptor propertyDescriptor)
void
IModelStore. removeProperty(String objectUri, PropertyDescriptor propertyDescriptor)
Removes a property from the document for the given ID if the property exists.void
NullModelStore. removeProperty(String objectUri, PropertyDescriptor propertyDescriptor)
boolean
IModelStore. removeValueFromCollection(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
Removes a value from a collection of values associated with a propertyboolean
NullModelStore. removeValueFromCollection(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
void
ISerializableModelStore. serialize(OutputStream stream)
Serialize all the items stored in the model storevoid
ISerializableModelStore. serialize(OutputStream stream, CoreModelObject objectToSerialize)
Serialize the items stored in the model storevoid
IModelStore. setValue(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
Sets a property value for a String or Boolean type of value creating the propertyDescriptor if it does not existvoid
NullModelStore. setValue(String objectUri, PropertyDescriptor propertyDescriptor, Object value)
-