Class PropBinding
- java.lang.Object
- 
- org.apache.tapestry5.ioc.BaseLocatable
- 
- org.apache.tapestry5.internal.bindings.AbstractBinding
- 
- org.apache.tapestry5.internal.bindings.PropBinding
 
 
 
- 
- All Implemented Interfaces:
- Binding,- Binding2,- AnnotationProvider,- Locatable,- InternalPropBinding
 
 public class PropBinding extends AbstractBinding implements InternalPropBinding Base class for bindings created by thePropBindingFactory. A subclass of this is created at runtime.
- 
- 
Constructor SummaryConstructors Constructor Description PropBinding(Location location, Object root, PropertyConduit conduit, String expression, String toString)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()The default implementation of get() will throw a TapestryException (binding is write only).<T extends Annotation>
 TgetAnnotation(Class<T> annotationClass)Always returns null.TypegetBindingGenericType()Get the generic type from the underlying propertyClassgetBindingType()Returns the actual class, by invokingBinding.get().StringgetExpression()StringgetPropertyName()Returns the name of the property, if exists.booleanisInvariant()Almost always returns false, unless the conduit provides theInvariantannotation.voidset(Object value)Updates the current value.StringtoString()- 
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatablegetLocation
 
- 
 
- 
- 
- 
Constructor Detail- 
PropBindingpublic PropBinding(Location location, Object root, PropertyConduit conduit, String expression, String toString) 
 
- 
 - 
Method Detail- 
getpublic Object get() The default implementation of get() will throw a TapestryException (binding is write only). The fabricated subclass may override this method (as well as set()).
 - 
setpublic void set(Object value) Description copied from interface:BindingUpdates the current value. Most types of bindings are read-only, and this method will throw a runtime exception. It is the caller's responsibility to ensure that the value passed in is of the appropriate type.- Specified by:
- setin interface- Binding
- Overrides:
- setin class- AbstractBinding
 
 - 
isInvariantpublic boolean isInvariant() Almost always returns false, unless the conduit provides theInvariantannotation.- Specified by:
- isInvariantin interface- Binding
- Overrides:
- isInvariantin class- AbstractBinding
 
 - 
getBindingTypepublic Class getBindingType() Description copied from class:AbstractBindingReturns the actual class, by invokingBinding.get(). Subclasses may override this method to work more efficiently (say, when the binding type is known statically).- Specified by:
- getBindingTypein interface- Binding
- Overrides:
- getBindingTypein class- AbstractBinding
 
 - 
getBindingGenericTypepublic Type getBindingGenericType() Get the generic type from the underlying property- Specified by:
- getBindingGenericTypein interface- Binding2
- Overrides:
- getBindingGenericTypein class- AbstractBinding
- See Also:
- PropertyConduit2.getPropertyGenericType()
 
 - 
getAnnotationpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) Description copied from class:AbstractBindingAlways returns null. Bindings that provide access to a method or field will override this method to return the appropriate annotation.- Specified by:
- getAnnotationin interface- AnnotationProvider
- Overrides:
- getAnnotationin class- AbstractBinding
- Parameters:
- annotationClass- used to select the annotation to return
- Returns:
- the annotation, or null if not found
 
 - 
getPropertyNamepublic String getPropertyName() Description copied from interface:InternalPropBindingReturns the name of the property, if exists.- Specified by:
- getPropertyNamein interface- InternalPropBinding
 
 - 
getExpressionpublic String getExpression() 
 
- 
 
-