Save This Page
Home » jdo2-model-2.3-ea-src » » [javadoc | source]
abstract public class: AbstractJavaType [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    JDOSupportedMapType, FloatingPointType, ErrorType, IntegralType, WrapperClassType, BaseReflectionJavaType, MutableValueClassType, JDOSupportedCollectionType, NullType, ValueClassType, PrimitiveType, PredefinedType, ReflectionJavaType

Abstract super class for JavaType implementations. It provides a default implementation for all methods except getName. The methods return the Java default value of the return type.

A non-abstract subclass must implement method #getName() and needs to override any of the other methods where the default implementation is not appropriate.

Note, the class implements methods #equals(Object obj) , #hashCode() and #toString() using the name of a JavaType.

Method from Summary:
equals,   getArrayComponentType,   getDeclaredJavaFields,   getDeclaredJavaProperties,   getJDOClass,   getJavaField,   getJavaProperty,   getModifiers,   getName,   getSuperclass,   getUnderlyingObject,   hashCode,   isArray,   isCompatibleWith,   isFloatingPoint,   isIntegral,   isInterface,   isJDOSupportedCollection,   isJDOSupportedMap,   isOrderable,   isPersistenceCapable,   isPrimitive,   isTrackable,   isValue,   isWrapperClass,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 public boolean equals(Object obj) 
    Indicates whether some other object is "equal to" this one.
 public JavaType getArrayComponentType() 
 public JavaField[] getDeclaredJavaFields() 
 public JavaProperty[] getDeclaredJavaProperties() 
 public JDOClass getJDOClass() 
 public JavaField getJavaField(String name) 
 public JavaProperty getJavaProperty(String name) 
 public int getModifiers() 
 abstract public String getName()
 public JavaType getSuperclass() 
 public Object getUnderlyingObject() 
 public int hashCode() 
    Returns a hash code value for the object.

    This implementation returns the hashCode of the name of this JavaType.

 public boolean isArray() 
 public boolean isCompatibleWith(JavaType javaType) 
 public boolean isFloatingPoint() 
 public boolean isIntegral() 
 public boolean isInterface() 
 public boolean isJDOSupportedCollection() 
 public boolean isJDOSupportedMap() 
 public boolean isOrderable() 
 public boolean isPersistenceCapable() 
 public boolean isPrimitive() 
 public boolean isTrackable() 
 public boolean isValue() 
 public boolean isWrapperClass() 
 public String toString() 
    Returns a string representation of the object.