Class SequenceObjectImpl
- 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<SequencedObject>
-
- de.uni_trier.wi2.procake.data.object.wf.impl.SequenceObjectImpl
-
- All Implemented Interfaces:
DataObject,AbstractWorkflowItemObject,ControlflowItemObject,ParentItemObject<SequencedObject>,SequenceObject,StatusableObject,PropertyHandler
public class SequenceObjectImpl extends ParentItemObjectImpl<SequencedObject> implements SequenceObject
Sequence-object used in the controlflow of a workflow. CAKE III - Extension. Refer to the corresponding InterfaceSequenceObjectfor more information.- Author:
- Sebastian Goerg
-
-
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
-
Fields inherited from interface de.uni_trier.wi2.procake.data.object.wf.SequenceObject
COMPONENT, COMPONENT_KEY, LOG_OBJECT_NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description SequenceObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItem(SequencedObject newItem)Adds the given object to the list of items.protected voiddistributeWorkflowObject(WorkflowObject workflow)Informs all subWorkflowObjects about getting a new workflow-items.LinkedList<SequencedObject>getItems()Returns the list of items, sorted according to the operations done on the list.booleanremoveItem(String id)Removes the item with the given id of the list.StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.ParentItemObjectImpl
deepSearchItem, getFirstItem, getItem, getNextSibling, getPreviousSibling, insertAfter, insertBefore
-
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, 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.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.object.wf.ParentItemObject
deepSearchItem, getFirstItem, getItem, getNextSibling, getPreviousSibling, insertAfter, insertBefore
-
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
-
SequenceObjectImpl
public SequenceObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
addItem
public boolean addItem(SequencedObject newItem)
Description copied from interface:ParentItemObjectAdds the given object to the list of items.- Specified by:
addItemin interfaceParentItemObject<SequencedObject>- Specified by:
addItemin interfaceSequenceObject- Overrides:
addItemin classParentItemObjectImpl<SequencedObject>- Parameters:
newItem- The object, which has to be added.- Returns:
- TRUE, if the add-operation was successful; FALSE otherwise.
-
getItems
public LinkedList<SequencedObject> getItems()
Description copied from interface:ParentItemObjectReturns the list of items, sorted according to the operations done on the list.- Specified by:
getItemsin interfaceParentItemObject<SequencedObject>- Specified by:
getItemsin interfaceSequenceObject- Overrides:
getItemsin classParentItemObjectImpl<SequencedObject>- 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<SequencedObject>- Specified by:
removeItemin interfaceSequenceObject- Overrides:
removeItemin classParentItemObjectImpl<SequencedObject>- Parameters:
id- Id of the item to remove.- Returns:
- TRUE, if an object with the given Id was removed. FALSE otherwise.
-
distributeWorkflowObject
protected void distributeWorkflowObject(WorkflowObject workflow)
Description copied from class:AbstractWorkflowItemObjectImplInforms all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObjectin classAbstractWorkflowItemObjectImpl
-
-