org.oddjob.arooa.beanutils
Class DynaBeanOverview

java.lang.Object
  extended by org.oddjob.arooa.beanutils.DynaBeanOverview
All Implemented Interfaces:
BeanOverview

public class DynaBeanOverview
extends Object
implements BeanOverview

A BeanOverview for a DynaBean.

Author:
rob

Constructor Summary
DynaBeanOverview(org.apache.commons.beanutils.DynaClass dynaClass)
          Constructor.
 
Method Summary
 String[] getProperties()
          The names for all the properties.
 Class<?> getPropertyType(String property)
          Get the property type.
 boolean hasReadableProperty(String property)
          Is there a readable property of the given name.
 boolean hasWriteableProperty(String property)
          Is there a writable property of the given name.
 boolean isIndexed(String property)
          Is the property indexed.
 boolean isMapped(String property)
          Is the property mapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynaBeanOverview

public DynaBeanOverview(org.apache.commons.beanutils.DynaClass dynaClass)
Constructor.

Parameters:
dynaClass -
Method Detail

getProperties

public String[] getProperties()
Description copied from interface: BeanOverview
The names for all the properties.

Specified by:
getProperties in interface BeanOverview
Returns:
An array of names.

getPropertyType

public Class<?> getPropertyType(String property)
                         throws ArooaNoPropertyException
Description copied from interface: BeanOverview
Get the property type.

Specified by:
getPropertyType in interface BeanOverview
Parameters:
property - The property name.
Returns:
The class of the property.
Throws:
ArooaNoPropertyException

hasReadableProperty

public boolean hasReadableProperty(String property)
Description copied from interface: BeanOverview
Is there a readable property of the given name.

Specified by:
hasReadableProperty in interface BeanOverview
Parameters:
property - The name.
Returns:
true/false

hasWriteableProperty

public boolean hasWriteableProperty(String property)
Description copied from interface: BeanOverview
Is there a writable property of the given name.

Specified by:
hasWriteableProperty in interface BeanOverview
Parameters:
property - The name.
Returns:
true/false

isIndexed

public boolean isIndexed(String property)
                  throws ArooaNoPropertyException
Description copied from interface: BeanOverview
Is the property indexed.

Specified by:
isIndexed in interface BeanOverview
Parameters:
property - The property name.
Returns:
true/false.
Throws:
ArooaNoPropertyException

isMapped

public boolean isMapped(String property)
                 throws ArooaNoPropertyException
Description copied from interface: BeanOverview
Is the property mapped.

Specified by:
isMapped in interface BeanOverview
Parameters:
property - The property name.
Returns:
true/false.
Throws:
ArooaNoPropertyException