VelPropertyGet (Velocity 1.7 API)
Keywords: org.apache.velocity.util.introspection.VelPropertyGet interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.util.introspection
Interface VelPropertyGet

All Known Implementing Classes:
  UberspectImpl.VelGetterImpl

public interface VelPropertyGet

Interface defining a 'getter'. For uses when looking for resolution of property references $foo.bar

Version:
  $Id: VelPropertyGet.java 463298 2006-10-12 16:10:32Z henning $
Author:
  Geir Magnusson Jr.

Method Summary
`String` | `getMethodName()` returns the method name used to return this 'property'
`Object` | `invoke(Object o)` invocation method - called when the 'get action' should be preformed and a value returned
`boolean` | `isCacheable()` specifies if this VelPropertyGet is cacheable and able to be reused for this class of object it was returned for

Method Detail

### invoke

    public Object invoke(Object o)
                  throws Exception

  invocation method - called when the 'get action' should be preformed and a value returned

  Parameters:
    `o` -
  Returns:
    The resulting Object.
  Throws:
    `Exception`

### isCacheable

    public boolean isCacheable()

  specifies if this VelPropertyGet 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

### getMethodName

    public String getMethodName()

  returns the method name used to return this 'property'

  Returns:
    The method name used to return this 'property'

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.