Package org.cip4.jdflib.elementwalker
Class XPathWalker
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.ElementWalker
-
- org.cip4.jdflib.elementwalker.BaseElementWalker
-
- org.cip4.jdflib.elementwalker.XPathWalker
-
public class XPathWalker extends BaseElementWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXPathWalker.WalkAllthe link and ref walker
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>pathsFoundprotected java.io.PrintWriterwriter-
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
-
-
Constructor Summary
Constructors Constructor Description XPathWalker(java.io.File xpathOutput)XPathWalker(java.io.PrintWriter w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAttribute(boolean attribute)if true, include attributesvoidsetAttributeValue(boolean attribute)if true, include attribute valuesvoidsetBElement(boolean element)voidsetDatatype(boolean datatype)voidsetMethod(int method)voidsetSeparator(java.lang.String separator)voidsetUnique(boolean unique)intwalkAll(KElement e)-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactory
-
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
-
-
-
Method Detail
-
walkAll
public int walkAll(KElement e)
- Parameters:
e-- Returns:
- the number of xpaths
-
setAttribute
public void setAttribute(boolean attribute)
if true, include attributes- Parameters:
attribute-
-
setAttributeValue
public void setAttributeValue(boolean attribute)
if true, include attribute values- Parameters:
attribute-
-
setMethod
public void setMethod(int method)
- Parameters:
method- the method to set
-
setUnique
public void setUnique(boolean unique)
- Parameters:
unique- the method to set
-
setDatatype
public void setDatatype(boolean datatype)
- Parameters:
datatype- the bDatatype to set
-
setSeparator
public void setSeparator(java.lang.String separator)
- Parameters:
separator- the separator to set
-
setBElement
public void setBElement(boolean element)
- Parameters:
element- the bElement to set
-
-