Interface DataObject
-
- All Superinterfaces:
PropertyHandler
- All Known Subinterfaces:
AbstractWorkflowItemObject,AggregateObject,AtomicObject,BooleanObject,ByteArrayObject,ChronologicObject,CollectionObject,ControlflowItemObject,DataflowWrapperObject,DataReferenceObject,DateObject,DoubleObject,IntegerObject,IntervalObject,ListObject,NESTAbstractWorkflowObject,NESTAndEndNodeObject,NESTAndStartNodeObject,NESTConstraintEdgeObject,NESTControlflowEdgeObject,NESTControlflowNodeObject,NESTDataflowEdgeObject,NESTDataNodeObject,NESTEdgeObject,NESTGraphItemObject,NESTGraphObject,NESTLoopEndNodeObject,NESTLoopStartNodeObject,NESTNodeObject,NESTOrEndNodeObject,NESTOrStartNodeObject,NESTPartOfEdgeObject,NESTSequenceNodeObject,NESTSequentialWorkflowObject,NESTSubWorkflowNodeObject,NESTTaskNodeObject,NESTWorkflowNodeObject,NESTWorkflowObject,NESTXorEndNodeObject,NESTXorStartNodeObject,NodeObject,NumericObject,ParentItemObject<T>,SequencedObject,SequenceObject,SetObject,StatusableObject,StringObject,SubWorkflowObject,TaskObject,TimeObject,TimestampObject,URIObject,VoidObject,WorkflowObject
- All Known Implementing Classes:
AbstractWorkflowItemObjectImpl,AggregateObjectImpl,AtomicObjectImpl,BooleanObjectImpl,ByteArrayObjectImpl,ChronologicObjectImpl,CollectionObjectImpl,ControlflowItemObjectImpl,DataflowWrapperObjectImpl,DataObjectImpl,DataReferenceObjectImpl,DateObjectImpl,DoubleObjectImpl,IntegerObjectImpl,IntervalObjectImpl,ListObjectImpl,NESTAbstractWorkflowObjectImpl,NESTAndEndNodeObjectImpl,NESTAndStartNodeObjectImpl,NESTConstraintEdgeObjectImpl,NESTControlflowEdgeObjectImpl,NESTControlflowNodeObjectImpl,NESTDataflowEdgeObjectImpl,NESTDataNodeObjectImpl,NESTEdgeObjectImpl,NESTGraphItemObjectImpl,NESTGraphObjectImpl,NESTLoopEndNodeObjectImpl,NESTLoopStartNodeObjectImpl,NESTNodeObjectImpl,NESTOrEndNodeObjectImpl,NESTOrStartNodeObjectImpl,NESTPartOfEdgeObjectImpl,NESTSequenceNodeObjectImpl,NESTSequentialWorkflowObjectImpl,NESTSubWorkflowNodeObjectImpl,NESTTaskNodeObjectImpl,NESTWorkflowNodeObjectImpl,NESTWorkflowObjectImpl,NESTXorEndNodeObjectImpl,NESTXorStartNodeObjectImpl,NodeObjectImpl,NumericObjectImpl,ParentItemObjectImpl,SequenceObjectImpl,SetObjectImpl,StatusableObjectImpl,StringObjectImpl,TaskObjectImpl,TimeObjectImpl,TimestampObjectImpl,URIObjectImpl,VoidObjectImpl,WorkflowObjectImpl
public interface DataObject extends PropertyHandler
A DataObject realises a wrapper for a value.A detailed description can be found in the
DataClass.This is an abstract interface for that no corresponding implementation exists. This interface just summarises some methods that are equal for all data objects.
Compare
To compare two data object the method
hasSameValueAsIn(DataObject)exists. This method makes a deep compare. For atomic objects this is equal to theequals(Object)method. For sets, lists, aggregates, and others a deeper comparision is performed that also includes the element objects.Clone
copy()makes a deep copy of the object including the properties and objectids also.- Author:
- Rainer Maximini
- See Also:
DataClass
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassertSameValueAsIn(DataObject object)DataObjectcopy()Makes a deep copy of the data objectstatic <T extends DataObject>
TfromXML(String xml)Converts XML String to data object (via ObjectReader)DataClassgetDataClass()StringgetId()ModelgetModel()Each object knows to which model it belongs.booleanhasClassName(String className)Check if the object's data class has the given class name.booleanhasSameValueAsIn(DataObject object)This method makes a deep compare.booleanhasSystemClassName(String systemClassName)Check if the object's data class has the given system class name.booleanisAggregate()booleanisAtomic()booleanisBoolean()booleanisByteArray()booleanisChronologic()booleanisCollection()booleanisDataflowWrapper()booleanisDataReference()booleanisDate()booleanisDouble()booleanisInteger()booleanisInterval()booleanisKindOf(DataClass anotherClass)Check if the object is an instance of the givenDataClassor of some of its sub-classes.booleanisList()booleanisMemberOf(DataClass anotherClass)Check if this object can be referenced from the givenDataClassbooleanisNESTConstraintEdge()booleanisNESTControlflowEdge()booleanisNESTControlflowNode()booleanisNESTDataflowEdge()booleanisNESTDataNode()booleanisNESTEdge()booleanisNESTGraph()booleanisNESTNode()booleanisNESTPartOfEdge()booleanisNESTSequenceNode()booleanisNESTSequentialWorkflow()booleanisNESTSubWorkflowNode()booleanisNESTTaskNode()booleanisNESTWorkflow()booleanisNESTWorkflowNode()booleanisNode()booleanisNumeric()booleanisSequence()booleanisSet()booleanisString()booleanisSubWorkflow()booleanisTask()booleanisTime()booleanisTimestamp()booleanisUnion()booleanisURI()booleanisVoid()booleanisWorkflow()voidremoveId()Removes the given objectId from the set of ids.voidsetDataClass(DataClass dataClass)voidsetId(String objectId)Adds the given objectId to the set of ids.StringtoDetailedString()Returns a detailed String, if the output of the standard toString() method would be to long.StringtoXML()Converts the data object to XML-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Method Detail
-
getDataClass
DataClass getDataClass()
- Returns:
- The data class of the object.
-
setDataClass
void setDataClass(DataClass dataClass)
-
getId
String getId()
- Returns:
- objectId of the given base *
- See Also:
de.uni_trier.wi2.procake.data.object
-
setId
void setId(String objectId)
Adds the given objectId to the set of ids.- Parameters:
objectId- that will be added to the set of ids- See Also:
de.uni_trier.wi2.procake.data.object
-
getModel
Model getModel()
Each object knows to which model it belongs.- Returns:
- The data model to that the object belongs.
-
hasSameValueAsIn
boolean hasSameValueAsIn(DataObject object)
This method makes a deep compare. For atomic objects this is equal to theequalmethod. For sets, lists, aggregates, and others a deeper comparision is performed.- Parameters:
object- The object to compare.- Returns:
trueif the givenobjecthas the same value(s) as this one.
-
assertSameValueAsIn
void assertSameValueAsIn(DataObject object) throws AssertSameValueAsInException
- Throws:
AssertSameValueAsInException
-
isAggregate
boolean isAggregate()
- Returns:
trueif the data class can be casted toAggregateClass- Since:
- 0.6
-
isAtomic
boolean isAtomic()
- Returns:
trueif the data class can be casted toAtomicClass- Since:
- 0.6
-
isBoolean
boolean isBoolean()
- Returns:
trueif the data class can be casted toBooleanClass- Since:
- 0.6
-
isByteArray
boolean isByteArray()
- Returns:
trueif the data class can be casted toByteArrayClass- Since:
- 0.6
-
isChronologic
boolean isChronologic()
- Returns:
trueif the data class can be casted toChronologicClass- Since:
- 0.6
-
isCollection
boolean isCollection()
- Returns:
trueif the data class can be casted toCollectionClass- Since:
- 0.6
-
isDate
boolean isDate()
- Returns:
trueif the data class can be casted toDateClass- Since:
- 0.6
-
isDouble
boolean isDouble()
- Returns:
trueif the data class can be casted toDoubleClass- Since:
- 0.6
-
isInteger
boolean isInteger()
- Returns:
trueif the data class can be casted toIntegerClass- Since:
- 0.6
-
isInterval
boolean isInterval()
- Returns:
trueif the data class can be casted toIntervalClass- Since:
- 0.6
-
isKindOf
boolean isKindOf(DataClass anotherClass)
Check if the object is an instance of the givenDataClassor of some of its sub-classes.- Parameters:
anotherClass-- Returns:
trueif the data class of this object is a subclass of the given class.
-
hasSystemClassName
boolean hasSystemClassName(String systemClassName)
Check if the object's data class has the given system class name.- Parameters:
systemClassName- system class name- Returns:
trueif the data class of this object has the given system class name.
-
hasClassName
boolean hasClassName(String className)
Check if the object's data class has the given class name.- Parameters:
className- class name- Returns:
trueif the data class of this object has the given class name.
-
isList
boolean isList()
- Returns:
trueif the data class can be casted toListClass- Since:
- 0.6
-
isMemberOf
boolean isMemberOf(DataClass anotherClass)
Check if this object can be referenced from the givenDataClass- Parameters:
anotherClass-- Returns:
trueif the data class of this objects is used in the given class.
-
isNumeric
boolean isNumeric()
- Returns:
trueif the data class can be casted toNumericClass- Since:
- 0.6
-
isURI
boolean isURI()
- Returns:
trueif the data class can be casted toURIClass
-
isSet
boolean isSet()
- Returns:
trueif the data class can be casted toSetClass- Since:
- 0.6
-
isString
boolean isString()
- Returns:
trueif the data class can be casted toStringClass- Since:
- 0.6
-
isTime
boolean isTime()
- Returns:
trueif the data class can be casted toTimeClass- Since:
- 0.6
-
isTimestamp
boolean isTimestamp()
- Returns:
trueif the data class can be casted toTimestampClass- Since:
- 0.6
-
isUnion
boolean isUnion()
- Returns:
trueif the data class can be casted toUnionClass- Since:
- 0.6
-
isVoid
boolean isVoid()
- Returns:
trueif the data class can be casted toVoidClass- Since:
- 0.6
-
isTask
boolean isTask()
- Returns:
trueif the data class can be casted toTaskClass- Since:
- 0.6
-
isWorkflow
boolean isWorkflow()
- Returns:
trueif the data class can be casted toWorkflowClass- Since:
- 0.6
-
isSubWorkflow
boolean isSubWorkflow()
- Returns:
trueif the data class can be casted toSubWorkflowClass- Since:
- 0.6
-
isSequence
boolean isSequence()
- Returns:
trueif the data class can be casted toSequenceClass- Since:
- 0.6
-
isDataflowWrapper
boolean isDataflowWrapper()
- Returns:
trueif the data class can be casted toDataflowWrapperClass- Since:
- 0.6
-
isDataReference
boolean isDataReference()
- Returns:
trueif the data class can be casted toDataReferenceClass- Since:
- 0.6
-
isNode
boolean isNode()
- Returns:
trueif the data class can be casted toNodeClass- Since:
- 0.6
-
isNESTGraph
boolean isNESTGraph()
- Returns:
trueif the data class can be casted toNESTGraphClass- Since:
- 0.6
-
isNESTSequentialWorkflow
boolean isNESTSequentialWorkflow()
- Returns:
trueif the data class can be casted toNESTSequentialWorkflowClass
-
isNESTWorkflow
boolean isNESTWorkflow()
- Returns:
trueif the data class can be casted toNESTWorkflowClass- Since:
- 0.6
-
isNESTNode
boolean isNESTNode()
- Returns:
trueif the data class can be casted toNESTNodeClass- Since:
- 0.6
-
isNESTDataNode
boolean isNESTDataNode()
- Returns:
trueif the data class can be casted toNESTDataNodeClass- Since:
- 0.6
-
isNESTTaskNode
boolean isNESTTaskNode()
- Returns:
trueif the data class can be casted toNESTTaskNodeClass- Since:
- 0.6
-
isNESTSequenceNode
boolean isNESTSequenceNode()
- Returns:
trueif the data class can be casted toNESTTaskNodeClassorNESTControlflowNodeClass- Since:
- 0.6
-
isNESTWorkflowNode
boolean isNESTWorkflowNode()
- Returns:
trueif the data class can be casted toNESTWorkflowNodeClass- Since:
- 0.6
-
isNESTSubWorkflowNode
boolean isNESTSubWorkflowNode()
- Returns:
trueif the data class can be casted toNESTSubWorkflowNodeClass- Since:
- 0.6
-
isNESTControlflowNode
boolean isNESTControlflowNode()
- Returns:
trueif the data class can be casted toNESTControlflowNodeClass- Since:
- 0.6
-
isNESTEdge
boolean isNESTEdge()
- Returns:
trueif the data class can be casted toNESTEdgeClass- Since:
- 0.6
-
isNESTConstraintEdge
boolean isNESTConstraintEdge()
- Returns:
trueif the data class can be casted toNESTConstraintEdgeClass- Since:
- 0.6
-
isNESTControlflowEdge
boolean isNESTControlflowEdge()
- Returns:
trueif the data class can be casted toNESTControlflowEdgeClass- Since:
- 0.6
-
isNESTDataflowEdge
boolean isNESTDataflowEdge()
- Returns:
trueif the data class can be casted toNESTDataflowEdgeClass- Since:
- 0.6
-
isNESTPartOfEdge
boolean isNESTPartOfEdge()
- Returns:
trueif the data class can be casted toNESTPartOfEdgeClass- Since:
- 0.6
-
removeId
void removeId()
Removes the given objectId from the set of ids. If the given objectId not exists or is null nothing will happen.
-
copy
DataObject copy()
Makes a deep copy of the data object- Returns:
- deep copy of the data object
-
toXML
String toXML()
Converts the data object to XML- Returns:
- XML String of the data object
-
fromXML
static <T extends DataObject> T fromXML(String xml)
Converts XML String to data object (via ObjectReader)- Returns:
- data object
-
toDetailedString
String toDetailedString()
Returns a detailed String, if the output of the standard toString() method would be to long.- Returns:
-
-