org.apache.tapestry5.internal.services
Class BasePropertyConduit

java.lang.Object
  extended by 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.


Constructor Summary
BasePropertyConduit(Class propertyType, AnnotationProvider annotationProvider, String description, TypeCoercer typeCoercer)
           
 
Method Summary
protected
<T> T
coerce(Object value, Class<T> type)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationClass)
          Searches for the specified annotation, returning the matching annotation instance.
 Class getPropertyType()
          Returns the type of the property read or updated by the conduit.
 boolean invert(Object value)
           
 IntegerRange range(int from, int to)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry5.PropertyConduit
get, set
 

Constructor Detail

BasePropertyConduit

public BasePropertyConduit(Class propertyType,
                           AnnotationProvider annotationProvider,
                           String description,
                           TypeCoercer typeCoercer)
Method Detail

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.