public class BeanProperty extends Object
Constructor and Description |
---|
BeanProperty(org.apache.commons.beanutils.DynaProperty dynaProperty)
Constructs a BeanProperty from a
DynaProperty |
BeanProperty(PropertyDescriptor descriptor)
Constructs a BeanProperty from a
PropertyDescriptor . |
BeanProperty(String propertyName,
Class propertyType,
Expression propertyExpression,
Updater propertyUpdater)
Construct a BeanProperty.
|
Modifier and Type | Method and Description |
---|---|
Descriptor |
createXMLDescriptor(IntrospectionConfiguration configuration)
Create a XML descriptor from a bean one.
|
Expression |
getPropertyExpression()
Gets the expression used to read this property.
|
String |
getPropertyName()
Gets the bean name for this property.
|
Class |
getPropertyType()
Gets the type of this property.
|
Updater |
getPropertyUpdater()
Gets the updater used to write to this properyty.
|
public BeanProperty(String propertyName, Class propertyType, Expression propertyExpression, Updater propertyUpdater)
propertyName
- not nullpropertyType
- not nullpropertyExpression
- the Expression used to read the property,
null if the property is not readablepropertyUpdater
- the Updater used to write the property,
null if the property is not writablepublic BeanProperty(PropertyDescriptor descriptor)
PropertyDescriptor
.descriptor
- not nullpublic BeanProperty(org.apache.commons.beanutils.DynaProperty dynaProperty)
DynaProperty
dynaProperty
- not nullpublic String getPropertyName()
public Class getPropertyType()
public Expression getPropertyExpression()
public Updater getPropertyUpdater()
public Descriptor createXMLDescriptor(IntrospectionConfiguration configuration)
configuration
- IntrospectionConfiguration
, not nullNodeDescriptor
for the propertyCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.