palio.modules
Class El

java.lang.Object
  extended by palio.modules.core.Module
      extended by palio.modules.El
All Implemented Interfaces:
palio.modules.core.CurrentModuleDataKeys

public class El
extends palio.modules.core.Module

Supports for Unified Expression Language.

Since:
jPALIO 7.4.32
Version:
1.0.0
Author:
Krzysztof Madyniak

Field Summary
 
Fields inherited from interface palio.modules.core.CurrentModuleDataKeys
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT
 
Constructor Summary
El(palio.Instance instance, java.util.Properties parameters)
           
 
Method Summary
 java.lang.Object get(java.lang.String expression)
          Evalutates given expression in a current el context
 java.lang.Object get(java.lang.String expression, java.lang.Class<?> returnClass)
          Evalutates given expression in a current el context with specified return type
 ELContext getContext()
          Returns an EL context for a current request
 ExpressionFactory getExpressionFactory()
          Returns expression factory
 java.lang.String getVersion()
          Returns the module version
 void set(java.lang.String expression, java.lang.Object value)
          Evalutates given expression in a current el context and sets a value
 void setContextFunction(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method method)
          Sets given method in a current el context
 void setContextVariable(java.lang.String name, java.lang.Object value)
          Sets given variable in a current el context
 
Methods inherited from class palio.modules.core.Module
getConfigParam, getDescription, getModuleTranslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

El

public El(palio.Instance instance,
          java.util.Properties parameters)
Method Detail

getVersion

public java.lang.String getVersion()
Description copied from class: palio.modules.core.Module
Returns the module version

Specified by:
getVersion in class palio.modules.core.Module

getExpressionFactory

public ExpressionFactory getExpressionFactory()
Returns expression factory


getContext

public ELContext getContext()
Returns an EL context for a current request


setContextVariable

public void setContextVariable(java.lang.String name,
                               java.lang.Object value)
Sets given variable in a current el context

Parameters:
name - Variable name
value - Variable value

setContextFunction

public void setContextFunction(java.lang.String prefix,
                               java.lang.String localName,
                               java.lang.reflect.Method method)
Sets given method in a current el context

Parameters:
prefix - Prefix for a method
localName - Lolcal name for a method
method - Method to set

get

public java.lang.Object get(java.lang.String expression,
                            java.lang.Class<?> returnClass)
Evalutates given expression in a current el context with specified return type

Parameters:
expression - Expression to evalute
returnClass - Return object type

get

public java.lang.Object get(java.lang.String expression)
Evalutates given expression in a current el context

Parameters:
expression - Expression to evalute

set

public void set(java.lang.String expression,
                java.lang.Object value)
Evalutates given expression in a current el context and sets a value

Parameters:
expression - Expression to evalute
value - Value to set