com.sapportals.portal.prt.pom
Class NodeList
java.lang.Object
|
+--com.sapportals.portal.prt.pom.NodeList
- All Implemented Interfaces:
- INodeList
- public class NodeList
- extends java.lang.Object
- implements INodeList
The NodeList is a generic implementation of the INodeList interface
|
Constructor Summary |
NodeList()
Class constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeList
public NodeList()
- Class constructor
getLength
public int getLength()
- The number of items in the list
- Specified by:
getLength in interface INodeList
- Returns:
- the number of items in the list. Can be value zero;
item
public INode item(int index)
- The item positionned at the given index.
- Specified by:
item in interface INodeList
- Parameters:
index - parameter for item- Returns:
- the returned INode
addNode
public void addNode(INode node)
- Adds a node to this NodeList
- Parameters:
node -
removeNode
public void removeNode(INode node)
- Removes a node from this NodeList
- Parameters:
node -
removeAllNodes
public void removeAllNodes()
getNodeIndex
public int getNodeIndex(INode node)
- Gets the index of a node in this list
- Specified by:
getNodeIndex in interface INodeList
- Parameters:
node - - Returns:
- the index or -1 if the node is not in the list.