org.apache.commons.beanutils
Interface DynaClass
- MutableDynaClass
- BasicDynaClass, JDBCDynaClass, LazyDynaClass, LazyDynaMap, ResultSetDynaClass, RowSetDynaClass, WrapDynaClass
public interface DynaClass
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.
$Revision: 1.12 $ $Date: 2004/02/28 13:18:33 $- Craig McClanahan
- Michael Smith
- Paulo Gaspar
DynaProperty[] | getDynaProperties() - Return an array of
ProperyDescriptors for the properties
currently defined in this DynaClass.
|
DynaProperty | getDynaProperty(String name) - Return a property descriptor for the specified property, if it exists;
otherwise, return
null .
|
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.
|
DynaBean | newInstance() - Instantiate and return a new DynaBean instance, associated
with this DynaClass.
|
getDynaProperties
public DynaProperty[] getDynaProperties()
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?
getDynaProperty
public DynaProperty getDynaProperty(String name)
Return a property descriptor for the specified property, if it exists;
otherwise, return null
.
name
- Name of the dynamic property for which a descriptor
is requested
getName
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.
newInstance
public DynaBean newInstance()
throws IllegalAccessException,
InstantiationException
Instantiate and return a new DynaBean instance, associated
with this DynaClass.
Copyright (c) 2001-2004 - Apache Software Foundation