org.sakaiproject.metaobj.shared.model
Class ElementListBean

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.sakaiproject.metaobj.shared.model.ElementListBean
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class ElementListBean
extends ArrayList

Created by IntelliJ IDEA. User: John Ellis Date: Mar 11, 2004 Time: 3:55:06 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ElementListBean()
           
ElementListBean(org.jdom.Element parentElement, List elements, SchemaNode schema, boolean deferValidation)
           
ElementListBean(org.jdom.Element parentElement, SchemaNode schema, boolean deferValidation)
           
ElementListBean(List elements, SchemaNode schema)
           
 
Method Summary
 void add(int index, Object element)
          Inserts the specified element at the specified position in this list.
 boolean add(Object o)
          Appends the specified element to the end of this list.
 ElementBean createBlank()
           
 Object get(int index)
           
 Object remove(int index)
          Removes the element at the specified position in this list.
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

ElementListBean

public ElementListBean()

ElementListBean

public ElementListBean(org.jdom.Element parentElement,
                       SchemaNode schema,
                       boolean deferValidation)

ElementListBean

public ElementListBean(org.jdom.Element parentElement,
                       List elements,
                       SchemaNode schema,
                       boolean deferValidation)

ElementListBean

public ElementListBean(List elements,
                       SchemaNode schema)
Method Detail

get

public Object get(int index)

createBlank

public ElementBean createBlank()

remove

public Object remove(int index)
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).

Parameters:
index - the index of the element to removed.
Returns:
the element that was removed from the list.
Throws:
IndexOutOfBoundsException - if index out of range (index < 0 || index >= size()).

add

public boolean add(Object o)
Appends the specified element to the end of this list.

Parameters:
o - element to be appended to this list.
Returns:
true (as per the general contract of Collection.add).

add

public void add(int index,
                Object element)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).