Interface Modelstore
-
- All Superinterfaces:
BuiltinAspects
- All Known Implementing Classes:
ModelstoreBase
,ModelstoreProvider
public interface Modelstore extends BuiltinAspects
An interface that defines the access to allPropertyset
instances in memory. This interface can be used to create new propertysets, and it can be used to retrieve existing propertysets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelContext
createContext()
ModelContext
getDefaultContext()
List<ErrorBean>
getErrors()
Get the list of logged errorsValueCreator
getValueCreator()
Access factory used to createValue
andPropertyset
instances.void
logError(String message, Object fileOrStream, Exception e)
Log an error situation that resulted in a caught exception.void
persistContext(OutputStream jsonfilestream, ModelContext context)
ModelContext
restoreContext(InputStream jsonfilestream)
-
Methods inherited from interface no.priv.bang.modeling.modelstore.services.BuiltinAspects
getAspectContainerAspectId, getGeneralObjectAspectId, getGeneralRelationshipAspectId, getMetadataAspectId, getModelAspectId, getRelationshipAspectId
-
-
-
-
Method Detail
-
getDefaultContext
ModelContext getDefaultContext()
-
createContext
ModelContext createContext()
-
restoreContext
ModelContext restoreContext(InputStream jsonfilestream)
-
persistContext
void persistContext(OutputStream jsonfilestream, ModelContext context)
-
logError
void logError(String message, Object fileOrStream, Exception e)
Log an error situation that resulted in a caught exception.- Parameters:
message
- a human readable message explaining where the error occurredfileOrStream
- a File or stream involved in the error, null if not relevante
- the exception caught by the code logging the error
-
getErrors
List<ErrorBean> getErrors()
Get the list of logged errors- Returns:
- a list of
ErrorBean
, return the empty list if no errors have been reported
-
getValueCreator
ValueCreator getValueCreator()
Access factory used to createValue
andPropertyset
instances.- Returns:
- a
ValueCreator
that can be used to createValue
andPropertyset
instances
-
-