Class CollectionObjectImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
-
- de.uni_trier.wi2.procake.data.object.base.impl.CollectionObjectImpl
-
- All Implemented Interfaces:
CollectionObject,DataObject,PropertyHandler
- Direct Known Subclasses:
ListObjectImpl,SetObjectImpl
public abstract class CollectionObjectImpl extends DataObjectImpl implements CollectionObject
- Author:
- Rainer Maximini
-
-
Field Summary
-
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.base.CollectionObject
COMPONENT, COMPONENT_KEY, LOG_WRONG_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description CollectionObjectImpl(DataClass dataClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(Collection<? extends DataObject> collection)voidaddValue(DataObject value)booleancontains(DataObject valueToCheck)CollectionClassgetCollectionClass()DataObjectgetValue(String objectId)DataObjectIteratoriterator()voidremoveValue(DataObject value)intsize()StringtoDetailedString()Returns a detailed String, if the output of the standard toString() method would be to long.StringtoString()-
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, assertSameValueAsIn, copy, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, 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, removeProperty, setDataClass, setId, 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.base.CollectionObject
getCollection
-
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, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Constructor Detail
-
CollectionObjectImpl
public CollectionObjectImpl(DataClass dataClass)
-
-
Method Detail
-
addValue
public void addValue(DataObject value) throws InvalidTypeException
- Specified by:
addValuein interfaceCollectionObject- Throws:
InvalidTypeException
-
addAll
public void addAll(Collection<? extends DataObject> collection) throws InvalidTypeException
- Specified by:
addAllin interfaceCollectionObject- Throws:
InvalidTypeException
-
contains
public boolean contains(DataObject valueToCheck)
- Specified by:
containsin interfaceCollectionObject
-
getCollectionClass
public CollectionClass getCollectionClass()
- Specified by:
getCollectionClassin interfaceCollectionObject
-
getValue
public DataObject getValue(String objectId)
- Specified by:
getValuein interfaceCollectionObject- Parameters:
objectId- The id of theDataObjectto return.- Returns:
- Returns the element with the specified object id or
nullif noDataObjectwith this id exists.
-
iterator
public DataObjectIterator iterator()
- Specified by:
iteratorin interfaceCollectionObject
-
removeValue
public void removeValue(DataObject value)
- Specified by:
removeValuein interfaceCollectionObject
-
size
public int size()
- Specified by:
sizein interfaceCollectionObject- Returns:
- the number of elements
-
toString
public String toString()
- Overrides:
toStringin classDataObjectImpl
-
toDetailedString
public String toDetailedString()
Description copied from interface:DataObjectReturns a detailed String, if the output of the standard toString() method would be to long.- Specified by:
toDetailedStringin interfaceDataObject- Overrides:
toDetailedStringin classDataObjectImpl- Returns:
-
-