|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaMember
org.apache.jdo.impl.model.java.JavaPropertyImpl
Default Implementation of the JavaProperty interface. A JavaProperty instance represents a JavaBeans property.
Field Summary | |
private JavaMethod |
getter
The method object of the getter method. |
private static I18NHelper |
msg
I18N support |
private JavaMethod |
setter
The method object of the setter method. |
private JavaType |
type
The type of the property. |
Fields inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember |
|
Constructor Summary | |
JavaPropertyImpl(java.lang.String name,
JavaMethod getter,
JavaMethod setter,
JavaType type,
JavaType declaringClass)
Constructor setting name, getter, setter, type and declaringClass. |
Method Summary | |
JavaMethod |
getGetterMethod()
Returns the JavaMethod representation of the getter method for this JavaProperty. |
int |
getModifiers()
Returns the Java language modifiers for the field represented by this JavaMember, as an integer. |
JavaMethod |
getSetterMethod()
Returns the JavaMethod representation of the setter method for this JavaProperty. |
JavaType |
getType()
Returns the JavaType representation of the property type. |
java.lang.Object |
getUnderlyingObject()
Returns the environment specific instance wrapped by this JavaModel element. |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember |
equals, getComponentType, getDeclaringClass, getName, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.java.JavaMember |
getComponentType, getDeclaringClass, getName |
Field Detail |
private final JavaMethod getter
private final JavaMethod setter
private final JavaType type
private static I18NHelper msg
Constructor Detail |
public JavaPropertyImpl(java.lang.String name, JavaMethod getter, JavaMethod setter, JavaType type, JavaType declaringClass) throws ModelFatalException
Method Detail |
public java.lang.Object getUnderlyingObject()
This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.
getUnderlyingObject
in interface JavaElement
public int getModifiers()
This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.
getModifiers
in interface JavaMember
getModifiers
in class AbstractJavaMember
Modifier
public JavaMethod getGetterMethod()
null
.
getGetterMethod
in interface JavaProperty
null
otherwise.public JavaMethod getSetterMethod()
null
.
getSetterMethod
in interface JavaProperty
null
otherwise.public JavaType getType()
getType
in interface JavaMember
getType
in class AbstractJavaMember
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |