atg.beans
Class SimpleDynamicBeanInfo

java.lang.Object
  extended by atg.beans.SimpleDynamicBeanInfo
All Implemented Interfaces:
DynamicBeanInfo, java.io.Serializable

public class SimpleDynamicBeanInfo
extends java.lang.Object
implements DynamicBeanInfo, java.io.Serializable

Simple template implementation of DynamicBeanInfo providing no-op values for most of its properties.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
SimpleDynamicBeanInfo()
           
 
Method Summary
 boolean areInstances(DynamicBeanInfo pDynamicBeanInfo)
          Returns true if all objects described by some DynamicBeanInfo are also described by this one.
 DynamicBeanDescriptor getBeanDescriptor()
          Returns the DynamicBeanDescriptor for this DynamicBeanInfo.
 DynamicPropertyDescriptor getPropertyDescriptor(java.lang.String pPropertyName)
          Returns the PropertyDescriptor for the specified property
 DynamicPropertyDescriptor[] getPropertyDescriptors()
          Returns the DynamicPropertyDescriptors for this DynamicBeanInfo.
 java.lang.String[] getPropertyNames()
          Returns the list of the names of the known properties
 boolean hasProperty(java.lang.String pPropertyName)
          Returns true if this DynamicBeanInfo supports the given property
 boolean isInstance(java.lang.Object pObj)
          Returns true if the given object belongs to the set of dynamic beans described by this DynamicBeanInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

SimpleDynamicBeanInfo

public SimpleDynamicBeanInfo()
Method Detail

getBeanDescriptor

public DynamicBeanDescriptor getBeanDescriptor()
Returns the DynamicBeanDescriptor for this DynamicBeanInfo.

Specified by:
getBeanDescriptor in interface DynamicBeanInfo

getPropertyDescriptors

public DynamicPropertyDescriptor[] getPropertyDescriptors()
Returns the DynamicPropertyDescriptors for this DynamicBeanInfo.

Specified by:
getPropertyDescriptors in interface DynamicBeanInfo

hasProperty

public boolean hasProperty(java.lang.String pPropertyName)
Returns true if this DynamicBeanInfo supports the given property

Specified by:
hasProperty in interface DynamicBeanInfo
Parameters:
pPropertyName - the name of the property

getPropertyNames

public java.lang.String[] getPropertyNames()
Returns the list of the names of the known properties

Specified by:
getPropertyNames in interface DynamicBeanInfo

getPropertyDescriptor

public DynamicPropertyDescriptor getPropertyDescriptor(java.lang.String pPropertyName)
Returns the PropertyDescriptor for the specified property

Specified by:
getPropertyDescriptor in interface DynamicBeanInfo
Parameters:
pPropertyName - the name of the property
Returns:
null if the DynamicBeanInfo has no such property.

isInstance

public boolean isInstance(java.lang.Object pObj)
Returns true if the given object belongs to the set of dynamic beans described by this DynamicBeanInfo. The definition of this set is variable and is determined by the DynamicBeanInfo; however, all objects described by the same DynamicBeanInfo will generally have the same set of dynamic properties with the same behavior and semantics, and the same meta-behavior such as readability, writability, etc.

Specified by:
isInstance in interface DynamicBeanInfo

areInstances

public boolean areInstances(DynamicBeanInfo pDynamicBeanInfo)
Returns true if all objects described by some DynamicBeanInfo are also described by this one.

Specified by:
areInstances in interface DynamicBeanInfo