org.apache.myfaces.trinidadinternal.share.xml.beans
Class IntrospectionPropertyDef

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.xml.beans.PropertyDef
      extended by org.apache.myfaces.trinidadinternal.share.xml.beans.BasePropertyDef
          extended by org.apache.myfaces.trinidadinternal.share.xml.beans.IntrospectionPropertyDef

public class IntrospectionPropertyDef
extends BasePropertyDef

PropertyDef that uses introspection - specifically, a bean PropertyDescriptor - to define its behavior.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/share/xml/beans/IntrospectionPropertyDef.java#0 $) $Date: 10-nov-2005.18:59:20 $
Author:
The Oracle ADF Faces Team

Constructor Summary
IntrospectionPropertyDef(java.beans.PropertyDescriptor descriptor)
          Creates an IntrospectionPropertyDef.
 
Method Summary
 java.lang.String getName()
          Returns the name of the property definition.
 java.lang.Class<?> getPropertyType()
          Returns the property type to which all non-null values of this property must be assignable.
 java.lang.Object getValue(ParseContext context, java.lang.Object bean)
          Retrieves the value of this property from the bean.
 void setValue(ParseContext context, java.lang.Object bean, java.lang.Object value)
          Stores a value of this property on the bean.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.beans.BasePropertyDef
parseText
 
Methods inherited from class org.apache.myfaces.trinidadinternal.share.xml.beans.PropertyDef
parseText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectionPropertyDef

public IntrospectionPropertyDef(java.beans.PropertyDescriptor descriptor)
Creates an IntrospectionPropertyDef.

Parameters:
descriptor - the PropertyDescriptor defining how the property can be set and retrieved.
Method Detail

getName

public java.lang.String getName()
Returns the name of the property definition.

Specified by:
getName in class PropertyDef

getPropertyType

public java.lang.Class<?> getPropertyType()
Description copied from class: PropertyDef
Returns the property type to which all non-null values of this property must be assignable.

Specified by:
getPropertyType in class PropertyDef
Returns:
the property type

getValue

public java.lang.Object getValue(ParseContext context,
                                 java.lang.Object bean)
Description copied from class: PropertyDef
Retrieves the value of this property from the bean.

Specified by:
getValue in class PropertyDef
Returns:
the value. Will return null if this property can only be set.

setValue

public void setValue(ParseContext context,
                     java.lang.Object bean,
                     java.lang.Object value)
Description copied from class: PropertyDef
Stores a value of this property on the bean.

Specified by:
setValue in class PropertyDef


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.