| org.apache.commons.beanutils.DynaClass
All known Subclasses: org.apache.commons.beanutils.ResultSetDynaClass, org.apache.commons.beanutils.BasicDynaClass, org.apache.commons.beanutils.RowSetDynaClass, org.apache.commons.beanutils.JDBCDynaClass, org.apache.commons.beanutils.WrapDynaClass,
DynaClass | public interface DynaClass (Code) | | A DynaClass is a simulation of the functionality of
java.lang.Class for classes implementing the
DynaBean interface. DynaBean instances that share the same
DynaClass all have the same set of available properties, along with any
associated data types, read-only states, and write-only states.
author: Craig McClanahan author: Michael Smith author: Paulo Gaspar version: $Revision: 555824 $ $Date: 2007-07-13 01:27:15 +0100 (Fri, 13 Jul 2007) $ |
Method Summary | |
public DynaProperty[] | getDynaProperties() Return an array of ProperyDescriptors for the properties
currently defined in this DynaClass. | public DynaProperty | getDynaProperty(String name) Return a property descriptor for the specified property, if it exists;
otherwise, return null . | public String | getName() Return the name of this DynaClass (analogous to the
getName() method of java.lang.Class DynaClass implementation class to support
different dynamic classes, with different sets of properties. | public DynaBean | newInstance() Instantiate and return a new DynaBean instance, associated
with this DynaClass. |
getDynaProperties | public DynaProperty[] getDynaProperties()(Code) | | Return an array of ProperyDescriptors for the properties
currently defined in this DynaClass. If no properties are defined, a
zero-length array will be returned.
FIXME - Should we really be implementing
getBeanInfo() instead, which returns property descriptors
and a bunch of other stuff?
the set of properties for this DynaClass |
getDynaProperty | public DynaProperty getDynaProperty(String name)(Code) | | Return a property descriptor for the specified property, if it exists;
otherwise, return null .
Parameters: name - Name of the dynamic property for which a descriptoris requested The descriptor for the specified property exception: IllegalArgumentException - if no property name is specified |
getName | public String getName()(Code) | | Return the name of this DynaClass (analogous to the
getName() method of java.lang.Class DynaClass implementation class to support
different dynamic classes, with different sets of properties.
the name of the DynaClass |
|
|