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() |
getLocation
public PropBinding(Location location, Object root, PropertyConduit conduit, String expression, String toString)
public Object get()
public void set(Object value)
Binding
set
in interface Binding
set
in class AbstractBinding
public boolean isInvariant()
Invariant
annotation.isInvariant
in interface Binding
isInvariant
in class AbstractBinding
public Class getBindingType()
AbstractBinding
Binding.get()
. Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).getBindingType
in interface Binding
getBindingType
in class AbstractBinding
public Type getBindingGenericType()
getBindingGenericType
in interface Binding2
getBindingGenericType
in class AbstractBinding
PropertyConduit2.getPropertyGenericType()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AbstractBinding
getAnnotation
in interface AnnotationProvider
getAnnotation
in class AbstractBinding
annotationClass
- used to select the annotation to returnpublic String getPropertyName()
InternalPropBinding
getPropertyName
in interface InternalPropBinding
public String getExpression()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.