com.pega.pegarules.parserule
Class XMLNodeList

java.lang.Object
  extended by com.pega.pegarules.parserule.XMLNodeList

public class XMLNodeList
extends java.lang.Object

adding XMLNodes and traversing through the list of XMLNodes

Author:
Raja Shaker Garlapati 1-Sep-06 islas B-21619 fixed SAX Parser results to match that of DOM Parser

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
XMLNodeList()
           
 
Method Summary
 void addXMLNode(XMLNode xmlNode)
          append the xmlNode to the list.
 XMLNode getFirstNode()
          finds the first node of the list.
 XMLNode getLastNode()
          finds the last node of the list.
 XMLNode getNextNode()
          returns the next node in the list
 XMLNode getNode(int position)
          finds the node at the specified position.
 int getSize()
          gets the size of the node list or return -1 if node list is null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

XMLNodeList

public XMLNodeList()
Method Detail

addXMLNode

public void addXMLNode(XMLNode xmlNode)
append the xmlNode to the list.

Parameters:
xmlNode - to be added.

getNextNode

public XMLNode getNextNode()
returns the next node in the list

Returns:
XMLNode if exists otherwise null.

getFirstNode

public XMLNode getFirstNode()
finds the first node of the list.

Returns:
XMLNode if exists otherwise null.

getLastNode

public XMLNode getLastNode()
finds the last node of the list.

Returns:
XMLNode if exists otherwise null.

getNode

public XMLNode getNode(int position)
finds the node at the specified position.

Parameters:
position - is the position of the XMLNode in the list
Returns:
XMLNode if exists otherwise null

getSize

public int getSize()
gets the size of the node list or return -1 if node list is null.

Returns:
int size of the node list.


Copyright © 2012 Pegasystems Inc. All Rights Reserved.