Example usage for org.apache.ibatis.parsing XNode XNode

List of usage examples for org.apache.ibatis.parsing XNode XNode

Introduction

In this page you can find the example usage for org.apache.ibatis.parsing XNode XNode.

Prototype

public XNode(XPathParser xpathParser, Node node, Properties variables) 

Source Link

Usage

From source file:com.ibatis.common.util.NodeEventParser.java

License:Apache License

private void processNodelet(Node node, String pathString) {
    NodeEventWrapper nodelet = (NodeEventWrapper) nodeletMap.get(pathString);
    if (nodelet != null) {
        try {/*from ww  w .  j  ava 2  s  . c  om*/
            nodelet.process(new XNode(xpathParser, node, variables));
        } catch (Exception e) {
            throw new ParsingException("Error parsing XPath '" + pathString + "'.  Cause: " + e, e);
        }
    }
}