Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


oracle.adfmf.framework.model
Class AdfELContext

java.lang.Object
  extended by javax.el.ELContext
      extended by oracle.adfmf.framework.model.AdfELContext


public class AdfELContext
extends javax.el.ELContext

Constructor Summary
AdfELContext(AdfELContext parent)
           

 

Method Summary
 void clearCurrentELResolutionPath()
          Clear the current EL resolution path
 boolean containsVariable(java.lang.String variable)
          Determine if the variable exists in this context
 java.lang.Object evaluateVariable(java.lang.String variable)
          Convenience method to evaluate a variable through the VariableResolver.
 java.lang.String getCurrentELResolutionPath()
          Get the current EL resoultion path
 java.lang.String getCurrentExpression()
          Returns the expression string that is currently being resolved in this context.
 javax.el.ELResolver getELResolver()
          Get our resolver.
 javax.el.ExpressionFactory getExpressionFactory()
          Get an expression factory
 javax.el.FunctionMapper getFunctionMapper()
          Get our function mapper.
 AdfELContext getParent()
          Get the context's parent
 javax.el.VariableMapper getVariableMapper()
          Get our variable mapper.
 java.lang.String[] getVariableNames()
          Get the list of variable names defined in the this context.
 boolean isCurrentExpressionVolatile()
          Determine if the current expression is volatile
 boolean isResolvingBeanId()
          Internal.
 boolean isResolvingSetValue()
          Objects that lazy load and build up a tree as they resolve can use this method to determine whether they are resolving in the context of a getValue or a setValue operation.
 void registerCurrentExpressionAsVolatile()
          If the current expression being resolved includes a method execution, this marks that expression as volatile so that the response returned to the Container containing its value is flagged not to be cached.
 void setCurrentExpression(java.lang.String value)
          Sets the expression string that is currently being resolved in this context.
 void setResolvingSetValue(boolean value)
          See isResolvingSetValue.
 void setVariable(java.lang.String variable, java.lang.Object value, java.lang.Class type)
          Convenience method to set a variable through the VariableResolver.
 javax.el.ValueExpression setVariable(java.lang.String name, javax.el.ValueExpression expression)
          Define a variable.
 java.lang.String updateCurrentELResolutionPath(java.lang.String property, boolean root)
          Augment the current EL resolution path with the given property

 

Methods inherited from class javax.el.ELContext
getContext, getLocale, isPropertyResolved, putContext, setLocale, setPropertyResolved

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AdfELContext

public AdfELContext(AdfELContext parent)

Method Detail

getParent

public AdfELContext getParent()
Get the context's parent

setVariable

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

setVariable

public void setVariable(java.lang.String variable,
                        java.lang.Object value,
                        java.lang.Class type)
Convenience method to set a variable through the VariableResolver. just wraps the ValueExpression creation call.

evaluateVariable

public java.lang.Object evaluateVariable(java.lang.String variable)
Convenience method to evaluate a variable through the VariableResolver. just wraps the ValueExpression eval call.
Returns:
the value of the variable

getFunctionMapper

public javax.el.FunctionMapper getFunctionMapper()
Get our function mapper.
Specified by:
getFunctionMapper in class javax.el.ELContext

getVariableMapper

public javax.el.VariableMapper getVariableMapper()
Get our variable mapper.
Specified by:
getVariableMapper in class javax.el.ELContext

getELResolver

public javax.el.ELResolver getELResolver()
Get our resolver. Lazy initialize to a SimpleResolver if necessary.
Specified by:
getELResolver in class javax.el.ELContext

containsVariable

public boolean containsVariable(java.lang.String variable)
Determine if the variable exists in this context

getVariableNames

public java.lang.String[] getVariableNames()
Get the list of variable names defined in the this context.

getExpressionFactory

public javax.el.ExpressionFactory getExpressionFactory()
Get an expression factory

isResolvingSetValue

public boolean isResolvingSetValue()
Objects that lazy load and build up a tree as they resolve can use this method to determine whether they are resolving in the context of a getValue or a setValue operation. The lazy loading object structure may need to add intermediate backing nodes while resolving during a setValue, with the knowledge that a new value will be added at a terminal node to the backing structure, while erroring out on a miss on an intermediate node while resolving a getValue. See the Preferences scope for an example of this.
Returns:

isResolvingBeanId

public boolean isResolvingBeanId()
Internal. Used to suppress 'unable to locate identifier' warnings from managed bean scopes when we are looking for an implicit scoped bean ID in the known scopes

setResolvingSetValue

public void setResolvingSetValue(boolean value)
See isResolvingSetValue. Callers should always set the value back to false in a finally block that guards the preceding setValue operation:
 try 
 {
   context.setResolvingSetValue(true); 
   vex.setValue(context, value);
 } 
 finally
 {
   context.setResolvingSetValue(false);
 }
 
Parameters:
value -

getCurrentExpression

public java.lang.String getCurrentExpression()
Returns the expression string that is currently being resolved in this context.

setCurrentExpression

public void setCurrentExpression(java.lang.String value)
Sets the expression string that is currently being resolved in this context. Should be set back to null when eval is complete.
Parameters:
value -

registerCurrentExpressionAsVolatile

public void registerCurrentExpressionAsVolatile()
If the current expression being resolved includes a method execution, this marks that expression as volatile so that the response returned to the Container containing its value is flagged not to be cached. Assumes the object that is resolved that performs the execution can access the context and call this method.

isCurrentExpressionVolatile

public boolean isCurrentExpressionVolatile()
Determine if the current expression is volatile

getCurrentELResolutionPath

public java.lang.String getCurrentELResolutionPath()
Get the current EL resoultion path

clearCurrentELResolutionPath

public void clearCurrentELResolutionPath()
Clear the current EL resolution path

updateCurrentELResolutionPath

public java.lang.String updateCurrentELResolutionPath(java.lang.String property,
                                                      boolean root)
Augment the current EL resolution path with the given property

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.