org.apache.commons.jexl.util.introspection

Interface VelPropertySet

public interface VelPropertySet

Interface used for setting values that appear to be properties in Velocity. Ex. #set($foo.bar = "hello")

Since: 1.0

Version: $Id: VelPropertySet.java 398515 2006-05-01 03:46:33Z dion $

Method Summary
StringgetMethodName()
returns the method name used to set this 'property'.
Objectinvoke(Object o, Object arg)
method used to set the value in the object.
booleanisCacheable()
specifies if this VelPropertySet is cacheable and able to be reused for this class of object it was returned for.

Method Detail

getMethodName

public String getMethodName()
returns the method name used to set this 'property'.

Returns: the method name.

invoke

public Object invoke(Object o, Object arg)
method used to set the value in the object.

Parameters: o Object on which the method will be called with the arg arg value to be set

Returns: the value returned from the set operation (impl specific)

Throws: Exception on any error.

isCacheable

public boolean isCacheable()
specifies if this VelPropertySet is cacheable and able to be reused for this class of object it was returned for.

Returns: true if can be reused for this class, false if not

Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.