Package aQute.lib.xpath
Class XPathParser
- java.lang.Object
-
- aQute.lib.xpath.XPathParser
-
- Direct Known Subclasses:
SettingsParser
public class XPathParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static javax.xml.parsers.DocumentBuilderFactorydbfprivate static java.lang.invoke.MethodTypedefaultConstructor(package private) org.w3c.dom.Documentdoc(package private) javax.xml.xpath.XPathxp(package private) static javax.xml.xpath.XPathFactoryxpf
-
Constructor Summary
Constructors Constructor Description XPathParser(java.io.File file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static <T> TnewInstance(java.lang.Class<T> rawClass)java.lang.Stringparse(java.lang.String expression)<X> voidparse(java.lang.String what, java.lang.Class<X> type, java.util.List<X> map)<X> voidparse(org.w3c.dom.Node node, X dto)protected java.lang.StringprocessValue(java.lang.String value)
-
-
-
Method Detail
-
parse
public <X> void parse(java.lang.String what, java.lang.Class<X> type, java.util.List<X> map) throws javax.xml.xpath.XPathExpressionException, java.lang.Exception- Throws:
javax.xml.xpath.XPathExpressionExceptionjava.lang.Exception
-
newInstance
private static <T> T newInstance(java.lang.Class<T> rawClass) throws java.lang.Exception- Throws:
java.lang.Exception
-
parse
public <X> void parse(org.w3c.dom.Node node, X dto) throws java.lang.Exception- Throws:
java.lang.Exception
-
processValue
protected java.lang.String processValue(java.lang.String value)
-
parse
public java.lang.String parse(java.lang.String expression) throws java.lang.Exception- Throws:
java.lang.Exception
-
-