org.apache.jdo.model.java
Interface JavaProperty

All Superinterfaces:
JavaElement, JavaField, JavaMember
All Known Implementing Classes:
JavaPropertyImpl

public interface JavaProperty
extends JavaField

A JavaProperty instance represents a JavaBeans property.

Version:
JDO 2.0
Author:
Michael Bouschen

Method Summary
 JavaMethod getGetterMethod()
          Returns the JavaMethod representation of the getter method for this JavaProperty.
 JavaMethod getSetterMethod()
          Returns the JavaMethod representation of the setter method for this JavaProperty.
 
Methods inherited from interface org.apache.jdo.model.java.JavaMember
getComponentType, getDeclaringClass, getModifiers, getName, getType
 
Methods inherited from interface org.apache.jdo.model.java.JavaElement
getUnderlyingObject
 

Method Detail

getGetterMethod

JavaMethod getGetterMethod()
Returns the JavaMethod representation of the getter method for this JavaProperty. If there is no getter method for this JavaProperty (i.e. the property is write-only), then the method returns null.

Returns:
the getter method if available; or null otherwise.

getSetterMethod

JavaMethod getSetterMethod()
Returns the JavaMethod representation of the setter method for this JavaProperty. If there is no setter method for this JavaProperty (i.e. the property is read-only), then the method returns null.

Returns:
the setter method if available; or null otherwise.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.