Example usage for org.apache.commons.jxpath.xml DocumentContainer getValue

List of usage examples for org.apache.commons.jxpath.xml DocumentContainer getValue

Introduction

In this page you can find the example usage for org.apache.commons.jxpath.xml DocumentContainer getValue.

Prototype

public Object getValue() 

Source Link

Document

Reads XML, caches it internally and returns the Document.

Usage

From source file:org.firesoa.common.jxpath.XMLModelTestCase.java

public void setUp() {
    if (context == null) {
        DocumentContainer docCtr = createDocumentContainer();

        context = createContext(docCtr);

        Variables vars = context.getVariables();
        vars.declareVariable("document", docCtr.getValue());
        vars.declareVariable("container", docCtr);
        vars.declareVariable("element", context.getPointer("vendor/location/address/street").getNode());
    }//w  ww  . j  av  a 2 s  .c o  m
}