|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
java.lang.Class propertyType,
AnnotationProvider annotationProvider,
java.lang.String description,
java.lang.Object value)
|
Method Summary | ||
---|---|---|
java.lang.Object |
get(java.lang.Object instance)
Reads the property from the instance. |
|
|
getAnnotation(java.lang.Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance. |
|
java.lang.String |
getPropertyName()
Returns the name of the property read or updated by the conduit or null. |
|
java.lang.Class |
getPropertyType()
Returns the type of the property read or updated by the conduit. |
|
void |
set(java.lang.Object instance,
java.lang.Object value)
Changes the current value of the property. |
|
java.lang.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, java.lang.Class propertyType, AnnotationProvider annotationProvider, java.lang.String description, java.lang.Object value)
Method Detail |
---|
public java.lang.Object get(java.lang.Object instance)
PropertyConduit
get
in interface PropertyConduit
instance
- object containing the property
public void set(java.lang.Object instance, java.lang.Object value)
PropertyConduit
set
in interface PropertyConduit
instance
- object containing the propertyvalue
- to change the property topublic java.lang.Class getPropertyType()
PropertyConduit
getPropertyType
in interface PropertyConduit
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return
public java.lang.String getPropertyName()
InternalPropertyConduit
null
.
getPropertyName
in interface InternalPropertyConduit
null
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |