public class PropBinding extends AbstractBinding implements InternalPropBinding
PropBindingFactory. A subclass
of this is created at runtime.| Constructor and Description |
|---|
PropBinding(Location location,
Object root,
PropertyConduit conduit,
String expression,
String toString) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
The default implementation of get() will throw a TapestryException (binding is write only).
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Always returns null.
|
Type |
getBindingGenericType()
Get the generic type from the underlying property
|
Class |
getBindingType()
Returns the actual class, by invoking
Binding.get(). |
String |
getExpression() |
String |
getPropertyName()
Returns the name of the property, if exists.
|
boolean |
isInvariant()
Almost always returns false, unless the conduit provides the
Invariant
annotation. |
void |
set(Object value)
Updates the current value.
|
String |
toString() |
getLocationpublic PropBinding(Location location, Object root, PropertyConduit conduit, String expression, String toString)
public Object get()
public void set(Object value)
Bindingset in interface Bindingset in class AbstractBindingpublic boolean isInvariant()
Invariant
annotation.isInvariant in interface BindingisInvariant in class AbstractBindingpublic Class getBindingType()
AbstractBindingBinding.get(). Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).getBindingType in interface BindinggetBindingType in class AbstractBindingpublic Type getBindingGenericType()
getBindingGenericType in interface Binding2getBindingGenericType in class AbstractBindingPropertyConduit2.getPropertyGenericType()public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AbstractBindinggetAnnotation in interface AnnotationProvidergetAnnotation in class AbstractBindingannotationClass - used to select the annotation to returnpublic String getPropertyName()
InternalPropBindinggetPropertyName in interface InternalPropBindingpublic String getExpression()
5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.