Class ParentItemObjectImpl<T extends ControlflowItemObject>
- 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.StatusableObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.ControlflowItemObjectImpl
-
- de.uni_trier.wi2.procake.data.object.wf.impl.ParentItemObjectImpl<T>
-
- All Implemented Interfaces:
DataObject,AbstractWorkflowItemObject,ControlflowItemObject,ParentItemObject<T>,StatusableObject,PropertyHandler
- Direct Known Subclasses:
NodeObjectImpl,SequenceObjectImpl
public abstract class ParentItemObjectImpl<T extends ControlflowItemObject> extends ControlflowItemObjectImpl implements ParentItemObject<T>
Abstract object used in the controlflow of a workflow. CAKE III - Extension. Refer to the corresponding InterfaceParentItemObjectfor more information.- Author:
- Alexander Stromer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
StatusableObject.STATES
-
-
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 ParentItemObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItem(T newObject)Adds the given object to the list of items.ControlflowItemObjectdeepSearchItem(String id)Searches the item with the given Id in the tree below the current object and returns it.TgetFirstItem()Returns the first item of the list.TgetItem(String id)Returns the item with the given Id if it is directly connected to this object.LinkedList<T>getItems()Returns the list of items, sorted according to the operations done on the list.TgetNextSibling(String fromId)Returns the next (insertion-order) item lodated below the same parent.TgetPreviousSibling(String fromId)Returns the previous (insertion-order) item located below the same parent.voidinsertAfter(String fromId, T newObject)Inserts the given object after the item with the given id.voidinsertBefore(String fromId, T newObject)Inserts the given object before the item with the given id.booleanremoveItem(String id)Removes the item with the given id of the list.-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.ControlflowItemObjectImpl
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe, setParent
-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.StatusableObjectImpl
getStatus, setStatus
-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
assertSameValueAsIn, distributeWorkflowObject, 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, 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.wf.AbstractWorkflowItemObject
getSemanticDescriptor, getWFItemId, getWorkflow, setSemanticDescriptor, setWFItemId, setWorkflow
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.ControlflowItemObject
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, 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
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
-
-
-
Constructor Detail
-
ParentItemObjectImpl
public ParentItemObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
getNextSibling
public T getNextSibling(String fromId)
Description copied from interface:ParentItemObjectReturns the next (insertion-order) item lodated below the same parent.- Specified by:
getNextSiblingin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
fromId- Id of the current item.- Returns:
- Next item. NULL, if it doesn't exist.
-
getPreviousSibling
public T getPreviousSibling(String fromId)
Description copied from interface:ParentItemObjectReturns the previous (insertion-order) item located below the same parent.- Specified by:
getPreviousSiblingin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
fromId- Id of the current item.- Returns:
- Previous item. NULL, if it doesn't exist.
-
insertAfter
public void insertAfter(String fromId, T newObject)
Description copied from interface:ParentItemObjectInserts the given object after the item with the given id.- Specified by:
insertAfterin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
fromId- Id of the object to insert the object after.newObject- The object, which has to be inserted.
-
insertBefore
public void insertBefore(String fromId, T newObject)
Description copied from interface:ParentItemObjectInserts the given object before the item with the given id.- Specified by:
insertBeforein interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
fromId- Id of the object to insert the object before.newObject- The object, which has to be inserted.
-
deepSearchItem
public ControlflowItemObject deepSearchItem(String id)
Description copied from interface:ParentItemObjectSearches the item with the given Id in the tree below the current object and returns it.- Specified by:
deepSearchItemin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
id- The Id of the object which has to be searched.- Returns:
- The object, if the object with the given Id was found; NULL otherwise.
-
getItem
public T getItem(String id)
Description copied from interface:ParentItemObjectReturns the item with the given Id if it is directly connected to this object.- Specified by:
getItemin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
id- The Id of the object, which has to be found.- Returns:
- The object, if the object with the given Id was found; NULL otherwise.
-
addItem
public boolean addItem(T newObject)
Description copied from interface:ParentItemObjectAdds the given object to the list of items.- Specified by:
addItemin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
newObject- The object, which has to be added.- Returns:
- TRUE, if the add-operation was successful; FALSE otherwise.
-
getItems
public LinkedList<T> getItems()
Description copied from interface:ParentItemObjectReturns the list of items, sorted according to the operations done on the list.- Specified by:
getItemsin interfaceParentItemObject<T extends ControlflowItemObject>- Returns:
- Ordered list of items.
-
removeItem
public boolean removeItem(String id)
Description copied from interface:ParentItemObjectRemoves the item with the given id of the list.- Specified by:
removeItemin interfaceParentItemObject<T extends ControlflowItemObject>- Parameters:
id- Id of the item to remove.- Returns:
- TRUE, if an object with the given Id was removed. FALSE otherwise.
-
getFirstItem
public T getFirstItem()
Description copied from interface:ParentItemObjectReturns the first item of the list.- Specified by:
getFirstItemin interfaceParentItemObject<T extends ControlflowItemObject>- Returns:
- First item of the list; NULL, if there is no item in the list.
-
-