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 void
assertSameValueAsIn(DataObject object)
DataObject
copy()
Makes a deep copy of the data objectstatic <T extends DataObject>
TfromXML(String xml)
Converts XML String to data object (via ObjectReader)DataClass
getDataClass()
String
getId()
Model
getModel()
Each object knows to which model it belongs.boolean
hasClassName(String className)
Check if the object's data class has the given class name.boolean
hasSameValueAsIn(DataObject object)
This method makes a deep compare.boolean
hasSystemClassName(String systemClassName)
Check if the object's data class has the given system class name.boolean
isAggregate()
boolean
isAtomic()
boolean
isBoolean()
boolean
isByteArray()
boolean
isChronologic()
boolean
isCollection()
boolean
isDataflowWrapper()
boolean
isDataReference()
boolean
isDate()
boolean
isDouble()
boolean
isInteger()
boolean
isInterval()
boolean
isKindOf(DataClass anotherClass)
Check if the object is an instance of the givenDataClass
or of some of its sub-classes.boolean
isList()
boolean
isMemberOf(DataClass anotherClass)
Check if this object can be referenced from the givenDataClass
boolean
isNESTConstraintEdge()
boolean
isNESTControlflowEdge()
boolean
isNESTControlflowNode()
boolean
isNESTDataflowEdge()
boolean
isNESTDataNode()
boolean
isNESTEdge()
boolean
isNESTGraph()
boolean
isNESTNode()
boolean
isNESTPartOfEdge()
boolean
isNESTSequenceNode()
boolean
isNESTSequentialWorkflow()
boolean
isNESTSubWorkflowNode()
boolean
isNESTTaskNode()
boolean
isNESTWorkflow()
boolean
isNESTWorkflowNode()
boolean
isNode()
boolean
isNumeric()
boolean
isSequence()
boolean
isSet()
boolean
isString()
boolean
isSubWorkflow()
boolean
isTask()
boolean
isTime()
boolean
isTimestamp()
boolean
isUnion()
boolean
isURI()
boolean
isVoid()
boolean
isWorkflow()
void
removeId()
Removes the given objectId from the set of ids.void
setDataClass(DataClass dataClass)
void
setId(String objectId)
Adds the given objectId to the set of ids.String
toDetailedString()
Returns a detailed String, if the output of the standard toString() method would be to long.String
toXML()
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 theequal
method. For sets, lists, aggregates, and others a deeper comparision is performed.- Parameters:
object
- The object to compare.- Returns:
true
if the givenobject
has the same value(s) as this one.
-
assertSameValueAsIn
void assertSameValueAsIn(DataObject object) throws AssertSameValueAsInException
- Throws:
AssertSameValueAsInException
-
isAggregate
boolean isAggregate()
- Returns:
true
if the data class can be casted toAggregateClass
- Since:
- 0.6
-
isAtomic
boolean isAtomic()
- Returns:
true
if the data class can be casted toAtomicClass
- Since:
- 0.6
-
isBoolean
boolean isBoolean()
- Returns:
true
if the data class can be casted toBooleanClass
- Since:
- 0.6
-
isByteArray
boolean isByteArray()
- Returns:
true
if the data class can be casted toByteArrayClass
- Since:
- 0.6
-
isChronologic
boolean isChronologic()
- Returns:
true
if the data class can be casted toChronologicClass
- Since:
- 0.6
-
isCollection
boolean isCollection()
- Returns:
true
if the data class can be casted toCollectionClass
- Since:
- 0.6
-
isDate
boolean isDate()
- Returns:
true
if the data class can be casted toDateClass
- Since:
- 0.6
-
isDouble
boolean isDouble()
- Returns:
true
if the data class can be casted toDoubleClass
- Since:
- 0.6
-
isInteger
boolean isInteger()
- Returns:
true
if the data class can be casted toIntegerClass
- Since:
- 0.6
-
isInterval
boolean isInterval()
- Returns:
true
if the data class can be casted toIntervalClass
- Since:
- 0.6
-
isKindOf
boolean isKindOf(DataClass anotherClass)
Check if the object is an instance of the givenDataClass
or of some of its sub-classes.- Parameters:
anotherClass
-- Returns:
true
if 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:
true
if 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:
true
if the data class of this object has the given class name.
-
isList
boolean isList()
- Returns:
true
if 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:
true
if the data class of this objects is used in the given class.
-
isNumeric
boolean isNumeric()
- Returns:
true
if the data class can be casted toNumericClass
- Since:
- 0.6
-
isURI
boolean isURI()
- Returns:
true
if the data class can be casted toURIClass
-
isSet
boolean isSet()
- Returns:
true
if the data class can be casted toSetClass
- Since:
- 0.6
-
isString
boolean isString()
- Returns:
true
if the data class can be casted toStringClass
- Since:
- 0.6
-
isTime
boolean isTime()
- Returns:
true
if the data class can be casted toTimeClass
- Since:
- 0.6
-
isTimestamp
boolean isTimestamp()
- Returns:
true
if the data class can be casted toTimestampClass
- Since:
- 0.6
-
isUnion
boolean isUnion()
- Returns:
true
if the data class can be casted toUnionClass
- Since:
- 0.6
-
isVoid
boolean isVoid()
- Returns:
true
if the data class can be casted toVoidClass
- Since:
- 0.6
-
isTask
boolean isTask()
- Returns:
true
if the data class can be casted toTaskClass
- Since:
- 0.6
-
isWorkflow
boolean isWorkflow()
- Returns:
true
if the data class can be casted toWorkflowClass
- Since:
- 0.6
-
isSubWorkflow
boolean isSubWorkflow()
- Returns:
true
if the data class can be casted toSubWorkflowClass
- Since:
- 0.6
-
isSequence
boolean isSequence()
- Returns:
true
if the data class can be casted toSequenceClass
- Since:
- 0.6
-
isDataflowWrapper
boolean isDataflowWrapper()
- Returns:
true
if the data class can be casted toDataflowWrapperClass
- Since:
- 0.6
-
isDataReference
boolean isDataReference()
- Returns:
true
if the data class can be casted toDataReferenceClass
- Since:
- 0.6
-
isNode
boolean isNode()
- Returns:
true
if the data class can be casted toNodeClass
- Since:
- 0.6
-
isNESTGraph
boolean isNESTGraph()
- Returns:
true
if the data class can be casted toNESTGraphClass
- Since:
- 0.6
-
isNESTSequentialWorkflow
boolean isNESTSequentialWorkflow()
- Returns:
true
if the data class can be casted toNESTSequentialWorkflowClass
-
isNESTWorkflow
boolean isNESTWorkflow()
- Returns:
true
if the data class can be casted toNESTWorkflowClass
- Since:
- 0.6
-
isNESTNode
boolean isNESTNode()
- Returns:
true
if the data class can be casted toNESTNodeClass
- Since:
- 0.6
-
isNESTDataNode
boolean isNESTDataNode()
- Returns:
true
if the data class can be casted toNESTDataNodeClass
- Since:
- 0.6
-
isNESTTaskNode
boolean isNESTTaskNode()
- Returns:
true
if the data class can be casted toNESTTaskNodeClass
- Since:
- 0.6
-
isNESTSequenceNode
boolean isNESTSequenceNode()
- Returns:
true
if the data class can be casted toNESTTaskNodeClass
orNESTControlflowNodeClass
- Since:
- 0.6
-
isNESTWorkflowNode
boolean isNESTWorkflowNode()
- Returns:
true
if the data class can be casted toNESTWorkflowNodeClass
- Since:
- 0.6
-
isNESTSubWorkflowNode
boolean isNESTSubWorkflowNode()
- Returns:
true
if the data class can be casted toNESTSubWorkflowNodeClass
- Since:
- 0.6
-
isNESTControlflowNode
boolean isNESTControlflowNode()
- Returns:
true
if the data class can be casted toNESTControlflowNodeClass
- Since:
- 0.6
-
isNESTEdge
boolean isNESTEdge()
- Returns:
true
if the data class can be casted toNESTEdgeClass
- Since:
- 0.6
-
isNESTConstraintEdge
boolean isNESTConstraintEdge()
- Returns:
true
if the data class can be casted toNESTConstraintEdgeClass
- Since:
- 0.6
-
isNESTControlflowEdge
boolean isNESTControlflowEdge()
- Returns:
true
if the data class can be casted toNESTControlflowEdgeClass
- Since:
- 0.6
-
isNESTDataflowEdge
boolean isNESTDataflowEdge()
- Returns:
true
if the data class can be casted toNESTDataflowEdgeClass
- Since:
- 0.6
-
isNESTPartOfEdge
boolean isNESTPartOfEdge()
- Returns:
true
if 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:
-
-