at.gv.egiz.pdfas.utils
Class OgnlUtil

java.lang.Object
  extended byat.gv.egiz.pdfas.utils.OgnlUtil

public class OgnlUtil
extends Object

Utility class for ognl evaluation. ognl website

Author:
dferbas, mhiess

Constructor Summary
OgnlUtil()
           
OgnlUtil(Map context)
           
OgnlUtil(Object root)
           
 
Method Summary
 Map compileExpressions(Map toCompile)
          This method compiles a map of ognl expression to a map with entries
 String compileMessage(String template)
          Compile/evaluate a message with ognl expressions marked with ${expression}
 boolean containsExpression(String template)
           
 Object evaluate(String ognlExp)
          Evaluate an expression as ognl, returning result as object.
 Map getContext()
           
 void mergeOgnlContext(OgnlUtil ognlUtil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OgnlUtil

public OgnlUtil()

OgnlUtil

public OgnlUtil(Map context)

OgnlUtil

public OgnlUtil(Object root)
Method Detail

containsExpression

public boolean containsExpression(String template)

compileMessage

public String compileMessage(String template)
Compile/evaluate a message with ognl expressions marked with ${expression}

Parameters:
template -
Returns:

evaluate

public Object evaluate(String ognlExp)
Evaluate an expression as ognl, returning result as object. No placeholders ${ } allowed.

Parameters:
ognlExp -
Returns:

compileExpressions

public Map compileExpressions(Map toCompile)
This method compiles a map of ognl expression to a map with entries

Parameters:
toCompile -
Returns:

getContext

public Map getContext()

mergeOgnlContext

public void mergeOgnlContext(OgnlUtil ognlUtil)


Copyright © 2006-2010. All Rights Reserved.