public class

AttributeRule

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

Class Overview

AttributeRule the digester Rule for parsing the <attribute> elements.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.digester.Rule
Public Constructors
AttributeRule()
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.
Protected Methods
void configureDescriptor(AttributeDescriptor attributeDescriptor)
Set the Expression and Updater from a bean property name
Class loadClass(String name)
Loads a class (using the appropriate classloader)
[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 AttributeRule ()

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 the attribute tag is not inside an element tag. 2. If the name attribute is not valid XML attribute name.

public void end (String name, String namespace)

Process the end of this element.

Protected Methods

protected void configureDescriptor (AttributeDescriptor attributeDescriptor)

Set the Expression and Updater from a bean property name

Parameters
attributeDescriptor configure this AttributeDescriptor from the property with a matching name in the bean class

protected Class loadClass (String name)

Loads a class (using the appropriate classloader)

Parameters
name the name of the class to load
Returns
  • the class instance loaded by the appropriate classloader