com.gentics.api.lib.resolving
Class NestedCollection
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
com.gentics.api.lib.resolving.NestedCollection
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess
public class NestedCollection
- extends Vector
This class is just a wrapper aroung a vector. The
PropertyResolver
might return instances
of this class for property paths that contain collections of objects on the
way to the resolved attribute (but not the last part of the property path).
Example:
When resolving the property
object.users.name
where users returns a collection of linked objects, the resulting collection
is an instance of this class.
- Author:
- norbert
- See Also:
- Serialized Form
Methods inherited from class java.util.Vector |
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
innerCollection
protected Collection innerCollection
NestedCollection
public NestedCollection()
add
public void add(int index,
Object element)
- Specified by:
add
in interface List
- Overrides:
add
in class Vector
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface List
- Overrides:
add
in class Vector
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface List
- Overrides:
addAll
in class Vector
addAll
public boolean addAll(int index,
Collection c)
- Specified by:
addAll
in interface List
- Overrides:
addAll
in class Vector
addElement
public void addElement(Object obj)
- Overrides:
addElement
in class Vector
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface List
- Overrides:
clear
in class Vector
getInnerCollection
public Collection getInnerCollection()
- Get the inner collection (unmodifiable)
- Returns:
- inner collection
Copyright © 2013 Gentics Software GmbH. All Rights Reserved.