org.cip4.jdflib.elementwalker
Class XPathWalker.XPathBuilder

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.XPathWalker.XPathBuilder
Enclosing class:
XPathWalker

protected class XPathWalker.XPathBuilder
extends Object


Field Summary
protected  VString attributeNames
           
protected  KElement elem
           
protected  int methCountSiblings
           
 
Constructor Summary
XPathWalker.XPathBuilder(KElement _e, int countSiblings, VString attName)
           
 
Method Summary
 String buildXPath(String relativeTo)
          Gets the XPath full tree representation of 'this'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elem

protected KElement elem

methCountSiblings

protected int methCountSiblings

attributeNames

protected VString attributeNames
Constructor Detail

XPathWalker.XPathBuilder

public XPathWalker.XPathBuilder(KElement _e,
                                int countSiblings,
                                VString attName)
Method Detail

buildXPath

public String buildXPath(String relativeTo)
Gets the XPath full tree representation of 'this'

Parameters:
relativeTo - relative path to which to create an xpath
Returns:
String the XPath representation of 'this' e.g. /root/parent/element
null if parent of this is null (e.g. called on rootnode)


Copyright © 2013. All Rights Reserved.