public abstract class

MappedPropertyRule

extends RuleSupport
java.lang.Object
   ↳ org.apache.commons.digester.Rule
     ↳ org.apache.commons.betwixt.digester.RuleSupport
       ↳ org.apache.commons.betwixt.digester.MappedPropertyRule
Known Direct Subclasses

Class Overview

Factors out common code used by Betwixt rules that access bean properties. Maybe a lot of this should be moved into BeanUtils.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.digester.Rule
Public Constructors
MappedPropertyRule()
Base constructor
Protected Methods
PropertyDescriptor getPropertyDescriptor(Class beanClass, String propertyName)
Returns the property descriptor for the class and property name.
Class getPropertyType(String propertyClassName, Class beanClass, String propertyName)
Gets the type of a property
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.digester.RuleSupport
From class org.apache.commons.digester.Rule
From class java.lang.Object

Public Constructors

public MappedPropertyRule ()

Base constructor

Protected Methods

protected PropertyDescriptor getPropertyDescriptor (Class beanClass, String propertyName)

Returns the property descriptor for the class and property name. Note that some caching could be used to improve performance of this method. Or this method could be added to PropertyUtils.

Parameters
beanClass descriptor for property in this class
propertyName descriptor for property with this name
Returns
  • property descriptor for the named property in the given class

protected Class getPropertyType (String propertyClassName, Class beanClass, String propertyName)

Gets the type of a property

Parameters
propertyClassName class name for property type (may be null)
beanClass class that has property
propertyName the name of the property whose type is to be determined
Returns
  • property type