org.compass.core.accessor
Interface Getter

All Superinterfaces:
Serializable
All Known Implementing Classes:
BasicPropertyAccessor.BasicGetter, DirectPropertyAccessor.DirectGetter

public interface Getter
extends Serializable

Gets values of a particular attribute.

Author:
kimchy

Method Summary
 Object get(Object target)
          Get the property value from the given instance
 Type getGenericReturnType()
          Returns the generic return type of the return type.
 String getName()
          Get the property name
 Class getReturnType()
          Get the declared Java type
 

Method Detail

get

Object get(Object target)
           throws CompassException
Get the property value from the given instance

Throws:
CompassException

getReturnType

Class getReturnType()
Get the declared Java type


getGenericReturnType

Type getGenericReturnType()
Returns the generic return type of the return type. Can return null if not known or not set.

See Also:
Field.getGenericType(), Method.getGenericReturnType()

getName

String getName()
Get the property name



Copyright (c) 2004-2009 The Compass Project.