Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.binding.alias
Class AliasValueExpression

java.lang.Object
  extended by javax.el.Expression
      extended by javax.el.ValueExpression
          extended by org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression
All Implemented Interfaces:
Serializable

public class AliasValueExpression
extends ValueExpression

Value expression that only stores a reference the AliasVariableMapper id so that the corresponding expression is found in the context, and is evaluated against contextual values.

Since:
5.4
Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
AliasValueExpression(String id, String var)
           
 
Method Summary
 boolean equals(Object obj)
           
 Class<?> getExpectedType()
           
 String getExpressionString()
           
 Class<?> getType(ELContext context)
           
 Object getValue(ELContext context)
          Looks up the AliasVariableMapper in the context, and if found, resolve the corresponding ValueExpression.
 int hashCode()
           
 boolean isLiteralText()
           
 boolean isReadOnly(ELContext context)
           
 void setValue(ELContext context, Object value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasValueExpression

public AliasValueExpression(String id,
                            String var)
Method Detail

equals

public boolean equals(Object obj)
Specified by:
equals in class Expression

hashCode

public int hashCode()
Specified by:
hashCode in class Expression

getExpressionString

public String getExpressionString()
Specified by:
getExpressionString in class Expression

isLiteralText

public boolean isLiteralText()
Specified by:
isLiteralText in class Expression

getExpectedType

public Class<?> getExpectedType()
Specified by:
getExpectedType in class ValueExpression

getType

public Class<?> getType(ELContext context)
Specified by:
getType in class ValueExpression

getValue

public Object getValue(ELContext context)
Looks up the AliasVariableMapper in the context, and if found, resolve the corresponding ValueExpression.

Specified by:
getValue in class ValueExpression

isReadOnly

public boolean isReadOnly(ELContext context)
Specified by:
isReadOnly in class ValueExpression

setValue

public void setValue(ELContext context,
                     Object value)
Specified by:
setValue in class ValueExpression

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.