corelib.services.web.bindings
Class BindingExpressionDynamicPart

java.lang.Object
  extended by corelib.services.web.bindings.BindingExpressionPart
      extended by corelib.services.web.bindings.BindingExpressionDynamicPart

public class BindingExpressionDynamicPart
extends BindingExpressionPart

Evaluate dynamicly a binding expression part that respect this format : #{expression}.

Since:
0.1.0
Author:
Dominique Liard

Constructor Summary
BindingExpressionDynamicPart(BindingExpression partContainer, java.lang.String expressionPart)
          Class constructor.
 
Method Summary
 java.lang.Object evaluate(BindingExpressionDirection direction)
          Dynamicly evalute this binding expression part.
 
Methods inherited from class corelib.services.web.bindings.BindingExpressionPart
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindingExpressionDynamicPart

public BindingExpressionDynamicPart(BindingExpression partContainer,
                                    java.lang.String expressionPart)
Class constructor.

Parameters:
partContainer - The container that describe the full XML attribute value (example: xmlAttribute="begin#{aPartExpression}middle#{anotherPartExpression}end").
expressionPart - The string associated to this expression part (example: #{this.property.subProperty}.
Method Detail

evaluate

public java.lang.Object evaluate(BindingExpressionDirection direction)
                          throws BindingException
Dynamicly evalute this binding expression part.

Specified by:
evaluate in class BindingExpressionPart
Parameters:
direction - Indicates the direction of this evaluation. Two values are supported: BindingExpressionDirection.WEB_COMPONENT_TO_OBJECT and BindingExpressionDirection.OBJECT_TO_WEB_COMPONENT.
Returns:
The value of this expression part.
Throws:
BindingException - Thrown when this expression part cannot be evaluated.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.