org.jboss.portal.faces.el.decorator
Class AbstractPropertyDecorator

java.lang.Object
  extended by org.jboss.portal.faces.el.decorator.AbstractPropertyDecorator
All Implemented Interfaces:
PropertyDecorator

public abstract class AbstractPropertyDecorator
extends java.lang.Object
implements PropertyDecorator

Version:
$Revision: 8784 $
Author:
Julien Viet

Constructor Summary
AbstractPropertyDecorator(java.lang.Class type)
           
 
Method Summary
 java.lang.Class getType(java.lang.Object bean)
          Return the type of the specified property.
 boolean setValue(java.lang.Object bean, 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
 
Methods inherited from interface org.jboss.portal.faces.el.decorator.PropertyDecorator
getValue
 

Constructor Detail

AbstractPropertyDecorator

public AbstractPropertyDecorator(java.lang.Class type)
Method Detail

getType

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

Specified by:
getType in interface PropertyDecorator
Parameters:
bean - the decorated bean
Returns:
the type of the specified property or null
Throws:
java.lang.IllegalArgumentException - if the bean is null

setValue

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

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