Class AbstractWorkflowItemObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
-
- All Implemented Interfaces:
DataObject,AbstractWorkflowItemObject,PropertyHandler
- Direct Known Subclasses:
DataflowWrapperObjectImpl,DataReferenceObjectImpl,StatusableObjectImpl
public abstract class AbstractWorkflowItemObjectImpl extends DataObjectImpl implements AbstractWorkflowItemObject
Abstract object used in a workflow. CAKE III - Extension. Refer to the corresponding InterfaceAbstractWorkflowItemObjectfor more information.- Author:
- Alexander Stromer
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkflowObjectworkflowStores the workflow-object to which this controlflow-object is connected to.-
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowItemObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidassertSameValueAsIn(DataObject object)protected abstract voiddistributeWorkflowObject(WorkflowObject workflow)Informs all subWorkflowObjects about getting a new workflow-items.DataObjectgetSemanticDescriptor()Returns additional information for this workflow-element.StringgetWFItemId()Returns the workflow-unique reference-ID of this element.WorkflowObjectgetWorkflow()Returns the workflow associated with this controlflow-item.booleanhasSameValueAsIn(DataObject object)This method makes a deep compare.protected voidpublishAddItem(AbstractWorkflowItemObject newItem)Informs registered eventlisteners about an ADD-change of the block-oriented workflow-representation.protected voidpublishRemoveItem(AbstractWorkflowItemObject removedItem)Informs registered eventlisteners about a REMOVE-change of the block-oriented workflow-representation.voidsetSemanticDescriptor(DataObject newObject)Sets additional information for this workflow-element.voidsetWFItemId(String id)Sets the workflow-unique reference-ID of this element.voidsetWorkflow(WorkflowObject workflow)Sets the workflow where this item is integrated.-
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, toString, 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.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
-
-
-
-
Field Detail
-
workflow
protected WorkflowObject workflow
Stores the workflow-object to which this controlflow-object is connected to.
-
-
Constructor Detail
-
AbstractWorkflowItemObjectImpl
public AbstractWorkflowItemObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
getWFItemId
public String getWFItemId()
Description copied from interface:AbstractWorkflowItemObjectReturns the workflow-unique reference-ID of this element.- Specified by:
getWFItemIdin interfaceAbstractWorkflowItemObject- Returns:
- Unique ID
-
setWFItemId
public void setWFItemId(String id)
Description copied from interface:AbstractWorkflowItemObjectSets the workflow-unique reference-ID of this element.- Specified by:
setWFItemIdin interfaceAbstractWorkflowItemObject- Parameters:
id- Unique ID
-
getSemanticDescriptor
public DataObject getSemanticDescriptor()
Description copied from interface:AbstractWorkflowItemObjectReturns additional information for this workflow-element.- Specified by:
getSemanticDescriptorin interfaceAbstractWorkflowItemObject- Returns:
- Additional information.
-
setSemanticDescriptor
public void setSemanticDescriptor(DataObject newObject)
Description copied from interface:AbstractWorkflowItemObjectSets additional information for this workflow-element.- Specified by:
setSemanticDescriptorin interfaceAbstractWorkflowItemObject- Parameters:
newObject- Additional information.
-
getWorkflow
public WorkflowObject getWorkflow()
Description copied from interface:AbstractWorkflowItemObjectReturns the workflow associated with this controlflow-item.- Specified by:
getWorkflowin interfaceAbstractWorkflowItemObject- Returns:
- The workflow-object for this item.
-
setWorkflow
public void setWorkflow(WorkflowObject workflow)
Description copied from interface:AbstractWorkflowItemObjectSets the workflow where this item is integrated.- Specified by:
setWorkflowin interfaceAbstractWorkflowItemObject- Parameters:
workflow- The workflow for this item.
-
publishAddItem
protected void publishAddItem(AbstractWorkflowItemObject newItem)
Informs registered eventlisteners about an ADD-change of the block-oriented workflow-representation.- Parameters:
newItem- The item, which was added.
-
publishRemoveItem
protected void publishRemoveItem(AbstractWorkflowItemObject removedItem)
Informs registered eventlisteners about a REMOVE-change of the block-oriented workflow-representation.- Parameters:
removedItem- The id of the item, which was removed.
-
distributeWorkflowObject
protected abstract void distributeWorkflowObject(WorkflowObject workflow)
Informs all subWorkflowObjects about getting a new workflow-items.
-
hasSameValueAsIn
public boolean hasSameValueAsIn(DataObject object)
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:
object- 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
-
-