Class DataflowWrapperObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.DataflowWrapperObjectImpl
-
- All Implemented Interfaces:
DataObject,AbstractWorkflowItemObject,DataflowWrapperObject,PropertyHandler
public class DataflowWrapperObjectImpl extends AbstractWorkflowItemObjectImpl implements DataflowWrapperObject
Data-element used in workflow-objects. CAKE III - Extension. Refer to the corresponding InterfaceDataflowWrapperObjectfor more information.- Author:
- Alexander Stromer
-
-
Field Summary
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
workflow
-
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
-
Constructor Summary
Constructors Constructor Description DataflowWrapperObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddChild(DataflowWrapperObject newChild)Adds a new child.voidassertSameValueAsIn(DataObject object)DataflowWrapperObjectdeepSearchChild(String id)Searches the whole tree-structure for the DataflowWrapperObject with the given id and returns it.protected voiddistributeWorkflowObject(WorkflowObject workflow)Informs all subWorkflowObjects about getting a new workflow-items.DataflowWrapperObjectgetChild(String id)Returns the child with the given id.List<DataflowWrapperObject>getChilds()Returns the list of childs for this object.DataObjectgetDataObject()Returns the CAKE1-DataObject attached to the DataflowWrapperObject.StringgetName()DataflowWrapperObjectgetParent()Returns the parent-object of the DataflowWrapperObject.booleanhasChilds()Checks if childs are available for this object.booleanisReferencedAsInput()Checks if the dataobject is referenced as an input-dataobject for tasks.booleanisReferencedAsOutput()Checks if the dataobject is referenced as an output-dataobject for tasks.DataflowWrapperObjectremoveChild(String id)Removes the child with the given id.voidsetDataObject(DataObject dataObject)Sets the given CAKE1-DataObject to the DataflowWrapperObject.voidsetName(String name)voidsetParent(DataflowWrapperObject parent)Sets the parent-object of the DataflowWrapperObject.StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
getSemanticDescriptor, getWFItemId, getWorkflow, hasSameValueAsIn, publishAddItem, publishRemoveItem, setSemanticDescriptor, setWFItemId, setWorkflow
-
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.wf.AbstractWorkflowItemObject
getSemanticDescriptor, getWFItemId, getWorkflow, setSemanticDescriptor, setWFItemId, setWorkflow
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
copy, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, 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
-
DataflowWrapperObjectImpl
public DataflowWrapperObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
getDataObject
public DataObject getDataObject()
Description copied from interface:DataflowWrapperObjectReturns the CAKE1-DataObject attached to the DataflowWrapperObject.- Specified by:
getDataObjectin interfaceDataflowWrapperObject- Returns:
- The CAKE1-DataObject.
-
setDataObject
public void setDataObject(DataObject dataObject)
Description copied from interface:DataflowWrapperObjectSets the given CAKE1-DataObject to the DataflowWrapperObject.- Specified by:
setDataObjectin interfaceDataflowWrapperObject- Parameters:
dataObject- The CAKE1-DataObject to set.
-
getName
public String getName()
- Specified by:
getNamein interfaceDataflowWrapperObject- Returns:
- the name
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceDataflowWrapperObject- Parameters:
name- the name to set
-
getParent
public DataflowWrapperObject getParent()
Description copied from interface:DataflowWrapperObjectReturns the parent-object of the DataflowWrapperObject.- Specified by:
getParentin interfaceDataflowWrapperObject- Returns:
- The parent-object.
-
setParent
public void setParent(DataflowWrapperObject parent)
Description copied from interface:DataflowWrapperObjectSets the parent-object of the DataflowWrapperObject.- Specified by:
setParentin interfaceDataflowWrapperObject- Parameters:
parent- The new parent-object.
-
addChild
public boolean addChild(DataflowWrapperObject newChild)
Description copied from interface:DataflowWrapperObjectAdds a new child.- Specified by:
addChildin interfaceDataflowWrapperObject- Parameters:
newChild- The new child to add.- Returns:
- TRUE, if the process was successfull.
-
deepSearchChild
public DataflowWrapperObject deepSearchChild(String id)
Description copied from interface:DataflowWrapperObjectSearches the whole tree-structure for the DataflowWrapperObject with the given id and returns it.- Specified by:
deepSearchChildin interfaceDataflowWrapperObject- Parameters:
id- The id of the item to search for.- Returns:
- An Object, if an item with this id was found. Null otherwise.
-
hasChilds
public boolean hasChilds()
Description copied from interface:DataflowWrapperObjectChecks if childs are available for this object.- Specified by:
hasChildsin interfaceDataflowWrapperObject- Returns:
- TRUE, if childs are available. FALSE otherwise.
-
getChilds
public List<DataflowWrapperObject> getChilds()
Description copied from interface:DataflowWrapperObjectReturns the list of childs for this object.- Specified by:
getChildsin interfaceDataflowWrapperObject- Returns:
-
getChild
public DataflowWrapperObject getChild(String id)
Description copied from interface:DataflowWrapperObjectReturns the child with the given id.- Specified by:
getChildin interfaceDataflowWrapperObject- Parameters:
id- The id of the child to get.- Returns:
- The object with the given id, NULL otherwise.
-
removeChild
public DataflowWrapperObject removeChild(String id)
Description copied from interface:DataflowWrapperObjectRemoves the child with the given id. The item with this id, has to be a direct child of this object. Subitems are not inspected and therefore not removed.- Specified by:
removeChildin interfaceDataflowWrapperObject- Parameters:
id- The id of the object, which has to be removed.
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
assertSameValueAsIn
public void assertSameValueAsIn(DataObject object) throws AssertSameValueAsInException
- Specified by:
assertSameValueAsInin interfaceDataObject- Overrides:
assertSameValueAsInin classAbstractWorkflowItemObjectImpl- Throws:
AssertSameValueAsInException
-
distributeWorkflowObject
protected void distributeWorkflowObject(WorkflowObject workflow)
Description copied from class:AbstractWorkflowItemObjectImplInforms all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObjectin classAbstractWorkflowItemObjectImpl
-
isReferencedAsInput
public boolean isReferencedAsInput()
Description copied from interface:DataflowWrapperObjectChecks if the dataobject is referenced as an input-dataobject for tasks.- Specified by:
isReferencedAsInputin interfaceDataflowWrapperObject- Returns:
- TRUE, if the dataobject is referenced as input-dataobject for one or more tasks. FALSE otherwise.
-
isReferencedAsOutput
public boolean isReferencedAsOutput()
Description copied from interface:DataflowWrapperObjectChecks if the dataobject is referenced as an output-dataobject for tasks.- Specified by:
isReferencedAsOutputin interfaceDataflowWrapperObject- Returns:
- TRUE, if the dataobject is referenced as output-dataobject for one or more tasks. FALSE otherwise.
-
-