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

Initial version taken from hibernate

Author:
kimchy

Method Summary
 Object get(Object target)
          Get the property value from the given instance
 Method getMethod()
          Optional operation (return null)
 String getMethodName()
          Optional operation (return null)
 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


getName

String getName()
Get the property name


getMethodName

String getMethodName()
Optional operation (return null)


getMethod

Method getMethod()
Optional operation (return null)



Copyright (c) 2004-2006 The Compass Project.