|
||||||||||
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
public class JavaPropertyImpl
Default Implementation of the JavaProperty interface. A JavaProperty instance represents a JavaBeans property.
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 |
Constructor Detail |
---|
public JavaPropertyImpl(java.lang.String name, JavaMethod getter, JavaMethod setter, JavaType type, JavaType declaringClass) throws ModelFatalException
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 |