Class BuiltinAspectsBase
- java.lang.Object
-
- no.priv.bang.modeling.modelstore.backend.BuiltinAspectsBase
-
- All Implemented Interfaces:
BuiltinAspects
- Direct Known Subclasses:
ModelstoreBase
public class BuiltinAspectsBase extends Object implements BuiltinAspects
Return the IDs of the aspects that are always present in the ModelContext objects. This class implementsBuiltinAspects
and is intended to be used either as an OSGi service alone or as a base class for the Modelstore implementation.
-
-
Constructor Summary
Constructors Constructor Description BuiltinAspectsBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
getAspectContainerAspectId()
The "aspect container" aspect defines a propertyset that holds a list of references to other aspect.UUID
getGeneralObjectAspectId()
The "general object" aspect defines aPropertyset
with a name and description.UUID
getGeneralRelationshipAspectId()
The "general relationship" aspect inherits the "relationship" aspect and adds a name and a description property.UUID
getMetadataAspectId()
The "metadata" aspect defines aPropertyset
that stores last modified times and various other metadata on the propertysests in aModelContext
UUID
getModelAspectId()
The "model" aspect defines a model.UUID
getRelationshipAspectId()
The "relationship" aspect defines aPropertyset
with reference properties "origin" and "target" and can be used to represent a relationship between two propertysets.
-
-
-
Method Detail
-
getMetadataAspectId
public UUID getMetadataAspectId()
Description copied from interface:BuiltinAspects
The "metadata" aspect defines aPropertyset
that stores last modified times and various other metadata on the propertysests in aModelContext
- Specified by:
getMetadataAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "metadata" aspect
-
getGeneralObjectAspectId
public UUID getGeneralObjectAspectId()
Description copied from interface:BuiltinAspects
The "general object" aspect defines aPropertyset
with a name and description.- Specified by:
getGeneralObjectAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "general object" aspect
-
getRelationshipAspectId
public UUID getRelationshipAspectId()
Description copied from interface:BuiltinAspects
The "relationship" aspect defines aPropertyset
with reference properties "origin" and "target" and can be used to represent a relationship between two propertysets.- Specified by:
getRelationshipAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "relationship" aspect
-
getGeneralRelationshipAspectId
public UUID getGeneralRelationshipAspectId()
Description copied from interface:BuiltinAspects
The "general relationship" aspect inherits the "relationship" aspect and adds a name and a description property.- Specified by:
getGeneralRelationshipAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "general relationship" aspect
-
getModelAspectId
public UUID getModelAspectId()
Description copied from interface:BuiltinAspects
The "model" aspect defines a model. A model is a propertyset containing other propertysets.- Specified by:
getModelAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "model" aspect
-
getAspectContainerAspectId
public UUID getAspectContainerAspectId()
Description copied from interface:BuiltinAspects
The "aspect container" aspect defines a propertyset that holds a list of references to other aspect. It also holds a reference to an aspect definition. The aspect definition will be applied to all of the contained propertysets. One aspect can be contained by two separate aspect containers and have different aspects in each container.- Specified by:
getAspectContainerAspectId
in interfaceBuiltinAspects
- Returns:
- the
UUID
of thePropertyset
defining the "aspect container" aspect
-
-