Class XPathParts

java.lang.Object
  extended by XPathParts

public class XPathParts
extends java.lang.Object

Author:
glapalme

Field Summary
private  java.util.List<XPath> parts
          All separate compiled XPath expression parts
 
Constructor Summary
XPathParts(java.lang.String patString, NamespaceContext context)
          Constructor calling @compile to create the list of XPath expression parts
 
Method Summary
private  java.util.List<XPath> compile(java.lang.String patString, NamespaceContext context)
          create as many parts as there are node tests only used in the constructor
 java.util.List<XPath> getParts()
           
static void main(java.lang.String[] args)
          For unit testing
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parts

private java.util.List<XPath> parts
All separate compiled XPath expression parts

Constructor Detail

XPathParts

XPathParts(java.lang.String patString,
           NamespaceContext context)
Constructor calling @compile to create the list of XPath expression parts

Parameters:
patString -
context -
Method Detail

compile

private java.util.List<XPath> compile(java.lang.String patString,
                                      NamespaceContext context)
create as many parts as there are node tests only used in the constructor

Parameters:
patString -
context -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParts

public java.util.List<XPath> getParts()
Returns:
the list of parts of expression

main

public static void main(java.lang.String[] args)
For unit testing

Parameters:
args -