org.jboss.portal.faces.el.dynamic
Class SimpleDynamicBean

java.lang.Object
  extended by org.jboss.portal.faces.el.dynamic.SimpleDynamicBean
All Implemented Interfaces:
DynamicBean

public abstract class SimpleDynamicBean
extends java.lang.Object
implements DynamicBean

Version:
$Revision: 8784 $
Author:
Julien Viet

Constructor Summary
SimpleDynamicBean()
           
 
Method Summary
protected abstract  DynamicProperty getProperty(java.lang.Object propertyName)
          Return a dynamic property or null if not found.
 java.lang.Class getType(java.lang.Object propertyName)
          Return the type of the specified property.
 PropertyValue getValue(java.lang.Object propertyName)
          Return the value of the specified property.
 boolean setValue(java.lang.Object propertyName, java.lang.Object value)
          Set the value of the specified property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDynamicBean

public SimpleDynamicBean()
Method Detail

getType

public java.lang.Class getType(java.lang.Object propertyName)
                        throws java.lang.IllegalArgumentException
Description copied from interface: DynamicBean
Return the type of the specified property.

Specified by:
getType in interface DynamicBean
Parameters:
propertyName - the property name
Returns:
the type of the specified property or null
Throws:
java.lang.IllegalArgumentException - if the property name is null

getValue

public PropertyValue getValue(java.lang.Object propertyName)
                       throws java.lang.IllegalArgumentException
Description copied from interface: DynamicBean
Return the value of the specified property.

Specified by:
getValue in interface DynamicBean
Parameters:
propertyName - the property name
Returns:
the property value
Throws:
java.lang.IllegalArgumentException - if the property is null

setValue

public boolean setValue(java.lang.Object propertyName,
                        java.lang.Object value)
                 throws java.lang.IllegalArgumentException
Description copied from interface: DynamicBean
Set the value of the specified property.

Specified by:
setValue in interface DynamicBean
Parameters:
propertyName - the property name
value - the new property value
Returns:
true if the property was succesfully set
Throws:
java.lang.IllegalArgumentException - if the property name is null

getProperty

protected abstract DynamicProperty getProperty(java.lang.Object propertyName)
Return a dynamic property or null if not found.

Parameters:
propertyName - the property name
Returns:
a dynamic property