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 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.
|
Class |
getBindingType()
Returns the actual class, by invoking
Binding.get() . |
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 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 <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
Copyright © 2003-2012 The Apache Software Foundation.