org.mmbase.bridge.implementation
Class BasicNodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.mmbase.bridge.implementation.BasicList<E>
              extended by org.mmbase.bridge.implementation.AbstractNodeList<Node>
                  extended by org.mmbase.bridge.implementation.BasicNodeList
All Implemented Interfaces:
Serializable, Iterable<Node>, Collection<Node>, List<Node>, RandomAccess, BridgeList<Node>, NodeList

public class BasicNodeList
extends AbstractNodeList<Node>
implements NodeList

A list of nodes

Version:
$Id: BasicNodeList.java 42103 2010-05-04 15:01:39Z michiel $
Author:
Pierre van Rooden
See Also:
Serialized Form

Nested Class Summary
protected  class BasicNodeList.BasicNodeIterator
           
 
Nested classes/interfaces inherited from class org.mmbase.bridge.implementation.BasicList
BasicList.BasicIterator
 
Field Summary
 
Fields inherited from class org.mmbase.bridge.implementation.AbstractNodeList
cloud, nodeManager
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.mmbase.bridge.NodeList
NODESTEP_PROPERTY, QUERY_PROPERTY
 
Constructor Summary
BasicNodeList()
           
BasicNodeList(Collection c, Cloud cloud)
           
BasicNodeList(Collection c, NodeManager nodeManager)
           
 
Method Summary
protected  Node convert(Object o)
          converts the object in the list to the excpected format
static Node convertMMObjectNodeToBridgeNode(Cloud cloud, NodeManager nodeManager, Object o)
           
protected static Node getNode(Cloud cloud, NodeManager nodeManager, MMObjectNode coreNode)
           
 NodeIterator nodeIterator()
          Returns an type-specific iterator for this list.
 NodeList subNodeList(int fromIndex, int toIndex)
          Returns a sublist of this list.
 
Methods inherited from class org.mmbase.bridge.implementation.AbstractNodeList
castToNodeManager, convertWithBridgeToNode, getNode
 
Methods inherited from class org.mmbase.bridge.implementation.BasicList
add, convert, convertAll, get, getProperties, getProperty, remove, set, setProperty, size, sort, sort, subList, toArray
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.NodeList
getNode
 
Methods inherited from interface org.mmbase.bridge.BridgeList
getProperties, getProperty, setProperty, sort, sort, subList
 
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, toArray, toArray
 

Constructor Detail

BasicNodeList

BasicNodeList()

BasicNodeList

public BasicNodeList(Collection c,
                     Cloud cloud)

BasicNodeList

public BasicNodeList(Collection c,
                     NodeManager nodeManager)
Method Detail

convertMMObjectNodeToBridgeNode

public static Node convertMMObjectNodeToBridgeNode(Cloud cloud,
                                                   NodeManager nodeManager,
                                                   Object o)

convert

protected Node convert(Object o)
Description copied from class: BasicList
converts the object in the list to the excpected format

Overrides:
convert in class AbstractNodeList<Node>

subNodeList

public NodeList subNodeList(int fromIndex,
                            int toIndex)
Description copied from interface: NodeList
Returns a sublist of this list.

Specified by:
subNodeList in interface NodeList
Parameters:
fromIndex - the position in the current list where the sublist starts (inclusive)
toIndex - the position in the current list where the sublist ends (exclusive)
Returns:
sublist of this list

nodeIterator

public NodeIterator nodeIterator()
Description copied from interface: NodeList
Returns an type-specific iterator for this list.

Specified by:
nodeIterator in interface NodeList
Returns:
Node iterator

getNode

protected static Node getNode(Cloud cloud,
                              NodeManager nodeManager,
                              MMObjectNode coreNode)
Since:
MMBase-1.8.4


MMBase 2.0-SNAPSHOT - null