Interface ListObject
- All Superinterfaces:
CollectionObject
,DataObject
,PropertyHandler
- All Known Implementing Classes:
ListObjectImpl
A ListObject represents a list of
DataObject
s.
A detailed description can be found in the ListClass
.
- Author:
- Rainer Maximini
- See Also:
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.data.object.base.CollectionObject
LOG_WRONG_ELEMENT_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionelementAt
(int index) Returns a list of DataObjects contained in this ListObject.int
indexOf
(DataObject object) Searches for the first occurence of the given data object, testing for equality using theequals
method.int
indexOf
(DataObject object, int index) Searches for the first occurence of the given object, beginning the search atindex
, and testing for equality using theequals
method.void
insertAt
(DataObject value, int index) Inserts the specified data object in this list at the specifiedindex
.void
removeAt
(int index) Deletes the object at the specified index.void
setValues
(List<DataObject> values) Sets the DataObjects of this ListObject.Methods inherited from interface de.uni_trier.wi2.procake.data.object.base.CollectionObject
addAll, addValue, contains, getCollection, getCollectionClass, getValue, iterator, removeValue, 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_INDEX_OUT_OF_BOUNDS
- See Also:
-
-
Method Details
-
elementAt
-
getValues
List<DataObject> getValues()Returns a list of DataObjects contained in this ListObject.- Returns:
- A list of DataObjects contained in this ListObject
-
setValues
Sets the DataObjects of this ListObject. If a type of an element is incompatible with the elementClass aProCAKEInvalidTypeException
is thrown.- Parameters:
values
-
-
getListClass
ListClass getListClass() -
indexOf
Searches for the first occurence of the given data object, testing for equality using theequals
method.- Parameters:
object
- the data object that should be searched- Returns:
- the index of the first occurrence of the argument in this list; returns
-1
if the object is not found. - See Also:
-
indexOf
Searches for the first occurence of the given object, beginning the search atindex
, and testing for equality using theequals
method.- Parameters:
object
- the data object that should be searchedindex
- the non-negative index to start searching from.- Returns:
- the index of the first occurrence of the object argument in this list at position
index
or later in the vector; returns-1
if the object is not found. (Returns-1
ifindex
>= the current size of this list.) - See Also:
-
insertAt
Inserts the specified data object in this list at the specifiedindex
. Each object in this list with an index greater or equal to the specifiedindex
is shifted upward to have an index one greater than the value it had previously.The index must be a value greater than or equal to
0
and less than or equal to the current size of the list. (If the index is equal to the current size of the list, the new object is appended to the list.)- Parameters:
value
- the data object to insert.index
- where to insert the new object.- Throws:
ProCAKEInvalidTypeException
- if the value type is incompatible to the element type.
-
removeAt
void removeAt(int index) Deletes the object at the specified index. Each object in this list with an index greater or equal to the specifiedindex
is shifted downward to have an index one smaller than the value it had previously. The size of this list is decreased by1
.The index must be a value greater than or equal to
0
and less than the current size of the list.- Parameters:
index
- the index of the object to remove.
-