org.apache.jdo.impl.model.java.runtime.jdk5
Class JDK5RuntimeJavaField
java.lang.Object
org.apache.jdo.impl.model.java.AbstractJavaMember
org.apache.jdo.impl.model.java.BaseReflectionJavaField
org.apache.jdo.impl.model.java.reflection.ReflectionJavaField
org.apache.jdo.impl.model.java.runtime.jdk5.JDK5RuntimeJavaField
- All Implemented Interfaces:
- org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaField, org.apache.jdo.model.java.JavaMember
public class JDK5RuntimeJavaField
- extends org.apache.jdo.impl.model.java.reflection.ReflectionJavaField
A reflection based JavaField implementation used at runtime in a
J2SE5.0 environment.
- Author:
- Michael Bouschen
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaField |
type |
Constructor Summary |
JDK5RuntimeJavaField(java.lang.reflect.Field field,
org.apache.jdo.model.java.JavaType declaringClass)
Constructor for fields w/o JDO metadata. |
JDK5RuntimeJavaField(java.lang.String name,
org.apache.jdo.model.java.JavaType type,
org.apache.jdo.model.java.JavaType declaringClass)
Constructor for fields having JDO metadata. |
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. |
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaField |
getJavaTypeForClass, getType |
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaField |
ensureInitializedField, getDeclaredFieldPrivileged, getDeclaredFieldsPrivileged, getField, getModifiers, 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 |
JDK5RuntimeJavaField
public JDK5RuntimeJavaField(java.lang.reflect.Field field,
org.apache.jdo.model.java.JavaType declaringClass)
- Constructor for fields w/o JDO metadata.
- Parameters:
field
- the reflection field representation.declaringClass
- the JavaType of the class that declares the field.
JDK5RuntimeJavaField
public JDK5RuntimeJavaField(java.lang.String name,
org.apache.jdo.model.java.JavaType type,
org.apache.jdo.model.java.JavaType declaringClass)
- Constructor for fields having JDO metadata.
- Parameters:
name
- the name of the field.type
- the field type.declaringClass
- the JavaType of the class that declares the field.
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.
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.