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.
|
CoreModelObject |
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) |
|
Object |
ModelRegistry.getExternalElement(IModelStore store,
String uri,
IModelCopyManager copyManager,
Class<?> type,
String specVersion) |
|
static Optional<Object> |
ModelObjectHelper.getObjectPropertyValue(IModelStore modelStore,
String objectUri,
PropertyDescriptor propertyDescriptor,
IModelCopyManager copyManager,
String specVersion,
Class<?> type,
String idPrefix) |
Get an object value for a property
|
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.
|
static void |
DefaultModelStore.initialize(IModelStore newModelStore,
String newDefaultDocumentUri,
IModelCopyManager newDefaultCopyManager) |
Initialize the default model store.
|
static Object |
ModelObjectHelper.modelObjectToStoredObject(Object value,
IModelStore modelStore,
IModelCopyManager copyManager,
String idPrefix) |
Converts a model object to the object to be stored
|
static 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 ModelObject
|
static 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.CoreModelObjectBuilder.setCopyManager(IModelCopyManager copyManager) |
|
void |
CoreModelObject.setCopyManager(IModelCopyManager copyManager) |
Set the copy manager
|
static 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 necessary
|
static 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 ModelObject
|
Object |
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 store
|