Class DataClassImpl
java.lang.Object
de.uni_trier.wi2.procake.data.model.impl.AbstractDataClassImpl
de.uni_trier.wi2.procake.data.model.impl.DataClassImpl
- All Implemented Interfaces:
DataClass
,PropertyHandler
Thr concrete implementation of the data class as the root of all classes.
- Author:
- Rainer Maximini
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createSystemSubClasses.getModel()
Each data class knows theModel
to that the class belongs.Class<? extends DataObject>
getObjectClass.protected DataClass
getRootClass.Creates a newDataObject
and initialize it.protected void
Setter for the fieldmodel
.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, getName, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, 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, isNESTGraph, 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
-
Constructor Details
-
DataClassImpl
Constructor for DataClassImpl.
- Parameters:
model
- aModel
object
-
-
Method Details
-
createSystemSubClasses
protected void createSystemSubClasses()createSystemSubClasses.
- Specified by:
createSystemSubClasses
in classAbstractDataClassImpl
-
getModel
Each data class knows theModel
to that the class belongs.- Specified by:
getModel
in interfaceDataClass
- Overrides:
getModel
in classAbstractDataClassImpl
- Returns:
- The
Model
of the data class.
-
setModel
Setter for the field
model
.- Parameters:
model
- aModel
object- Throws:
IllegalEditException
- if any.NameAlreadyExistsException
- if any.
-
getRootClass
getRootClass.
- Overrides:
getRootClass
in classAbstractDataClassImpl
- Returns:
- a
DataClass
object
-
newObject
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
getObjectClass.
- Specified by:
getObjectClass
in interfaceDataClass
- Overrides:
getObjectClass
in classAbstractDataClassImpl
- Returns:
- Class of the corresponding data object
-