org.apache.velocity.util.introspection
Interface VelPropertySet
- UberspectImpl.VelSetterImpl
public interface VelPropertySet
Interface used for setting values that appear to be properties in
Velocity. Ex.
#set($foo.bar = "hello")
Version:
- Geir Magnusson Jr.
String | getMethodName() - returns the method name used to set this 'property'
|
Object | invoke(Object o, Object arg) - method used to set the value in the object
|
boolean | isCacheable() - specifies if this VelPropertySet is cacheable and able to be
reused for this class of object it was returned for
|
getMethodName
public String getMethodName()
returns the method name used to set this 'property'
invoke
public Object invoke(Object o,
Object arg)
throws Exception
method used to set the value in the object
o
- Object on which the method will be called with the argarg
- value to be set
- the value returned from the set operation (impl specific)
isCacheable
public boolean isCacheable()
specifies if this VelPropertySet is cacheable and able to be
reused for this class of object it was returned for
- true if can be reused for this class, false if not
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.