Interface CollectionObject
-
- All Superinterfaces:
DataObject,PropertyHandler
- All Known Subinterfaces:
ListObject,SetObject
- All Known Implementing Classes:
CollectionObjectImpl,ListObjectImpl,SetObjectImpl
public interface CollectionObject extends DataObject
A CollectionObject represents an container for otherDataObjects.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
SetObjectorListObject.- Author:
- Rainer Maximini
- See Also:
CollectionClass
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENTComponent: "cake.data.objects" (LogComponentIdentifier.COMPONENT)static StringCOMPONENT_KEYComponent-Key: "26" (LogComponentIdentifier.COMPONENT_KEY_BYTEARRAYOBJECT)static StringLOG_WRONG_ELEMENT_TYPEThe new boundary's element-type does not match the element type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAll(Collection<? extends DataObject> collection)voidaddValue(DataObject value)booleancontains(DataObject valueToCheck)Collection<DataObject>getCollection()CollectionClassgetCollectionClass()DataObjectgetValue(String objectId)DataObjectIteratoriterator()voidremoveValue(DataObject value)intsize()-
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
-
-
-
-
Field Detail
-
COMPONENT
static final String COMPONENT
Component: "cake.data.objects" (LogComponentIdentifier.COMPONENT)- See Also:
- Constant Field Values
-
COMPONENT_KEY
static final String COMPONENT_KEY
Component-Key: "26" (LogComponentIdentifier.COMPONENT_KEY_BYTEARRAYOBJECT)- See Also:
- Constant Field Values
-
LOG_WRONG_ELEMENT_TYPE
static final String LOG_WRONG_ELEMENT_TYPE
The new boundary's element-type does not match the element type.- See Also:
- Constant Field Values
-
-
Method Detail
-
addValue
void addValue(DataObject value) throws InvalidTypeException
- Throws:
InvalidTypeException
-
addAll
void addAll(Collection<? extends DataObject> collection) throws InvalidTypeException
- Throws:
InvalidTypeException
-
contains
boolean contains(DataObject valueToCheck)
-
getCollectionClass
CollectionClass getCollectionClass()
-
getValue
DataObject getValue(String objectId)
- Parameters:
objectId- The id of theDataObjectto return.- Returns:
- Returns the element with the specified object id or
nullif noDataObjectwith this id exists.
-
iterator
DataObjectIterator iterator()
-
removeValue
void removeValue(DataObject value)
-
size
int size()
- Returns:
- the number of elements
-
getCollection
Collection<DataObject> getCollection()
-
-