org.mmbase.bridge
Interface NodeList

All Superinterfaces:
BridgeList, java.util.Collection, java.util.List
All Known Subinterfaces:
NodeManagerList, RelationList, RelationManagerList
All Known Implementing Classes:
BasicNodeList, BasicNodeManagerList, BasicRelationList, BasicRelationManagerList, TreeList

public interface NodeList
extends BridgeList

A list of nodes

Version:
$Id: NodeList.java,v 1.9 2003/12/17 09:14:45 michiel Exp $
Author:
Pierre van Rooden

Field Summary
static java.lang.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
getProperty, setProperty, sort, sort
 
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
 

Field Detail

QUERY_PROPERTY

public static final java.lang.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
Method Detail

getNode

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

Parameters:
index - the position of the Node to retrieve

nodeIterator

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


subNodeList

public 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)


MMBase build 1.7.1.20041002