public class XPathParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static javax.xml.parsers.DocumentBuilder |
db |
(package private) static javax.xml.parsers.DocumentBuilderFactory |
dbf |
private static java.lang.invoke.MethodType |
defaultConstructor |
(package private) org.w3c.dom.Document |
doc |
(package private) static javax.xml.xpath.XPath |
xp |
(package private) static javax.xml.xpath.XPathFactory |
xpf |
Constructor and Description |
---|
XPathParser(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
private static <T> T |
newInstance(java.lang.Class<T> rawClass) |
<X> void |
parse(org.w3c.dom.Node node,
X dto) |
java.lang.String |
parse(java.lang.String expression) |
<X> void |
parse(java.lang.String what,
java.lang.Class<X> type,
java.util.List<X> map) |
protected java.lang.String |
processValue(java.lang.String value) |
static final javax.xml.parsers.DocumentBuilderFactory dbf
static final javax.xml.xpath.XPathFactory xpf
static javax.xml.parsers.DocumentBuilder db
static javax.xml.xpath.XPath xp
final org.w3c.dom.Document doc
private static final java.lang.invoke.MethodType defaultConstructor
public XPathParser(java.io.File file) throws java.lang.Exception
java.lang.Exception
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
javax.xml.xpath.XPathExpressionException
java.lang.Exception
private static <T> T newInstance(java.lang.Class<T> rawClass) throws java.lang.Exception
java.lang.Exception
public <X> void parse(org.w3c.dom.Node node, X dto) throws java.lang.Exception
java.lang.Exception
protected java.lang.String processValue(java.lang.String value)
public java.lang.String parse(java.lang.String expression) throws java.lang.Exception
java.lang.Exception