Package org.jboss.el.lang

Examples of org.jboss.el.lang.EvaluationContext


   *
   * @see javax.el.ValueExpression#getType(javax.el.ELContext)
   */
  public Class<?> getType(ELContext context) throws PropertyNotFoundException,
      ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
        this.varMapper);
    return this.getNode().getType(ctx);
  }
View Full Code Here


   *
   * @see javax.el.ValueExpression#getValue(javax.el.ELContext)
   */
  public Object getValue(ELContext context) throws PropertyNotFoundException,
      ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
        this.varMapper);
    Object value = this.getNode().getValue(ctx);
    if (this.expectedType != null) {
      return ELSupport.coerceToType(value, this.expectedType);
    }
View Full Code Here

   *
   * @see javax.el.ValueExpression#isReadOnly(javax.el.ELContext)
   */
  public boolean isReadOnly(ELContext context)
      throws PropertyNotFoundException, ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
        this.varMapper);
    return this.getNode().isReadOnly(ctx);
  }
View Full Code Here

   *    java.lang.Object)
   */
  public void setValue(ELContext context, Object value)
      throws PropertyNotFoundException, PropertyNotWritableException,
      ELException {
    EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
        this.varMapper);
    this.getNode().setValue(ctx, value);
  }
View Full Code Here

    return classes;
  }
 
  static String getValue(UIComponent component) {
    return (String) ExpressionBuilder.createNode(component.getChildren().get(0).toString())
      .getValue(new EvaluationContext(FacesContext.getCurrentInstance().getELContext(), null, null));
  }
View Full Code Here

  static String getAttrValue(Component component, String key) {
    Object value = component.getAttributes().get(key);
    if (value == null) {
      ValueExpression expr = component.getBindings().get(key);
      if (expr != null) {
        value = expr.getValue(new EvaluationContext(FacesContext.getCurrentInstance().getELContext(), null, null));
      }
    }
    if (value != null) {
      return value.toString();
    }
View Full Code Here

TOP

Related Classes of org.jboss.el.lang.EvaluationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.