net.sf.mmapps.commons.bridge
Class GenericNodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by net.sf.mmapps.commons.bridge.GenericNodeList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, org.mmbase.bridge.BridgeList, org.mmbase.bridge.NodeList

public class GenericNodeList
extends java.util.ArrayList
implements org.mmbase.bridge.NodeList

Generic node list to use extend MMbase node lists with properties

Version:
$Id: GenericNodeList.java,v 1.1 2006/04/06 10:00:34 nklasens Exp $
Author:
Nico Klasens (Finalist IT Group)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.mmbase.bridge.NodeList
NODESTEP_PROPERTY, QUERY_PROPERTY
 
Constructor Summary
GenericNodeList()
           
 
Method Summary
 org.mmbase.bridge.Node getNode(int index)
           
 java.lang.Object getProperty(java.lang.Object key)
           
 org.mmbase.bridge.NodeIterator nodeIterator()
           
 void setProperty(java.lang.Object key, java.lang.Object val)
           
 void sort()
           
 void sort(java.util.Comparator comp)
           
 org.mmbase.bridge.NodeList subNodeList(int fromIndex, int toIndex)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, 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, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

GenericNodeList

public GenericNodeList()
Method Detail

getNode

public org.mmbase.bridge.Node getNode(int index)
Specified by:
getNode in interface org.mmbase.bridge.NodeList
See Also:
NodeList.getNode(int)

nodeIterator

public org.mmbase.bridge.NodeIterator nodeIterator()
Specified by:
nodeIterator in interface org.mmbase.bridge.NodeList
See Also:
NodeList.nodeIterator()

subNodeList

public org.mmbase.bridge.NodeList subNodeList(int fromIndex,
                                              int toIndex)
Specified by:
subNodeList in interface org.mmbase.bridge.NodeList
See Also:
NodeList.subNodeList(int, int)

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Specified by:
getProperty in interface org.mmbase.bridge.BridgeList
See Also:
BridgeList.getProperty(java.lang.Object)

setProperty

public void setProperty(java.lang.Object key,
                        java.lang.Object val)
Specified by:
setProperty in interface org.mmbase.bridge.BridgeList
See Also:
BridgeList.setProperty(java.lang.Object, java.lang.Object)

sort

public void sort()
Specified by:
sort in interface org.mmbase.bridge.BridgeList
See Also:
BridgeList.sort()

sort

public void sort(java.util.Comparator comp)
Specified by:
sort in interface org.mmbase.bridge.BridgeList
See Also:
BridgeList.sort(java.util.Comparator)


Copyright © 2003-2006 mmapps. All Rights Reserved.