org.apache.tapestry5.internal.services
Class LiteralPropertyConduit

java.lang.Object
  extended by org.apache.tapestry5.internal.services.BasePropertyConduit
      extended by org.apache.tapestry5.internal.services.LiteralPropertyConduit
All Implemented Interfaces:
AnnotationProvider, PropertyConduit

public class LiteralPropertyConduit
extends BasePropertyConduit

A PropertyConduit for a literal value in an expression, such as a number, or "true", "false" or "null".


Constructor Summary
LiteralPropertyConduit(Class propertyType, AnnotationProvider annotationProvider, String description, TypeCoercer typeCoercer, Object value)
           
 
Method Summary
 Object get(Object instance)
          Reads the property from the instance.
 void set(Object instance, Object value)
          Changes the current value of the property.
 
Methods inherited from class org.apache.tapestry5.internal.services.BasePropertyConduit
coerce, getAnnotation, getPropertyType, invert, range, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralPropertyConduit

public LiteralPropertyConduit(Class propertyType,
                              AnnotationProvider annotationProvider,
                              String description,
                              TypeCoercer typeCoercer,
                              Object value)
Method Detail

get

public Object get(Object instance)
Description copied from interface: PropertyConduit
Reads the property from the instance.

Parameters:
instance - object containing the property
Returns:
the current value of the property

set

public void set(Object instance,
                Object value)
Description copied from interface: PropertyConduit
Changes the current value of the property.

Parameters:
instance - object containing the property
value - to change the property to


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.