Class NESTGraphClassImpl
java.lang.Object
de.uni_trier.wi2.procake.data.model.impl.AbstractDataClassImpl
de.uni_trier.wi2.procake.data.model.nest.impl.NESTGraphClassImpl
- All Implemented Interfaces:
DataClass
,NESTGraphClass
,PropertyHandler
- Direct Known Subclasses:
NESTSequentialWorkflowClassImpl
,NESTWorkflowClassImpl
Concrete implementation of the
NESTGraphClass
.-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.data.model.DataClass
CLASS_NAME, LOG_ABSTRACT_CLASS_NOT_INSTANTIABLE, LOG_ABSTRACT_SYSTEM_SUBCLASS_CREATION_FAILED, LOG_CLASS_NOT_EDITABLE, LOG_CLASS_NOT_INSTANTIABLE, LOG_EDITABLE_CLASS_NOT_INSTANTIABLE, LOG_FINISH_EDIT_FAILED, LOG_GET_SUPERCLASSES_FAILED, LOG_SUBCLASS_CREATION_FAILED
Fields inherited from interface de.uni_trier.wi2.procake.data.model.nest.NESTGraphClass
CLASS_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNESTEdgeClass
(NESTEdgeClass nestEdgeClass) Register the data class of an allowed NEST graph itemvoid
addNESTNodeClass
(NESTNodeClass nestNodeClass) Register the data class of an allowed NEST graph itemvoid
conformToModel
(Model other) Checks whether the allowed item classes are conform to given model.protected void
createSystemSubClasses.Class<? extends DataObject>
getObjectClass.boolean
isAllowedNESTGraphItemClass
(NESTGraphItemClass nestGraphItemClass) boolean
isNESTGraph.Creates a newDataObject
and initialize it.Methods inherited from class de.uni_trier.wi2.procake.data.model.impl.AbstractDataClassImpl
addProperty, addProperty, addSubclass, addSubClass, beSystemClass, checkEditability, checkFinishEditing, checkInstantiability, clearSubClasses, createSubclass, createSystemClassTree, finishEditing, getAllProperties, getAllPropertyNodes, getModel, getName, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, getRootClass, getSubClasses, getSuperClass, getSuperClasses, getSystemClassName, getSystemSuperClass, hasProperties, includeClass, isAbstract, isAdaptationCase, isAggregate, isAtomic, isBoolean, isByteArray, isCake2DataReference, isChronologic, isCollection, isControlflowItem, isDataflowWrapper, isDate, isDouble, isEditable, isInstantiable, isInteger, isInterval, isList, isNESTAdaptationQuery, isNESTAdaptationRule, isNESTAdaptationSession, isNESTAdaptationStep, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraphItem, isNESTNode, isNESTPartOfEdge, isNESTQuery, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isParentItem, isSequence, isSet, isString, isSubclassOf, isSubWorkflow, isSystemClass, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, isWorkflowCase, isWorkflowItem, removeProperty, removeSubclass, removeSubClass, setAbstract, setName, setPropertyRootNode, setSuperClass, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.data.model.DataClass
addSubclass, checkInstantiability, createSubclass, finishEditing, getModel, getName, getSubClasses, getSuperClass, getSuperClasses, getSystemClassName, getSystemSuperClass, includeClass, isAbstract, isAggregate, isAtomic, isBoolean, isByteArray, isCake2DataReference, isChronologic, isCollection, isControlflowItem, isDataflowWrapper, isDate, isDouble, isEditable, isInstantiable, isInteger, isInterval, isList, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraphItem, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isParentItem, isSequence, isSet, isString, isSubclassOf, isSubWorkflow, isSystemClass, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, isWorkflowItem, removeSubclass, setAbstract, setName
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty, setPropertyRootNode
-
Field Details
-
nodeClasses
-
edgeClasses
-
-
Constructor Details
-
NESTGraphClassImpl
public NESTGraphClassImpl() -
NESTGraphClassImpl
-
-
Method Details
-
createSystemSubClasses
protected void createSystemSubClasses()Description copied from class:AbstractDataClassImpl
createSystemSubClasses.
- Specified by:
createSystemSubClasses
in classAbstractDataClassImpl
-
newObject
Description copied from class:AbstractDataClassImpl
Creates a newDataObject
and initialize it.DataObject
s can not be created directly because they depend on theDataClass
that defines the object.The creation of a new object is only be possible if
DataClass.checkInstantiability()
throws no exception.- Specified by:
newObject
in interfaceDataClass
- Overrides:
newObject
in classAbstractDataClassImpl
- Returns:
- a new
DataObject
- Throws:
IllegalInstantiationException
- is thrown if it is not possible to create an object this data class
-
getObjectClass
Description copied from class:AbstractDataClassImpl
getObjectClass.
- Specified by:
getObjectClass
in interfaceDataClass
- Overrides:
getObjectClass
in classAbstractDataClassImpl
- Returns:
- Class of the corresponding data object
-
isNESTGraph
public boolean isNESTGraph()Description copied from class:AbstractDataClassImpl
isNESTGraph.
- Specified by:
isNESTGraph
in interfaceDataClass
- Overrides:
isNESTGraph
in classAbstractDataClassImpl
- Returns:
true
if the data class can be casted toNESTGraphClass
-
addNESTNodeClass
Description copied from interface:NESTGraphClass
Register the data class of an allowed NEST graph item- Specified by:
addNESTNodeClass
in interfaceNESTGraphClass
- Parameters:
nestNodeClass
- class of the NEST graph item
-
addNESTEdgeClass
Description copied from interface:NESTGraphClass
Register the data class of an allowed NEST graph item- Specified by:
addNESTEdgeClass
in interfaceNESTGraphClass
- Parameters:
nestEdgeClass
- class of the NEST graph item
-
getNESTGraphItemClasses
- Specified by:
getNESTGraphItemClasses
in interfaceNESTGraphClass
- Returns:
- allowed NEST classes for nest graph items (nodes and edges)
-
getNESTNodeClasses
- Specified by:
getNESTNodeClasses
in interfaceNESTGraphClass
- Returns:
- allowed NEST classes for nodes
-
getNESTEdgeClasses
- Specified by:
getNESTEdgeClasses
in interfaceNESTGraphClass
- Returns:
- allowed NEST classes for edges
-
isAllowedNESTGraphItemClass
- Specified by:
isAllowedNESTGraphItemClass
in interfaceNESTGraphClass
- Parameters:
nestGraphItemClass
- class of the NEST graph item- Returns:
- whether the given NEST class is an allowed NEST graph item
-
conformToModel
Checks whether the allowed item classes are conform to given model. If aDataClass
is used which is present in the given model but with different reference, it will be replaced.- Parameters:
other
- The other data model to which the allowed item classes should conform to
-