Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.el.impl
Class SimpleContext

java.lang.Object
  extended by oracle.adfnmc.el.ELContext
      extended by oracle.adfnmc.el.impl.SimpleContext

public class SimpleContext
extends ELContext

Oracle implementation of ELContext, based on JUEL's de.odysseus.el.util.SimpleContext.
Context's ELResolver is a CompositeELResolver that contains a SelfELResolver, MapELResolver and ListELResolver.

Author:
dmartin

Field Summary
static ValueExpression NULL_VALUEEXPRESSION
           
 
Constructor Summary
SimpleContext()
          Create a context.
 
Method Summary
 ELResolver getELResolver()
          Retrieves the ELResolver associated with this context.
 FunctionMapper getFunctionMapper()
          Get our function mapper.
static MethodExpression getMethodExpression(java.lang.String expressionStr, java.lang.Class expectedReturnType, java.lang.Class[] expectedParamTypes)
           
static ValueExpression getValueExpression(java.lang.String expressionStr, java.lang.Class expectedType)
           
 VariableMapper getVariableMapper()
          Get our variable mapper.
 void setFunction(java.lang.String prefix, java.lang.String localName, oracle.adfnmc.util.reflection.Method method)
          Define a function
 ValueExpression setVariable(java.lang.String name, ValueExpression expression)
          Define a variable
 
Methods inherited from class oracle.adfnmc.el.ELContext
getContext, getInstance, isPropertyResolved, putContext, setPropertyResolved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_VALUEEXPRESSION

public static final ValueExpression NULL_VALUEEXPRESSION
Constructor Detail

SimpleContext

public SimpleContext()
Create a context.

Method Detail

getValueExpression

public static final ValueExpression getValueExpression(java.lang.String expressionStr,
                                                       java.lang.Class expectedType)
Parameters:
expressionStr - - The raw string for the expression. A null value will return an instance of an expression object whose getValue() method will return null, or a coerced primitive value of 'null' (e.g. 0, "", etc..) depending on the expectedType argument.
expectedType - - The expected type of the expression. getValue() calls on the returned expression object will throw a TypeCoercionException if the evaluated result is not castable to this type.
Required, cannot be set to null.
Returns:

getMethodExpression

public static final MethodExpression getMethodExpression(java.lang.String expressionStr,
                                                         java.lang.Class expectedReturnType,
                                                         java.lang.Class[] expectedParamTypes)

getFunctionMapper

public FunctionMapper getFunctionMapper()
Get our function mapper.

Specified by:
getFunctionMapper in class ELContext
Returns:
The function mapper to be consulted for the resolution of EL functions.

setFunction

public void setFunction(java.lang.String prefix,
                        java.lang.String localName,
                        oracle.adfnmc.util.reflection.Method method)
Define a function


getVariableMapper

public VariableMapper getVariableMapper()
Get our variable mapper.

Specified by:
getVariableMapper in class ELContext
Returns:
The variable mapper to be consulted for the resolution of EL variables.

setVariable

public ValueExpression setVariable(java.lang.String name,
                                   ValueExpression expression)
Define a variable


getELResolver

public ELResolver getELResolver()
Description copied from class: ELContext
Retrieves the ELResolver associated with this context.

The ELContext maintains a reference to the ELResolver that will be consulted to resolve variables and properties during an expression evaluation. This method retrieves the reference to the resolver.

Once an ELContext is constructed, the reference to the ELResolver associated with the context cannot be changed.

Specified by:
getELResolver in class ELContext
Returns:
The resolver to be consulted for variable and property resolution during expression evaluation.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.