org.apache.tapestry5.internal.services
Class BasePropertyConduit
java.lang.Object
org.apache.tapestry5.internal.services.BasePropertyConduit
- All Implemented Interfaces:
- AnnotationProvider, PropertyConduit
- Direct Known Subclasses:
- LiteralPropertyConduit
public abstract class BasePropertyConduit
- extends Object
- implements PropertyConduit
Base class for PropertyConduit instances created by the PropertyConduitSource.
BasePropertyConduit
public BasePropertyConduit(Class propertyType,
AnnotationProvider annotationProvider,
String description,
TypeCoercer typeCoercer)
toString
public final String toString()
- Overrides:
toString in class Object
getAnnotation
public final <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Description copied from interface:
AnnotationProvider
- Searches for the specified annotation, returning the matching annotation instance.
- Specified by:
getAnnotation in interface AnnotationProvider
- Parameters:
annotationClass - used to select the annotation to return«
- Returns:
- the annotation, or null if not found
getPropertyType
public final Class getPropertyType()
- Description copied from interface:
PropertyConduit
- Returns the type of the property read or updated by the conduit.
- Specified by:
getPropertyType in interface PropertyConduit
range
public final IntegerRange range(int from,
int to)
coerce
protected final <T> T coerce(Object value,
Class<T> type)
invert
public final boolean invert(Object value)
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.