Class LiteralPropertyConduit
- java.lang.Object
- 
- org.apache.tapestry5.beanmodel.internal.services.PropertyConduitDelegate
- 
- org.apache.tapestry5.beanmodel.internal.services.LiteralPropertyConduit
 
 
- 
- All Implemented Interfaces:
- InternalPropertyConduit,- PropertyConduit,- PropertyConduit2,- AnnotationProvider
 
 public class LiteralPropertyConduit extends PropertyConduitDelegate implements InternalPropertyConduit A PropertyConduit for a literal value in an expression, such as a number, or "true", "false" or "null".
- 
- 
Constructor SummaryConstructors Constructor Description LiteralPropertyConduit(TypeCoercer typeCoercer, java.lang.Class propertyType, AnnotationProvider annotationProvider, java.lang.String description, java.lang.Object value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object instance)Reads the property from the instance.<T extends java.lang.annotation.Annotation>
 TgetAnnotation(java.lang.Class<T> annotationClass)Searches for the specified annotation, returning the matching annotation instance.java.lang.reflect.TypegetPropertyGenericType()Returns the generic type of the propertyjava.lang.StringgetPropertyName()Returns the name of the property read or updated by the conduit or null.java.lang.ClassgetPropertyType()Returns the type of the property read or updated by the conduit.voidset(java.lang.Object instance, java.lang.Object value)Changes the current value of the property.java.lang.StringtoString()- 
Methods inherited from class org.apache.tapestry5.beanmodel.internal.services.PropertyConduitDelegatecoerce, invert, range
 
- 
 
- 
- 
- 
Constructor Detail- 
LiteralPropertyConduitpublic LiteralPropertyConduit(TypeCoercer typeCoercer, java.lang.Class propertyType, AnnotationProvider annotationProvider, java.lang.String description, java.lang.Object value) 
 
- 
 - 
Method Detail- 
getpublic java.lang.Object get(java.lang.Object instance) Description copied from interface:PropertyConduitReads the property from the instance.- Specified by:
- getin interface- PropertyConduit
- Parameters:
- instance- object containing the property
- Returns:
- the current value of the property
 
 - 
setpublic void set(java.lang.Object instance, java.lang.Object value) Description copied from interface:PropertyConduitChanges the current value of the property.- Specified by:
- setin interface- PropertyConduit
- Parameters:
- instance- object containing the property
- value- to change the property to
 
 - 
getPropertyTypepublic java.lang.Class getPropertyType() Description copied from interface:PropertyConduitReturns the type of the property read or updated by the conduit.- Specified by:
- getPropertyTypein interface- PropertyConduit
 
 - 
getPropertyGenericTypepublic java.lang.reflect.Type getPropertyGenericType() Description copied from interface:PropertyConduit2Returns the generic type of the property- Specified by:
- getPropertyGenericTypein interface- PropertyConduit2
- See Also:
- Method.getGenericReturnType(),- Field.getGenericType()
 
 - 
getAnnotationpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass) Description copied from interface:AnnotationProviderSearches for the specified annotation, returning the matching annotation instance.- Specified by:
- getAnnotationin interface- AnnotationProvider
- Parameters:
- annotationClass- used to select the annotation to return
- Returns:
- the annotation, or null if not found
 
 - 
getPropertyNamepublic java.lang.String getPropertyName() Description copied from interface:InternalPropertyConduitReturns the name of the property read or updated by the conduit or null. If the expression points to a property on a bean (e.g. user.name) this method returns the last property in the chain. Otherwise this method returnsnull.- Specified by:
- getPropertyNamein interface- InternalPropertyConduit
- Returns:
- property name or null
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-