atg.droplet
Class BeanObjectTypeInfo

java.lang.Object
  extended by atg.droplet.ObjectTypeInfo
      extended by atg.droplet.BeanObjectTypeInfo
All Implemented Interfaces:
java.io.Serializable

public class BeanObjectTypeInfo
extends ObjectTypeInfo

Represents the type of a component or property as a DynamicBeanInfo with optional augmenting Class, and PropertyDescriptor information as well.

See Also:
DynamicBeanInfo, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
BeanObjectTypeInfo(java.lang.Class pClass, DynamicBeanInfo pBeanInfo, DynamicPropertyDescriptor pPropertyDescriptor)
          Constructs a BeanObjectTypeInfo from a class and a DynamicBeanInfo
BeanObjectTypeInfo(DynamicBeanInfo pBeanInfo)
          Constructs a BeanObjectTypeInfo from a DynamicBeanInfo
 
Method Summary
 DynamicBeanInfo getBeanInfo()
          Returns the BeanInfo for this object.
 java.lang.Class getClassInfo()
           
 ObjectTypeInfo getComponentInfo()
           
 DynamicPropertyDescriptor getPropertyDescriptor()
           
 boolean isArray()
           
 
Methods inherited from class atg.droplet.ObjectTypeInfo
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
Class version string

Constructor Detail

BeanObjectTypeInfo

public BeanObjectTypeInfo(java.lang.Class pClass,
                          DynamicBeanInfo pBeanInfo,
                          DynamicPropertyDescriptor pPropertyDescriptor)
Constructs a BeanObjectTypeInfo from a class and a DynamicBeanInfo


BeanObjectTypeInfo

public BeanObjectTypeInfo(DynamicBeanInfo pBeanInfo)
Constructs a BeanObjectTypeInfo from a DynamicBeanInfo

Method Detail

getBeanInfo

public DynamicBeanInfo getBeanInfo()
Returns the BeanInfo for this object. We'll create it from the class if we don't have a BeanInfo defined explicitly

Overrides:
getBeanInfo in class ObjectTypeInfo
Returns:
the DynamicBeanInfo associated with this type or null if the type is a class, array, or property.

isArray

public boolean isArray()
Overrides:
isArray in class ObjectTypeInfo
Returns:
true if this represents an array

getComponentInfo

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

getClassInfo

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

getPropertyDescriptor

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