net.xoetrope.xui.evaluator
Interface XAttributeEvaluator

All Known Implementing Classes:
ScriptAttributeEvaluator, XDefaultAttributeEvaluator, XGroovyEvaluator

public interface XAttributeEvaluator

An interface for the evaluation of expressions at design time.

Copyright (c) Xoetrope Ltd., 2002-2004

$Revision: 2.2 $

License: see License.txt


Method Summary
 java.lang.Object evaluateAttribute(PageSupport page, java.lang.String attributeValue)
          Get the value of an attribute.
 XMethodReference getMethodReference(PageSupport page, java.lang.String attributeValue)
          Get the value of an attribute by evaluating a method reference
 XMethodReference getMethodReference(java.lang.String attributeValue)
          Get the method reference for the methods named in the attribute
 void setCurrentProject(XProject project)
          Set the current project and complete any initialization that depends on the project reference/instance.
 

Method Detail

setCurrentProject

void setCurrentProject(XProject project)
Set the current project and complete any initialization that depends on the project reference/instance.

Parameters:
project - the current or owning project

evaluateAttribute

java.lang.Object evaluateAttribute(PageSupport page,
                                   java.lang.String attributeValue)
Get the value of an attribute.

Parameters:
page - the page being loaded
attributeValue - the raw value of the attribute
Returns:
the evaluated value of the attribute

getMethodReference

XMethodReference getMethodReference(java.lang.String attributeValue)
Get the method reference for the methods named in the attribute

Parameters:
attributeValue - the method name
Returns:
the method reference or null if the referenced/named method cannot be found

getMethodReference

XMethodReference getMethodReference(PageSupport page,
                                    java.lang.String attributeValue)
Get the value of an attribute by evaluating a method reference

Parameters:
page - the current page
attributeValue - the method name
Returns:
the method reference or null if the referenced/named method cannot be found