oracle.cabo.share.xml.beans
Class IntrospectionPropertyDef
java.lang.Object
|
+--oracle.cabo.share.xml.beans.PropertyDef
|
+--oracle.cabo.share.xml.beans.BasePropertyDef
|
+--oracle.cabo.share.xml.beans.IntrospectionPropertyDef
- public class IntrospectionPropertyDef
- extends BasePropertyDef
PropertyDef that uses introspection - specifically,
a bean PropertyDescriptor - to define its behavior.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntrospectionPropertyDef
public IntrospectionPropertyDef(java.beans.PropertyDescriptor descriptor)
- Creates an IntrospectionPropertyDef.
- Parameters:
descriptor
- the PropertyDescriptor defining how
the property can be set and retrieved.
getName
public java.lang.String getName()
- Returns the name of the property definition.
- Overrides:
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.
- Overrides:
getPropertyType
in class PropertyDef
- Following copied from class:
oracle.cabo.share.xml.beans.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.
- Overrides:
getValue
in class PropertyDef
- Following copied from class:
oracle.cabo.share.xml.beans.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.
- Overrides:
setValue
in class PropertyDef