public class PropBinding extends AbstractBinding implements InternalPropBinding
PropBindingFactory. A subclass
of this is created at runtime.| Constructor and Description |
|---|
PropBinding(Location location,
java.lang.Object root,
PropertyConduit conduit,
java.lang.String expression,
java.lang.String toString) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
The default implementation of get() will throw a TapestryException (binding is write only).
|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Always returns null.
|
java.lang.reflect.Type |
getBindingGenericType()
Get the generic type from the underlying property
|
java.lang.Class |
getBindingType()
Returns the actual class, by invoking
Binding.get(). |
java.lang.String |
getExpression() |
java.lang.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(java.lang.Object value)
Updates the current value.
|
java.lang.String |
toString() |
getLocationpublic PropBinding(Location location, java.lang.Object root, PropertyConduit conduit, java.lang.String expression, java.lang.String toString)
public java.lang.Object get()
public void set(java.lang.Object value)
Bindingset in interface Bindingset in class AbstractBindingpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isInvariant()
Invariant
annotation.isInvariant in interface BindingisInvariant in class AbstractBindingpublic java.lang.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 java.lang.reflect.Type getBindingGenericType()
getBindingGenericType in interface Binding2getBindingGenericType in class AbstractBindingPropertyConduit2.getPropertyGenericType()public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AbstractBindinggetAnnotation in interface AnnotationProvidergetAnnotation in class AbstractBindingannotationClass - used to select the annotation to returnpublic java.lang.String getPropertyName()
InternalPropBindinggetPropertyName in interface InternalPropBindingpublic java.lang.String getExpression()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.