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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAttribute(boolean attribute) if true, include attributesvoidsetAttributeValue(boolean attribute) if true, include attribute valuesvoidsetBElement(boolean element) voidsetDatatype(boolean datatype) voidsetMethod(int method) voidsetSeparator(String separator) voidsetUnique(boolean unique) intMethods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactoryMethods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
-
Field Details
-
writer
-
pathsFound
-
-
Constructor Details
-
XPathWalker
- Parameters:
xpathOutput-- Throws:
FileNotFoundException
-
XPathWalker
- Parameters:
w-
-
-
Method Details
-
walkAll
- 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
- Parameters:
separator- the separator to set
-
setBElement
public void setBElement(boolean element) - Parameters:
element- the bElement to set
-