org.apache.commons.betwixt.digester
Class AttributeRule
java.lang.Object
|
+--org.apache.commons.digester.Rule
|
+--org.apache.commons.betwixt.digester.RuleSupport
|
+--org.apache.commons.betwixt.digester.AttributeRule
- public class AttributeRule
- extends RuleSupport
AttributeRule
the digester Rule for parsing the
<attribute> elements.
- Version:
- $Id: AttributeRule.java 156094 2005-03-03 22:27:12Z rdonkin $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.digester.Rule |
digester, namespaceURI |
Method Summary |
void |
begin(java.lang.String name,
java.lang.String namespace,
org.xml.sax.Attributes attributes)
Process the beginning of this element. |
protected void |
configureDescriptor(AttributeDescriptor attributeDescriptor)
Set the Expression and Updater from a bean property name |
void |
end(java.lang.String name,
java.lang.String namespace)
Process the end of this element. |
protected java.lang.Class |
loadClass(java.lang.String name)
Loads a class (using the appropriate classloader) |
Methods inherited from class org.apache.commons.digester.Rule |
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeRule
public AttributeRule()
- Base constructor
begin
public void begin(java.lang.String name,
java.lang.String namespace,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Process the beginning of this element.
- Overrides:
begin
in class org.apache.commons.digester.Rule
- Parameters:
attributes
- The attribute list of this element- Throws:
org.xml.sax.SAXException
- 1. If the attribute tag is not inside an element tag.
2. If the name attribute is not valid XML attribute name.
end
public void end(java.lang.String name,
java.lang.String namespace)
- Process the end of this element.
- Overrides:
end
in class org.apache.commons.digester.Rule
loadClass
protected java.lang.Class loadClass(java.lang.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
configureDescriptor
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
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.