org.compass.core.accessor
Class BasicPropertyAccessor.BasicGetter

java.lang.Object
  extended by org.compass.core.accessor.BasicPropertyAccessor.BasicGetter
All Implemented Interfaces:
Serializable, Getter
Enclosing class:
BasicPropertyAccessor

public static final class BasicPropertyAccessor.BasicGetter
extends Object
implements Getter

See Also:
Serialized Form

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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public Object get(Object target)
           throws CompassException
Description copied from interface: Getter
Get the property value from the given instance

Specified by:
get in interface Getter
Throws:
CompassException

getName

public String getName()
Description copied from interface: Getter
Get the property name

Specified by:
getName in interface Getter

getReturnType

public Class getReturnType()
Description copied from interface: Getter
Get the declared Java type

Specified by:
getReturnType in interface Getter

getGenericReturnType

public Type getGenericReturnType()
Description copied from interface: Getter
Returns the generic return type of the return type. Can return null if not known or not set.

Specified by:
getGenericReturnType in interface Getter
See Also:
Field.getGenericType(), Method.getGenericReturnType()

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2009 The Compass Project.