Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.java » [javadoc | source]
org.apache.jdo.impl.model.java
public class: JavaPropertyImpl [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.java.AbstractJavaMember
      org.apache.jdo.impl.model.java.JavaPropertyImpl

All Implemented Interfaces:
    JavaProperty, JavaMember

Default Implementation of the JavaProperty interface. A JavaProperty instance represents a JavaBeans property.
Constructor:
 public JavaPropertyImpl(String name,
    JavaMethod getter,
    JavaMethod setter,
    JavaType type,
    JavaType declaringClass) throws ModelFatalException 
    Constructor setting name, getter, setter, type and declaringClass.
Method from org.apache.jdo.impl.model.java.JavaPropertyImpl Summary:
getGetterMethod,   getModifiers,   getSetterMethod,   getType,   getUnderlyingObject
Methods from org.apache.jdo.impl.model.java.AbstractJavaMember:
equals,   getComponentType,   getDeclaringClass,   getModifiers,   getName,   getType,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.java.JavaPropertyImpl Detail:
 public 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.
 public int getModifiers() 
    Returns the Java language modifiers for the field represented by this JavaMember, as an integer. The java.lang.reflect.Modifier class should be used to decode the modifiers.

    This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.

 public 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.
 public JavaType getType() 
    Returns the JavaType representation of the property type.
 public Object getUnderlyingObject() 
    Returns the environment specific instance wrapped by this JavaModel element.

    This implementation returns the underlying object of the getter method if available; otherwise the one from the setter method.