public class ExpressionBinding extends AbstractBinding
ExpressionEvaluator
Constructor and Description |
---|
ExpressionBinding(java.lang.String description,
org.apache.hivemind.Location location,
ValueConverter valueConverter,
IComponent root,
java.lang.String expression,
ExpressionEvaluator evaluator,
ExpressionCache cache)
Creates a
ExpressionBinding from the root object and an OGNL expression. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComponent()
Returns the component to which this binding is connected; this is currently only used when
building certain exceptions.
|
java.lang.Object |
getObject()
Gets the value of the property path, with the assistance of the
ExpressionEvaluator . |
boolean |
isInvariant()
Returns true if the binding is expected to always return the same value.
|
void |
setObject(java.lang.Object value)
Updates the property for the binding to the given value.
|
java.lang.String |
toString()
Returns the a String representing the property path.
|
createReadOnlyBindingException, extendDescription, getDescription, getLocation, getObject, getValueConverter
public ExpressionBinding(java.lang.String description, org.apache.hivemind.Location location, ValueConverter valueConverter, IComponent root, java.lang.String expression, ExpressionEvaluator evaluator, ExpressionCache cache)
ExpressionBinding
from the root object and an OGNL expression.public java.lang.Object getObject()
ExpressionEvaluator
.BindingException
- if an exception is thrown accessing the property.public boolean isInvariant()
isInvariant
in interface IBinding
isInvariant
in class AbstractBinding
public void setObject(java.lang.Object value)
setObject
in interface IBinding
setObject
in class AbstractBinding
BindingException
- if the property can't be updated (typically due to an security problem, or a
missing mutator method).ReadOnlyBindingException
- if the binding is invariant.public java.lang.String toString()
extended id
of the root component and the property path
... once the binding is used, these may change due to optimization of the property path.toString
in class AbstractBinding
public java.lang.Object getComponent()
AbstractBinding
getComponent
in class AbstractBinding