com.sapportals.portal.prt.pom

Class NodeList

java.lang.Object
  extended by com.sapportals.portal.prt.pom.NodeList
All Implemented Interfaces:
INodeList

public class NodeList
extends Object
implements INodeList

The NodeList is a generic implementation of the INodeList interface


Constructor Summary
NodeList()
          Class constructor
 
Method Summary
 void addNode(INode node)
          Adds a node to this NodeList
 int getLength()
          The number of items in the list
 int getNodeIndex(INode node)
          Gets the index of a node in this list
 INode item(int index)
          The item positionned at the given index.
 void removeAllNodes()
           
 void removeNode(INode node)
          Removes a node from this NodeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()
Class constructor

Method Detail

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.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice