Package org.apache.ibatis.parsing
Class XPathParser
- java.lang.Object
-
- org.apache.ibatis.parsing.XPathParser
-
public class XPathParser extends java.lang.Object
- Author:
- Clinton Begin, Kazuki Shimizu
-
-
Constructor Summary
Constructors Constructor Description XPathParser(java.io.InputStream inputStream)
XPathParser(java.io.InputStream inputStream, boolean validation)
XPathParser(java.io.InputStream inputStream, boolean validation, java.util.Properties variables)
XPathParser(java.io.InputStream inputStream, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
XPathParser(java.io.Reader reader)
XPathParser(java.io.Reader reader, boolean validation)
XPathParser(java.io.Reader reader, boolean validation, java.util.Properties variables)
XPathParser(java.io.Reader reader, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
XPathParser(java.lang.String xml)
XPathParser(java.lang.String xml, boolean validation)
XPathParser(java.lang.String xml, boolean validation, java.util.Properties variables)
XPathParser(java.lang.String xml, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
XPathParser(org.w3c.dom.Document document)
XPathParser(org.w3c.dom.Document document, boolean validation)
XPathParser(org.w3c.dom.Document document, boolean validation, java.util.Properties variables)
XPathParser(org.w3c.dom.Document document, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
-
Method Summary
Modifier and Type Method Description java.lang.Boolean
evalBoolean(java.lang.Object root, java.lang.String expression)
java.lang.Boolean
evalBoolean(java.lang.String expression)
java.lang.Double
evalDouble(java.lang.Object root, java.lang.String expression)
java.lang.Double
evalDouble(java.lang.String expression)
java.lang.Float
evalFloat(java.lang.Object root, java.lang.String expression)
java.lang.Float
evalFloat(java.lang.String expression)
java.lang.Integer
evalInteger(java.lang.Object root, java.lang.String expression)
java.lang.Integer
evalInteger(java.lang.String expression)
java.lang.Long
evalLong(java.lang.Object root, java.lang.String expression)
java.lang.Long
evalLong(java.lang.String expression)
XNode
evalNode(java.lang.Object root, java.lang.String expression)
XNode
evalNode(java.lang.String expression)
java.util.List<XNode>
evalNodes(java.lang.Object root, java.lang.String expression)
java.util.List<XNode>
evalNodes(java.lang.String expression)
java.lang.Short
evalShort(java.lang.Object root, java.lang.String expression)
java.lang.Short
evalShort(java.lang.String expression)
java.lang.String
evalString(java.lang.Object root, java.lang.String expression)
java.lang.String
evalString(java.lang.String expression)
void
setVariables(java.util.Properties variables)
-
-
-
Constructor Detail
-
XPathParser
public XPathParser(java.lang.String xml)
-
XPathParser
public XPathParser(java.io.Reader reader)
-
XPathParser
public XPathParser(java.io.InputStream inputStream)
-
XPathParser
public XPathParser(org.w3c.dom.Document document)
-
XPathParser
public XPathParser(java.lang.String xml, boolean validation)
-
XPathParser
public XPathParser(java.io.Reader reader, boolean validation)
-
XPathParser
public XPathParser(java.io.InputStream inputStream, boolean validation)
-
XPathParser
public XPathParser(org.w3c.dom.Document document, boolean validation)
-
XPathParser
public XPathParser(java.lang.String xml, boolean validation, java.util.Properties variables)
-
XPathParser
public XPathParser(java.io.Reader reader, boolean validation, java.util.Properties variables)
-
XPathParser
public XPathParser(java.io.InputStream inputStream, boolean validation, java.util.Properties variables)
-
XPathParser
public XPathParser(org.w3c.dom.Document document, boolean validation, java.util.Properties variables)
-
XPathParser
public XPathParser(java.lang.String xml, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
-
XPathParser
public XPathParser(java.io.Reader reader, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
-
XPathParser
public XPathParser(java.io.InputStream inputStream, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
-
XPathParser
public XPathParser(org.w3c.dom.Document document, boolean validation, java.util.Properties variables, org.xml.sax.EntityResolver entityResolver)
-
-
Method Detail
-
setVariables
public void setVariables(java.util.Properties variables)
-
evalString
public java.lang.String evalString(java.lang.String expression)
-
evalString
public java.lang.String evalString(java.lang.Object root, java.lang.String expression)
-
evalBoolean
public java.lang.Boolean evalBoolean(java.lang.String expression)
-
evalBoolean
public java.lang.Boolean evalBoolean(java.lang.Object root, java.lang.String expression)
-
evalShort
public java.lang.Short evalShort(java.lang.String expression)
-
evalShort
public java.lang.Short evalShort(java.lang.Object root, java.lang.String expression)
-
evalInteger
public java.lang.Integer evalInteger(java.lang.String expression)
-
evalInteger
public java.lang.Integer evalInteger(java.lang.Object root, java.lang.String expression)
-
evalLong
public java.lang.Long evalLong(java.lang.String expression)
-
evalLong
public java.lang.Long evalLong(java.lang.Object root, java.lang.String expression)
-
evalFloat
public java.lang.Float evalFloat(java.lang.String expression)
-
evalFloat
public java.lang.Float evalFloat(java.lang.Object root, java.lang.String expression)
-
evalDouble
public java.lang.Double evalDouble(java.lang.String expression)
-
evalDouble
public java.lang.Double evalDouble(java.lang.Object root, java.lang.String expression)
-
evalNodes
public java.util.List<XNode> evalNodes(java.lang.String expression)
-
evalNodes
public java.util.List<XNode> evalNodes(java.lang.Object root, java.lang.String expression)
-
evalNode
public XNode evalNode(java.lang.String expression)
-
evalNode
public XNode evalNode(java.lang.Object root, java.lang.String expression)
-
-