Class BooleanClassImpl
java.lang.Object
de.uni_trier.wi2.procake.data.model.impl.AbstractDataClassImpl
de.uni_trier.wi2.procake.data.model.base.impl.AtomicClassImpl
de.uni_trier.wi2.procake.data.model.base.impl.BooleanClassImpl
- All Implemented Interfaces:
AtomicClass
,BooleanClass
,DataClass
,PropertyHandler
Implementation of
BooleanClass
.- Author:
- Rainer Maximini
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.model.base.impl.AtomicClassImpl
defaultValue
Fields inherited from interface de.uni_trier.wi2.procake.data.model.base.AtomicClass
CLASS_NAME, LOG_CANNOT_HANDLE_NATIVE_VALUES, LOG_INTERVAL_BORDERS_INCOMPATIBLE, LOG_PARSING_NATIVE_VALUE, LOG_UNKNOWN_NATIVE_VALUE, LOG_UNKNOWN_VALUE_IN_ORDER, LOG_VALUE_RANGE_INCOMPATIBLE
Fields inherited from interface de.uni_trier.wi2.procake.data.model.base.BooleanClass
CLASS_NAME
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.The default value is either a defined value withAtomicClass.setDefaultValue(Object)
or an arbitrary but valid one.Class<? extends DataObject>
getObjectClass.boolean
isBoolean.nativeFromString
(String value) Converts a String to the native object of the correspondingAtomicObject
nativeToString
(Object value) Converts a native object of the correspondingAtomicObject
to a String.Creates a newDataObject
and initialize it.Methods inherited from class de.uni_trier.wi2.procake.data.model.base.impl.AtomicClassImpl
addAtomicObject, checkFinishEditing, createNewInstanceEnumerationPredicate, createNewInstanceIntervalPredicate, createNewInstanceOntologyOrderPredicate, createNewInstanceTaxonomyOrderPredicate, createNewInstanceTotalOrderPredicate, finishEditing, getAtomicObjects, getInstanceEnumerationPredicate, getInstanceIntervalPredicate, getInstanceOntologyOrderPredicate, getInstancePredicate, getInstanceTaxonomyOrderPredicate, getInstanceTotalOrderPredicate, getInternalDefaultValue, getNativeValueFromPredicate, hasEnumerationRange, hasIntervalRange, hasTaxonomyRange, hasTotalOrderRange, isAtomic, removeInstancePredicate, setDefaultValue
Methods inherited from class de.uni_trier.wi2.procake.data.model.impl.AbstractDataClassImpl
addProperty, addProperty, addSubclass, addSubClass, beSystemClass, checkEditability, checkInstantiability, clearSubClasses, createSubclass, createSystemClassTree, getAllProperties, getAllPropertyNodes, getModel, getName, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, getRootClass, getSubClasses, getSuperClass, getSuperClasses, getSystemClassName, getSystemSuperClass, hasProperties, includeClass, isAbstract, isAdaptationCase, isAggregate, 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
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.base.AtomicClass
addAtomicObject, createNewInstanceEnumerationPredicate, createNewInstanceIntervalPredicate, createNewInstanceOntologyOrderPredicate, createNewInstanceTaxonomyOrderPredicate, createNewInstanceTotalOrderPredicate, getAtomicObjects, getInstanceEnumerationPredicate, getInstanceIntervalPredicate, getInstanceOntologyOrderPredicate, getInstancePredicate, getInstanceTaxonomyOrderPredicate, getInstanceTotalOrderPredicate, hasEnumerationRange, hasIntervalRange, hasTaxonomyRange, hasTotalOrderRange, removeInstancePredicate, setDefaultValue
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, isByteArray, isCake2DataReference, isChronologic, isCollection, isControlflowItem, isDataflowWrapper, isDate, isDouble, isEditable, isInstantiable, isInteger, isInterval, isList, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, 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
-
Constructor Details
-
BooleanClassImpl
public BooleanClassImpl()Constructor for BooleanClassImpl.
-
-
Method Details
-
createSystemSubClasses
protected void createSystemSubClasses()createSystemSubClasses.
- Overrides:
createSystemSubClasses
in classAtomicClassImpl
-
getDefaultValue
The default value is either a defined value withAtomicClass.setDefaultValue(Object)
or an arbitrary but valid one.If the class is not finished, null will return if no default one defined manually. After finishing the class an arbitrary valid value is returned.
This must be overwritten by subclasses!
- Specified by:
getDefaultValue
in interfaceAtomicClass
- Overrides:
getDefaultValue
in classAtomicClassImpl
- Returns:
- A valid native object of the class.
- See Also:
-
isBoolean
public boolean isBoolean()isBoolean.
- Specified by:
isBoolean
in interfaceDataClass
- Overrides:
isBoolean
in classAbstractDataClassImpl
- Returns:
true
if the data class can be casted toBooleanClass
-
nativeFromString
Converts a String to the native object of the correspondingAtomicObject
- Specified by:
nativeFromString
in interfaceAtomicClass
- Overrides:
nativeFromString
in classAtomicClassImpl
- Parameters:
value
- The String representation of the value- Returns:
- a new Object representing the
value
- Throws:
InvalidNativeValueException
-
nativeToString
Converts a native object of the correspondingAtomicObject
to a String.- Specified by:
nativeToString
in interfaceAtomicClass
- Overrides:
nativeToString
in classAtomicClassImpl
- Parameters:
value
- The native object that should be converted.- Returns:
- a String representation of the
value
- Throws:
InvalidNativeValueException
-
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
-