atg.droplet
Class ObjectTypeInfo

java.lang.Object
  extended by atg.droplet.ObjectTypeInfo
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArrayObjectTypeInfo, BeanObjectTypeInfo, ClassObjectTypeInfo

public class ObjectTypeInfo
extends java.lang.Object
implements java.io.Serializable

This is an abstract class that is used to store various ways of representing "type" information for a bean or property. It is designed to represent classes in one of 4 ways:

  1. Class
  2. DynamicPropertyDescriptor
  3. DynamicBeanInfo
  4. Array of one of the above

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
ObjectTypeInfo()
           
 
Method Summary
 DynamicBeanInfo getBeanInfo()
           
 java.lang.Class getClassInfo()
           
 ObjectTypeInfo getComponentInfo()
           
 DynamicPropertyDescriptor getPropertyDescriptor()
           
 boolean isArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

ObjectTypeInfo

public ObjectTypeInfo()
Method Detail

isArray

public boolean isArray()
Returns:
true if this represents an array

getClassInfo

public java.lang.Class getClassInfo()
Returns:
the class represented by this type or null if the type is represented by a BeanInfo.

getBeanInfo

public DynamicBeanInfo getBeanInfo()
Returns:
the DynamicBeanInfo associated with this type or null if the type is a class, array, or property.

getPropertyDescriptor

public DynamicPropertyDescriptor getPropertyDescriptor()
Returns:
the DynamicPropertyDescriptor associated with this type or null if the type is a class, bean, or array.

getComponentInfo

public ObjectTypeInfo getComponentInfo()
Returns:
the component type of the array represented by this type or null if this type is not an array.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object