|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageExpressionEvaluator
Used in one of the classes in the generated XPage .java file, not
intended to be used programmatically by application developers or third
party Java developers. See AbstractCompiledPage
.
A utility object for creating method and value bindings and handling the
results of load time bindings.
Method Summary | |
---|---|
javax.faces.el.MethodBinding |
createMethodBinding(javax.faces.component.UIComponent component,
java.lang.String expression,
java.lang.String[] names,
java.lang.Class<?>[] types,
java.lang.String sourceId)
Create a MethodBinding instance |
javax.faces.el.ValueBinding |
createValueBinding(javax.faces.component.UIComponent component,
java.lang.String expression,
java.lang.String sourceId,
java.lang.Class<?> expectedClassType)
Create a value binding instance |
java.lang.String |
evaluateAsString(javax.faces.component.UIComponent component,
java.lang.String expression,
java.lang.String sourceId,
java.lang.Class<?> expectedClassType)
Evaluate a computed expression |
java.lang.Object |
getBindingValue(javax.faces.component.UIComponent closest,
java.lang.String expression,
java.lang.Class<?> primitiveClass,
java.lang.String sourceReferenceId,
java.lang.Class<?> expectedClassType)
Used to resolve the result of a primitive value binding. |
java.lang.Object |
getBindingValue(javax.faces.component.UIComponent closest,
java.lang.String expression,
java.lang.String sourceReferenceId,
java.lang.Class<?> expectedClassType)
Used to resolve the result of a non-primitive value binding. |
java.lang.String |
getValueAsString(java.lang.Object runtimeValue,
java.lang.String propertyName)
|
void |
setValue(java.lang.Object object,
java.lang.String propertyName,
java.lang.Object value,
java.lang.Class<?> type)
Used to set the result of evaluating a value binding property onto a non-component object. |
void |
setValue(javax.faces.component.UIComponent component,
java.lang.String propertyName,
java.lang.Object runtimeValue,
boolean isAttribute,
boolean expectsPrimitive)
Used to set the result of a value binding as the value of some property on a component. |
Method Detail |
---|
java.lang.String evaluateAsString(javax.faces.component.UIComponent component, java.lang.String expression, java.lang.String sourceId, java.lang.Class<?> expectedClassType)
component
- expression
- sourceId
-
javax.faces.el.ValueBinding createValueBinding(javax.faces.component.UIComponent component, java.lang.String expression, java.lang.String sourceId, java.lang.Class<?> expectedClassType)
component
- expression
- sourceId
-
javax.faces.el.MethodBinding createMethodBinding(javax.faces.component.UIComponent component, java.lang.String expression, java.lang.String[] names, java.lang.Class<?>[] types, java.lang.String sourceId)
component
- expression
- names
- types
- sourceId
-
java.lang.Object getBindingValue(javax.faces.component.UIComponent closest, java.lang.String expression, java.lang.Class<?> primitiveClass, java.lang.String sourceReferenceId, java.lang.Class<?> expectedClassType)
closest
- the closest component.expression
- the String value binding to resolve.primitiveClass
- a primitive class, like String.class, int.class, short.class
etc.
java.lang.Object getBindingValue(javax.faces.component.UIComponent closest, java.lang.String expression, java.lang.String sourceReferenceId, java.lang.Class<?> expectedClassType)
closest
- the closest component.expression
- the String value binding to resolve.
java.lang.String getValueAsString(java.lang.Object runtimeValue, java.lang.String propertyName)
void setValue(javax.faces.component.UIComponent component, java.lang.String propertyName, java.lang.Object runtimeValue, boolean isAttribute, boolean expectsPrimitive)
component
- the object to set the property value on.propertyName
- the property to set.isAttribute
- The property is declared
as an attribute (rather than a property that has get/set
methods).expectsPrimitive
- If the property is primitive.runtimeValue
- void setValue(java.lang.Object object, java.lang.String propertyName, java.lang.Object value, java.lang.Class<?> type)
object
- the object to set the property value on.propertyName
- the property to set.value
- the value to set the property to.type
- the class that the value binding was expected to resolve to.
(May be a primitive class, like int.class.) The value is often
also allowed to be a ValueBinding.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |