org.apache.velocity.util.introspection

Class UberspectImpl.VelSetterImpl

Enclosing Class:
UberspectImpl
Implemented Interfaces:
VelPropertySet

public class UberspectImpl.VelSetterImpl
extends java.lang.Object
implements VelPropertySet

Field Summary

(package private) String
putKey
(package private) VelMethod
vm

Constructor Summary

VelSetterImpl()
VelSetterImpl(VelMethod velmethod)
VelSetterImpl(VelMethod velmethod, String key)

Method Summary

String
getMethodName()
returns the method name used to set this 'property'
Object
invoke(Object o, Object value)
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

Field Details

putKey

(package private)  String putKey

vm

(package private)  VelMethod vm

Constructor Details

VelSetterImpl

private VelSetterImpl()

VelSetterImpl

public VelSetterImpl(VelMethod velmethod)

VelSetterImpl

public VelSetterImpl(VelMethod velmethod,
                     String key)

Method Details

getMethodName

public String getMethodName()
returns the method name used to set this 'property'
Specified by:
getMethodName in interface VelPropertySet

invoke

public Object invoke(Object o,
                     Object value)
            throws Exception
method used to set the value in the object
Specified by:
invoke in interface VelPropertySet
Parameters:
o - Object on which the method will be called with the arg
Returns:
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
Specified by:
isCacheable in interface VelPropertySet
Returns:
true if can be reused for this class, false if not

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.