|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.PropertyConduitDelegate org.apache.tapestry5.internal.services.LiteralPropertyConduit
public class LiteralPropertyConduit
A PropertyConduit for a literal value in an expression, such as a number, or "true", "false" or "null".
Constructor Summary | |
---|---|
LiteralPropertyConduit(TypeCoercer typeCoercer,
Class propertyType,
AnnotationProvider annotationProvider,
String description,
Object value)
|
Method Summary | ||
---|---|---|
Object |
get(Object instance)
Reads the property from the instance. |
|
|
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance. |
|
String |
getPropertyName()
Returns the name of the property read or updated by the conduit or null. |
|
Class |
getPropertyType()
Returns the type of the property read or updated by the conduit. |
|
void |
set(Object instance,
Object value)
Changes the current value of the property. |
|
String |
toString()
|
Methods inherited from class org.apache.tapestry5.internal.services.PropertyConduitDelegate |
---|
coerce, invert, range |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LiteralPropertyConduit(TypeCoercer typeCoercer, Class propertyType, AnnotationProvider annotationProvider, String description, Object value)
Method Detail |
---|
public Object get(Object instance)
PropertyConduit
get
in interface PropertyConduit
instance
- object containing the property
public void set(Object instance, Object value)
PropertyConduit
set
in interface PropertyConduit
instance
- object containing the propertyvalue
- to change the property topublic Class getPropertyType()
PropertyConduit
getPropertyType
in interface PropertyConduit
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return
public String getPropertyName()
InternalPropertyConduit
null
.
getPropertyName
in interface InternalPropertyConduit
null
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |