Example usage for org.apache.commons.jxpath Container Container

List of usage examples for org.apache.commons.jxpath Container Container

Introduction

In this page you can find the example usage for org.apache.commons.jxpath Container Container.

Prototype

Container

Source Link

Usage

From source file:org.mule.module.xml.expression.JXPathExpressionEvaluator.java

private JXPathContext createContextForXml(final Document document) {
    Container container = new Container() {

        @Override/*from w  ww.java  2s  . com*/
        public Object getValue() {
            return document;
        }

        @Override
        public void setValue(Object value) {
            throw new UnsupportedOperationException();
        }
    };

    return JXPathContext.newContext(container);
}