Class AtomicObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.base.impl.AtomicObjectImpl
-
- All Implemented Interfaces:
AtomicObject,DataObject,PropertyHandler
- Direct Known Subclasses:
BooleanObjectImpl,ByteArrayObjectImpl,ChronologicObjectImpl,NumericObjectImpl,StringObjectImpl,URIObjectImpl
public abstract class AtomicObjectImpl extends DataObjectImpl implements AtomicObject
- Author:
- Rainer Maximini
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
Fields inherited from interface de.uni_trier.wi2.procake.data.object.base.AtomicObject
COMPONENT, COMPONENT_KEY, LOG_INVALID_NATIVE_VALUE, LOG_NO_ORDER_DEFINED, LOG_UNCOMPARABLE_OBJECTS
-
-
Constructor Summary
Constructors Constructor Description AtomicObjectImpl(DataClass dataClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidassertSameValueAsIn(DataObject object)protected voidcheckConsistency()AtomicClassgetAtomicClass()abstract ObjectgetNativeObject()booleanhasSameValueAsIn(DataObject other)This method makes a deep compare.booleanisConsistent()voidsetValueFromString(String value)This method is the same likesetNativeObject(getAtomicClass().nativeFromString(value)).StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, copy, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, removeProperty, setDataClass, setId, toDetailedString, toXML
-
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.object.base.AtomicObject
setNativeObject
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
copy, getDataClass, getId, getModel, hasClassName, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Constructor Detail
-
AtomicObjectImpl
public AtomicObjectImpl(DataClass dataClass)
-
-
Method Detail
-
checkConsistency
protected void checkConsistency() throws InvalidNativeValueException- Throws:
InvalidNativeValueException
-
isConsistent
public boolean isConsistent()
- Specified by:
isConsistentin interfaceAtomicObject
-
getAtomicClass
public AtomicClass getAtomicClass()
- Specified by:
getAtomicClassin interfaceAtomicObject
-
getNativeObject
public abstract Object getNativeObject()
- Specified by:
getNativeObjectin interfaceAtomicObject
-
hasSameValueAsIn
public boolean hasSameValueAsIn(DataObject other)
Description copied from interface:DataObjectThis method makes a deep compare. For atomic objects this is equal to theequalmethod. For sets, lists, aggregates, and others a deeper comparision is performed.- Specified by:
hasSameValueAsInin interfaceDataObject- Overrides:
hasSameValueAsInin classDataObjectImpl- Parameters:
other- The object to compare.- Returns:
trueif the givenobjecthas the same value(s) as this one.
-
assertSameValueAsIn
public void assertSameValueAsIn(DataObject object) throws AssertSameValueAsInException
- Specified by:
assertSameValueAsInin interfaceDataObject- Overrides:
assertSameValueAsInin classDataObjectImpl- Throws:
AssertSameValueAsInException
-
setValueFromString
public void setValueFromString(String value) throws InvalidNativeValueException
Description copied from interface:AtomicObjectThis method is the same likesetNativeObject(getAtomicClass().nativeFromString(value)).- Specified by:
setValueFromStringin interfaceAtomicObject- Parameters:
value- The value to set.- Throws:
InvalidNativeValueException
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
-