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 Interface
ParentItemObject
for 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
-
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 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, setPropertyRootNode, 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, setPropertyRootNode
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
Constructor Details
-
ParentItemObjectImpl
Standard constructor- Parameters:
dataClass
-
-
-
Method Details
-
getNextSibling
Description copied from interface:ParentItemObject
Returns the next (insertion-order) item lodated below the same parent.- Specified by:
getNextSibling
in interfaceParentItemObject<T extends ControlflowItemObject>
- Parameters:
fromId
- Id of the current item.- Returns:
- Next item. NULL, if it doesn't exist.
-
getPreviousSibling
Description copied from interface:ParentItemObject
Returns the previous (insertion-order) item located below the same parent.- Specified by:
getPreviousSibling
in interfaceParentItemObject<T extends ControlflowItemObject>
- Parameters:
fromId
- Id of the current item.- Returns:
- Previous item. NULL, if it doesn't exist.
-
insertAfter
Description copied from interface:ParentItemObject
Inserts the given object after the item with the given id.- Specified by:
insertAfter
in interfaceParentItemObject<T extends ControlflowItemObject>
- Parameters:
fromId
- Id of the object to insert the object after.newObject
- The object, which has to be inserted.
-
insertBefore
Description copied from interface:ParentItemObject
Inserts the given object before the item with the given id.- Specified by:
insertBefore
in interfaceParentItemObject<T extends ControlflowItemObject>
- Parameters:
fromId
- Id of the object to insert the object before.newObject
- The object, which has to be inserted.
-
deepSearchItem
Description copied from interface:ParentItemObject
Searches the item with the given Id in the tree below the current object and returns it.- Specified by:
deepSearchItem
in 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
Description copied from interface:ParentItemObject
Returns the item with the given Id if it is directly connected to this object.- Specified by:
getItem
in 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
Description copied from interface:ParentItemObject
Adds the given object to the list of items.- Specified by:
addItem
in interfaceParentItemObject<T extends ControlflowItemObject>
- Parameters:
newObject
- The object, which has to be added.- Returns:
- TRUE, if the add-operation was successful; FALSE otherwise.
-
getItems
Description copied from interface:ParentItemObject
Returns the list of items, sorted according to the operations done on the list.- Specified by:
getItems
in interfaceParentItemObject<T extends ControlflowItemObject>
- Returns:
- Ordered list of items.
-
removeItem
Description copied from interface:ParentItemObject
Removes the item with the given id of the list.- Specified by:
removeItem
in 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
Description copied from interface:ParentItemObject
Returns the first item of the list.- Specified by:
getFirstItem
in interfaceParentItemObject<T extends ControlflowItemObject>
- Returns:
- First item of the list; NULL, if there is no item in the list.
-