public class ElementRule extends RuleSupport
ElementRule the digester Rule for parsing
the <element> elements.
| Modifier and Type | Field and Description |
|---|---|
private Class |
beanClass
Class for which the .bewixt file is being digested
|
private ClassLoader |
classLoader
Classloader used to load classes by name
|
private static Log |
log
Logger
|
digester, namespaceURI| Constructor and Description |
|---|
ElementRule()
Base constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(Attributes attributes)
Process the beginning of this element.
|
protected void |
configureDescriptor(ElementDescriptor elementDescriptor)
Set the Expression and Updater from a bean property name
|
void |
end()
Process the end of this element.
|
protected PropertyDescriptor |
getPropertyDescriptor(Class beanClass,
String propertyName)
Returns the property descriptor for the class and property name.
|
protected Class |
getPropertyType(String propertyClassName,
Class beanClass,
String propertyName)
Gets the type of a property
|
getBeanClass, getProcessedPropertyNameSet, getXMLInfoDigester, getXMLIntrospectorbegin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURIprivate static final Log log
private ClassLoader classLoader
private Class beanClass
public void begin(Attributes attributes) throws SAXException
begin in class Ruleattributes - The attribute list of this elementSAXException - when this tag's parent is not either an info or element tagprotected Class getPropertyType(String propertyClassName, Class beanClass, String propertyName)
propertyClassName - class name for property type (may be null)beanClass - class that has propertypropertyName - the name of the property whose type is to be determinedprotected void configureDescriptor(ElementDescriptor elementDescriptor)
elementDescriptor - configure this ElementDescriptorprotected PropertyDescriptor getPropertyDescriptor(Class beanClass, String propertyName)
beanClass - descriptor for property in this classpropertyName - descriptor for property with this name