Purpose: A CollectionContainerPolicy is ContainerPolicy whose container class implements the Collection interface.
Responsibilities: Provide the functionality to operate on an instance of a Collection.
ContainerPolicy, MapContainerPolicy
| Access | Constructor and Description |
|---|---|
| public | |
| public | CollectionContainerPolicy(Class<?> containerClass)
INTERNAL: Construct a new policy for the specified class. |
| public | CollectionContainerPolicy(String containerClassName)
INTERNAL: Construct a new policy for the specified class name. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean indicating whether the container changed.Overrides org. Implements org. |
| public Object | buildContainerFromVector(Vector<E> vector, AbstractSession session)
Overrides org. |
| public void | clear(Object
java.lang.Object container)Overrides org. Implements org. |
| public Object | cloneFor(Object container)
Overrides org. |
| protected boolean | Returns: boolean true if container 'contains' elementjava.lang.Object element, Object java.lang.Object container)Overrides org. |
| public Class | |
| public boolean | hasOrder()
Overrides org. |
| public boolean | |
| public boolean | isValidContainer(Object container)
Overrides org. |
| public Object | Returns: java.util.Enumeration/java.util.Iteratorjava.lang.Object container)Implements abstract org. Implements org. |
| protected boolean | removeFrom(Object
java.lang.Object This param represents the key that would be used by this object in a map, may be null key, Object java.lang.Object element, Object java.lang.Object container)Overrides org. Implements org. |
| public int | Returns: int The size of the container.Overrides org. Implements org. |
| CollectionContainerPolicy | back to summary |
|---|---|
| public CollectionContainerPolicy() INTERNAL: Construct a new policy. | |
| CollectionContainerPolicy | back to summary |
|---|---|
| public CollectionContainerPolicy(Class<?> containerClass) INTERNAL: Construct a new policy for the specified class. | |
| CollectionContainerPolicy | back to summary |
|---|---|
| public CollectionContainerPolicy(String containerClassName) INTERNAL: Construct a new policy for the specified class name. | |
| addInto | back to summary |
|---|---|
| public boolean addInto(Object key, Object element, Object container, AbstractSession session) Overrides org. Implements org. INTERNAL: Add element into a container which implements the Collection interface.
| |
| buildContainerFromVector | back to summary |
|---|---|
| public Object buildContainerFromVector(Vector<E> vector, AbstractSession session) Overrides org. INTERNAL: Return a container populated with the contents of the specified Vector.
| |
| clear | back to summary |
|---|---|
| public void clear(Object container) Overrides org. Implements org. INTERNAL: Remove all the elements from container. | |
| cloneFor | back to summary |
|---|---|
| public Object cloneFor(Object container) Overrides org. INTERNAL: Return a clone of the specified container.
| |
| contains | back to summary |
|---|---|
| protected boolean contains(Object element, Object container) Overrides org. INTERNAL: Return the true if element exists in container. | |
| getInterfaceType | back to summary |
|---|---|
| public Class Implements abstract org.
| |
| hasOrder | back to summary |
|---|---|
| public boolean hasOrder() Overrides org. INTERNAL: Return whether the collection has order. SortedSets cannot be indexed, but they are order-sensitive.
| |
| isCollectionPolicy | back to summary |
|---|---|
| public boolean isCollectionPolicy() Overrides org.
| |
| isValidContainer | back to summary |
|---|---|
| public boolean isValidContainer(Object container) Overrides org. INTERNAL: Validate the container type.
| |
| iteratorFor | back to summary |
|---|---|
| public Object iteratorFor(Object container) Implements abstract org. Implements org. INTERNAL: Return an iterator for the given container. | |
| removeFrom | back to summary |
|---|---|
| protected boolean removeFrom(Object key, Object element, Object container) Overrides org. Implements org. INTERNAL: Remove element from container which implements the Collection interface. | |
| sizeFor | back to summary |
|---|---|
| public int sizeFor(Object container) Overrides org. Implements org. INTERNAL: Return the size of container.
| |