org.apache.jdo.impl.model.java.runtime.jdk5
Class JDK5RuntimeJavaProperty

java.lang.Object
  extended by org.apache.jdo.impl.model.java.AbstractJavaMember
      extended by org.apache.jdo.impl.model.java.JavaPropertyImpl
          extended by org.apache.jdo.impl.model.java.runtime.jdk5.JDK5RuntimeJavaProperty
All Implemented Interfaces:
org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaField, org.apache.jdo.model.java.JavaMember, org.apache.jdo.model.java.JavaProperty

public class JDK5RuntimeJavaProperty
extends org.apache.jdo.impl.model.java.JavaPropertyImpl

Default implementation for the JavaProperty interfaces. A JavaProperty represents a JavaBeans property.

Author:
Michael Bouschen

Constructor Summary
JDK5RuntimeJavaProperty(java.lang.String name, org.apache.jdo.model.java.JavaMethod getter, org.apache.jdo.model.java.JavaMethod setter, org.apache.jdo.model.java.JavaType type, org.apache.jdo.model.java.JavaType declaringClass)
           
 
Method Summary
 org.apache.jdo.model.java.JavaType getComponentType()
          Returns the JavaType representation of the component type of the type of the property, if the property type is an array or collection.
 org.apache.jdo.model.java.JavaType getJavaTypeForClass(java.lang.Class clazz)
          Returns a JavaType instance for the specified Class object.
 
Methods inherited from class org.apache.jdo.impl.model.java.JavaPropertyImpl
getGetterMethod, getModifiers, getSetterMethod, getType, getUnderlyingObject
 
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember
equals, 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
getDeclaringClass, getName
 

Constructor Detail

JDK5RuntimeJavaProperty

public JDK5RuntimeJavaProperty(java.lang.String name,
                               org.apache.jdo.model.java.JavaMethod getter,
                               org.apache.jdo.model.java.JavaMethod setter,
                               org.apache.jdo.model.java.JavaType type,
                               org.apache.jdo.model.java.JavaType declaringClass)
Method Detail

getComponentType

public org.apache.jdo.model.java.JavaType getComponentType()
Returns the JavaType representation of the component type of the type of the property, if the property type is an array or collection. The method returns null, if the property type is not an array or collection.

Specified by:
getComponentType in interface org.apache.jdo.model.java.JavaMember
Overrides:
getComponentType in class org.apache.jdo.impl.model.java.AbstractJavaMember
Returns:
the component type of the property type in case of an array or collection.

getJavaTypeForClass

public org.apache.jdo.model.java.JavaType getJavaTypeForClass(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object. This method provides a hook such that ReflectionJavaField subclasses can implement their own mapping of Class objects to JavaType instances.



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