| java.lang.Object org.apache.commons.betwixt.BeanProperty
BeanProperty | public class BeanProperty (Code) | | Betwixt-centric view of a bean (or pseudo-bean) property.
This object decouples the way that the (possibly pseudo) property introspection
is performed from the results of that introspection.
author: Robert Burrell Donkin since: 0.5 |
BeanProperty | public BeanProperty(String propertyName, Class propertyType, Expression propertyExpression, Updater propertyUpdater)(Code) | | Construct a BeanProperty.
Parameters: propertyName - not null Parameters: propertyType - not null Parameters: propertyExpression - the Expression used to read the property, null if the property is not readable Parameters: propertyUpdater - the Updater used to write the property, null if the property is not writable |
BeanProperty | public BeanProperty(PropertyDescriptor descriptor)(Code) | | Constructs a BeanProperty from a PropertyDescriptor .
Parameters: descriptor - not null |
BeanProperty | public BeanProperty(DynaProperty dynaProperty)(Code) | | Constructs a BeanProperty from a DynaProperty
Parameters: dynaProperty - not null |
createXMLDescriptor | public Descriptor createXMLDescriptor(IntrospectionConfiguration configuration)(Code) | | Create a XML descriptor from a bean one.
Go through and work out whether it's a loop property, a primitive or a standard.
The class property is ignored.
Parameters: configuration - IntrospectionConfiguration , not null a correctly configured NodeDescriptor for the property |
getPropertyExpression | public Expression getPropertyExpression()(Code) | | Gets the expression used to read this property.
the expression to be used to read this property or null if this property is not readable. |
getPropertyName | public String getPropertyName()(Code) | | Gets the bean name for this property.
Betwixt will map this to an xml name.
the bean name for this property, not null |
getPropertyType | public Class getPropertyType()(Code) | | Gets the type of this property.
the property type, not null |
getPropertyUpdater | public Updater getPropertyUpdater()(Code) | | Gets the updater used to write to this properyty.
the Updater to the used to write to this propertyor null if this property is not writable. |
|
|