org.mmbase.bridge
Interface NodeList

All Superinterfaces:
BridgeList<Node>, Collection<Node>, Iterable<Node>, List<Node>
All Known Implementing Classes:
BasicNodeList, BridgeCaster.NodeListWrapper, BridgeCollections.EmptyNodeList, BridgeCollections.UnmodifiableNodeList, CollectionNodeList, GrowingTreeList, SimpleNodeList, TreeList

public interface NodeList
extends BridgeList<Node>

A list of nodes

Version:
$Id: NodeList.java 41186 2010-02-26 17:54:31Z michiel $
Author:
Pierre van Rooden

Field Summary
static String NODESTEP_PROPERTY
          The node-step property will be set on a cluster node list which is the result of a NodeQuery (which can also result 'real' nodes).
static String QUERY_PROPERTY
          In the propery of the list with this name you find back the original Query object by which this NodeList was created (if it as created like that)
 
Method Summary
 Node getNode(int index)
          Returns the Node at the indicated postion in the list
 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 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
 

Field Detail

QUERY_PROPERTY

static final String QUERY_PROPERTY
In the propery of the list with this name you find back the original Query object by which this NodeList was created (if it as created like that)

Since:
MMBase-1.7
See Also:
Constant Field Values

NODESTEP_PROPERTY

static final String NODESTEP_PROPERTY
The node-step property will be set on a cluster node list which is the result of a NodeQuery (which can also result 'real' nodes). This happens when you can Cloud.getList(Query) with a NodeQuery argument.

Since:
MMBase-1.8
See Also:
Constant Field Values
Method Detail

getNode

Node getNode(int index)
Returns the Node at the indicated postion in the list

Parameters:
index - the position of the Node to retrieve
Returns:
Node at the indicated postion

nodeIterator

NodeIterator nodeIterator()
Returns an type-specific iterator for this list.

Returns:
Node iterator

subNodeList

NodeList subNodeList(int fromIndex,
                     int toIndex)
Returns a sublist of this list.

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


MMBase 2.0-SNAPSHOT - null