org.mmbase.bridge.implementation
Class AbstractNodeList<E extends Node>

Package class diagram package AbstractNodeList
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<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>, RandomAccess, BridgeList<E>
Direct Known Subclasses:
BasicNodeManagerList, BasicRelationList, BasicRelationManagerList, SimpleNodeList

public abstract class AbstractNodeList<E extends Node>
extends BasicList<E>

An abstract BasicList implementation which overrided convert(java.lang.Object) to make sure the list contains Nodes.

Since:
MMBase-1.9
Version:
$Id: AbstractNodeList.java 41187 2010-02-26 18:29:52Z michiel $
Author:
Nico Klasens
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.bridge.implementation.BasicList
BasicList.BasicIterator
 
Field Summary
protected  Cloud cloud
           
protected  NodeManager nodeManager
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractNodeList()
           
AbstractNodeList(Collection c)
           
AbstractNodeList(Collection c, Cloud cloud)
           
AbstractNodeList(Collection c, NodeManager nodeManager)
           
 
Method Summary
protected static NodeManager castToNodeManager(Cloud cloud, Node n)
          since MMBase 1.8
protected  E convert(Object o)
          converts the object in the list to the excpected format
static Node convertWithBridgeToNode(Cloud cloud, NodeManager nodeManager, Object o)
          Converts an object to a Node, using only bridge.
 Node getNode(int index)
           
 
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 java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, toArray
 

Field Detail

cloud

protected final Cloud cloud

nodeManager

protected final NodeManager nodeManager
Constructor Detail

AbstractNodeList

AbstractNodeList()

AbstractNodeList

AbstractNodeList(Collection c)

AbstractNodeList

AbstractNodeList(Collection c,
                 Cloud cloud)

AbstractNodeList

AbstractNodeList(Collection c,
                 NodeManager nodeManager)
Method Detail

convert

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

Overrides:
convert in class BasicList<E extends Node>

getNode

public Node getNode(int index)

convertWithBridgeToNode

public static Node convertWithBridgeToNode(Cloud cloud,
                                           NodeManager nodeManager,
                                           Object o)
Converts an object to a Node, using only bridge.

Returns:
a Node, or null if o is either null or could not be converted.

castToNodeManager

protected static NodeManager castToNodeManager(Cloud cloud,
                                               Node n)
since MMBase 1.8



MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34