|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AttributeEvaluator
An interface for the evaluation of expressions at design time.
Copyright (c) Formaria Ltd., 2008
$Revision: 2.1 $
License: see License.txt
| Method Summary | |
|---|---|
java.lang.Object |
evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute. |
MethodReference |
getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute by evaluating a method reference |
MethodReference |
getMethodReference(java.lang.String attributeValue)
Get the method reference for the methods named in the attribute |
java.lang.Object |
getResult()
Explicitly get the result of an evaluation. |
void |
setCurrentProject(Project project)
Set the current project and complete any initialization that depends on the project reference/instance. |
void |
setExceptionHandler(ExceptionHandler eh)
Set an exception handler for processing exceptions |
void |
setResult(java.lang.Object value)
Explicitly set the result of an evaluation. |
| Method Detail |
|---|
void setCurrentProject(Project project)
project - the current or owning project
java.lang.Object evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
instance - the current page or object that provides the methods or fields used in the evaluationattributeValue - the raw value of the attribute
MethodReference getMethodReference(java.lang.String attributeValue)
attributeValue - the method name
MethodReference getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
instance - the current page or object that provides the methods or fields used in the evaluationattributeValue - the method name
void setExceptionHandler(ExceptionHandler eh)
eh - the exception handlervoid setResult(java.lang.Object value)
the - new result valuejava.lang.Object getResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||