org.pojomatic
Interface PropertyElement

All Known Implementing Classes:
AbstractPropertyElement, PropertyAccessor, PropertyField

public interface PropertyElement

A "property" on a class. In this context, all a property is is a means of obtaining a value from an instance.


Method Summary
 java.lang.reflect.AnnotatedElement getElement()
          Get the original annotated element that this property is derived from.
 java.lang.String getName()
          Get the name of this property.
 java.lang.Object getValue(java.lang.Object instance)
          Get the value held by this property from the given instance.
 

Method Detail

getName

java.lang.String getName()
Get the name of this property.

Returns:
the name of this property.

getValue

java.lang.Object getValue(java.lang.Object instance)
Get the value held by this property from the given instance.

Parameters:
instance - the instance to get the value from
Returns:
the value held by the instance

getElement

java.lang.reflect.AnnotatedElement getElement()
Get the original annotated element that this property is derived from.

Returns:
the original annotated element that this property is derived from.


Copyright © 2008-2009. All Rights Reserved.