atg.beans
Interface DynamicBeanInfo

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
RepositoryItemDescriptor, SecuredRepositoryItemDescriptor
All Known Implementing Classes:
GSAItemDescriptor, ItemDescriptorImpl, SimpleDynamicBeanInfo

public interface DynamicBeanInfo
extends java.io.Serializable

This interface is used to describe a set of dynamic properties that occur together and have consistent behavior and semantics, analogous to a Class.


Field Summary
static java.lang.String CLASS_VERSION
           
 
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.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Method Detail

getBeanDescriptor

DynamicBeanDescriptor getBeanDescriptor()
Returns the DynamicBeanDescriptor for this DynamicBeanInfo.


getPropertyDescriptors

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


hasProperty

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

Parameters:
pPropertyName - the name of the property

getPropertyNames

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


getPropertyDescriptor

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

Parameters:
pPropertyName - the name of the property
Returns:
null if the DynamicBeanInfo has no such property.

isInstance

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.


areInstances

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