Example usage for org.apache.commons.ognl Node getValue

List of usage examples for org.apache.commons.ognl Node getValue

Introduction

In this page you can find the example usage for org.apache.commons.ognl Node getValue.

Prototype

Object getValue(OgnlContext context, Object source) throws OgnlException;

Source Link

Document

Extracts the value from the given source object that is appropriate for this node within the given context.

Usage

From source file:pl.nask.hsn2.ognl.OgnlPocTest.java

@Test
public void testCollectionSelectorCompiled() throws Exception {
    Node expr = Ognl.compileExpression(context, rootObject, "findByName('url').{^ #this.id == 1}");
    System.out.println(expr.getValue(context, rootObject));
}