org.zkoss.zkmax.bind.impl
Class ValueExpressionImplEx

java.lang.Object
  extended by org.zkoss.zel.Expression
      extended by org.zkoss.zel.ValueExpression
          extended by org.zkoss.zel.impl.ValueExpressionImpl
              extended by org.zkoss.zkmax.bind.impl.ValueExpressionImplEx
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ValueExpressionImplEx
extends ValueExpressionImpl

An extension of ValueExpressionImpl to do a lazy initiating EL expression construction.

Since:
8.0.0
Author:
jumperchen
See Also:
Serialized Form

Constructor Summary
ValueExpressionImplEx()
           
ValueExpressionImplEx(java.lang.String expr, Node node, FunctionMapper fnMapper, VariableMapper varMapper, java.lang.Class<?> expectedType, BindExpressionBuilderEx buidler)
           
 
Method Summary
 java.lang.Object getValue(ELContext context)
           
 void setValue(ELContext context, java.lang.Object value)
           
 
Methods inherited from class org.zkoss.zel.impl.ValueExpressionImpl
equals, getExpectedType, getExpressionString, getType, getValueReference, hashCode, isLiteralText, isReadOnly, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueExpressionImplEx

public ValueExpressionImplEx()

ValueExpressionImplEx

public ValueExpressionImplEx(java.lang.String expr,
                             Node node,
                             FunctionMapper fnMapper,
                             VariableMapper varMapper,
                             java.lang.Class<?> expectedType,
                             BindExpressionBuilderEx buidler)
Method Detail

getValue

public java.lang.Object getValue(ELContext context)
                          throws PropertyNotFoundException,
                                 ELException
Overrides:
getValue in class ValueExpressionImpl
Parameters:
context - The EL context for this evaluation
Returns:
The result of evaluating this value expression
Throws:
PropertyNotFoundException - If a property/variable resolution failed because no match was found or a match was found but was not readable
ELException - Wraps any exception throw whilst resolving a property or variable

setValue

public void setValue(ELContext context,
                     java.lang.Object value)
              throws PropertyNotFoundException,
                     PropertyNotWritableException,
                     ELException
Overrides:
setValue in class ValueExpressionImpl
Parameters:
context - The EL context for this evaluation
value - The value to set the property to which this value expression refers
Throws:
PropertyNotFoundException - If a property/variable resolution failed because no match was found
PropertyNotWritableException - If a property/variable resolution failed because a match was found but was not writable
ELException - Wraps any exception throw whilst resolving a property or variable


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo