Interface CollectionObject
- All Superinterfaces:
DataObject
,PropertyHandler
- All Known Subinterfaces:
ListObject
,SetObject
- All Known Implementing Classes:
CollectionObjectImpl
,ListObjectImpl
,SetObjectImpl
A CollectionObject represents an container for other
DataObject
s.
A detailed description can be found in the CollectionClass
.
This is an abstract interface for that no corresponding implementation exists. This interface
just summarises some methods that are equal for all collection objects like SetObject
or
ListObject
.
- Author:
- Rainer Maximini
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(Collection<? extends DataObject> collection) void
addValue
(DataObject value) boolean
contains
(DataObject valueToCheck) iterator()
void
removeValue
(DataObject value) int
size()
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
-
Field Details
-
LOG_WRONG_ELEMENT_TYPE
- See Also:
-
-
Method Details
-
addValue
- Throws:
ProCAKEInvalidTypeException
-
addAll
- Throws:
ProCAKEInvalidTypeException
-
contains
-
getCollectionClass
CollectionClass getCollectionClass() -
getValue
- Parameters:
objectId
- The id of theDataObject
to return.- Returns:
- Returns the element with the specified object id or
null
if noDataObject
with this id exists.
-
iterator
DataObjectIterator iterator() -
removeValue
-
size
int size()- Returns:
- the number of elements
-
getCollection
Collection<DataObject> getCollection()
-