Interface ParentItemObject<T extends ControlflowItemObject>
- All Superinterfaces:
AbstractWorkflowItemObject
,ControlflowItemObject
,DataObject
,PropertyHandler
,StatusableObject
- All Known Subinterfaces:
NodeObject
,SequenceObject
,SubWorkflowObject
- All Known Implementing Classes:
NodeObjectImpl
,ParentItemObjectImpl
,SequenceObjectImpl
Interface of an abstract object used in the controlflow of a workflow. CAKE III - Extension.
Represents a workflowobject, which can be integrated in a sequence. Current descendants are
WorkflowNode and WorkflowLeaf.
- Author:
- Alexander Stromer
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
StatusableObject.STATES
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds the given object to the list of items.deepSearchItem
(String id) Searches the item with the given Id in the tree below the current object and returns it.Returns the first item of the list.Returns the item with the given Id if it is directly connected to this object.getItems()
Returns the list of items, sorted according to the operations done on the list.getNextSibling
(String fromId) Returns the next (insertion-order) item lodated below the same parent.getPreviousSibling
(String fromId) Returns the previous (insertion-order) item located below the same parent.void
insertAfter
(String fromId, T newObject) Inserts the given object after the item with the given id.void
insertBefore
(String fromId, T newObject) Inserts the given object before the item with the given id.boolean
removeItem
(String id) Removes the item with the given id of the list.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, setPropertyRootNode
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
Method Details
-
getNextSibling
Returns the next (insertion-order) item lodated below the same parent.- Parameters:
fromId
- Id of the current item.- Returns:
- Next item. NULL, if it doesn't exist.
-
getPreviousSibling
Returns the previous (insertion-order) item located below the same parent.- Parameters:
fromId
- Id of the current item.- Returns:
- Previous item. NULL, if it doesn't exist.
-
insertAfter
Inserts the given object after the item with the given id.- Parameters:
fromId
- Id of the object to insert the object after.newObject
- The object, which has to be inserted.
-
insertBefore
Inserts the given object before the item with the given id.- Parameters:
fromId
- Id of the object to insert the object before.newObject
- The object, which has to be inserted.
-
deepSearchItem
Searches the item with the given Id in the tree below the current object and returns it.- 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
Returns the item with the given Id if it is directly connected to this object.- 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
Adds the given object to the list of items.- Parameters:
newObject
- The object, which has to be added.- Returns:
- TRUE, if the add-operation was successful; FALSE otherwise.
-
getItems
LinkedList<T> getItems()Returns the list of items, sorted according to the operations done on the list.- Returns:
- Ordered list of items.
-
removeItem
Removes the item with the given id of the list.- Parameters:
id
- Id of the item to remove.- Returns:
- TRUE, if an object with the given Id was removed. FALSE otherwise.
-
getFirstItem
T getFirstItem()Returns the first item of the list.- Returns:
- First item of the list; NULL, if there is no item in the list.
-