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 Summary
ConstructorsConstructorDescriptionLiteralPropertyConduit(TypeCoercer typeCoercer, Class propertyType, AnnotationProvider annotationProvider, String description, Object value) -
Method Summary
Modifier and TypeMethodDescriptionReads the property from the instance.<T extends Annotation>
TgetAnnotation(Class<T> annotationClass) Searches for the specified annotation, returning the matching annotation instance.Returns the generic type of the propertyReturns the name of the property read or updated by the conduit or null.Returns the type of the property read or updated by the conduit.voidChanges the current value of the property.toString()Methods inherited from class org.apache.tapestry5.beanmodel.internal.services.PropertyConduitDelegate
coerce, invert, range
-
Constructor Details
-
LiteralPropertyConduit
public LiteralPropertyConduit(TypeCoercer typeCoercer, Class propertyType, AnnotationProvider annotationProvider, String description, Object value)
-
-
Method Details
-
get
Description copied from interface:PropertyConduitReads the property from the instance.- Specified by:
getin interfacePropertyConduit- Parameters:
instance- object containing the property- Returns:
- the current value of the property
-
set
Description copied from interface:PropertyConduitChanges the current value of the property.- Specified by:
setin interfacePropertyConduit- Parameters:
instance- object containing the propertyvalue- to change the property to
-
getPropertyType
Description copied from interface:PropertyConduitReturns the type of the property read or updated by the conduit.- Specified by:
getPropertyTypein interfacePropertyConduit
-
getPropertyGenericType
Description copied from interface:PropertyConduit2Returns the generic type of the property- Specified by:
getPropertyGenericTypein interfacePropertyConduit2- See Also:
-
getAnnotation
Description copied from interface:AnnotationProviderSearches for the specified annotation, returning the matching annotation instance.- Specified by:
getAnnotationin interfaceAnnotationProvider- Parameters:
annotationClass- used to select the annotation to return- Returns:
- the annotation, or null if not found
-
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 interfaceInternalPropertyConduit- Returns:
- property name or
null
-
toString
-