public class

ElementRule

extends MappedPropertyRule
java.lang.Object
   ↳ org.apache.commons.digester.Rule
     ↳ org.apache.commons.betwixt.digester.RuleSupport
       ↳ org.apache.commons.betwixt.digester.MappedPropertyRule
         ↳ org.apache.commons.betwixt.digester.ElementRule

Class Overview

ElementRule the digester Rule for parsing the <element> elements.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.digester.Rule
Public Constructors
ElementRule()
Base constructor
Public Methods
void begin(String name, String namespace, Attributes attributes)
Process the beginning of this element.
void end(String name, String namespace)
Process the end of this element.
final static void setLog(Log newLog)
Sets the log for this class
Protected Methods
void configureDescriptor(ElementDescriptor elementDescriptor)
Sets the Expression and Updater from a bean property name Uses the default updater (from the standard java bean property).
void configureDescriptor(ElementDescriptor elementDescriptor, String updateMethodName)
This method is deprecated. now calls #configureDescriptor(ElementDescriptor, String, boolean) which allow accessibility to be forced. The subclassing API was not really considered carefully when this class was created. If anyone subclasses this method please contact the mailing list and suitable hooks will be placed into the code.
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.digester.MappedPropertyRule
From class org.apache.commons.betwixt.digester.RuleSupport
From class org.apache.commons.digester.Rule
From class java.lang.Object

Public Constructors

public ElementRule ()

Base constructor

Public Methods

public void begin (String name, String namespace, Attributes attributes)

Process the beginning of this element.

Parameters
attributes The attribute list of this element
Throws
SAXException 1. If this tag's parent is not either an info or element tag. 2. If the name attribute is not valid XML element name. 3. If the name attribute is not present 4. If the class attribute is not a loadable (fully qualified) class name

public void end (String name, String namespace)

Process the end of this element.

public static final void setLog (Log newLog)

Sets the log for this class

Parameters
newLog the new Log implementation for this class to use

Protected Methods

protected void configureDescriptor (ElementDescriptor elementDescriptor)

Sets the Expression and Updater from a bean property name Uses the default updater (from the standard java bean property).

Parameters
elementDescriptor configure this ElementDescriptor

protected void configureDescriptor (ElementDescriptor elementDescriptor, String updateMethodName)

This method is deprecated.
now calls #configureDescriptor(ElementDescriptor, String, boolean) which allow accessibility to be forced. The subclassing API was not really considered carefully when this class was created. If anyone subclasses this method please contact the mailing list and suitable hooks will be placed into the code.

Sets the Expression and Updater from a bean property name Allows a custom updater to be passed in.

Parameters
elementDescriptor configure this ElementDescriptor
updateMethodName custom update method. If null, then use standard