org.apache.commons.betwixt.digester
Class ElementRule
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
- public class ElementRule
- extends MappedPropertyRule
ElementRule
the digester Rule for parsing
the <element> elements.
- 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(ElementDescriptor elementDescriptor)
Sets the Expression and Updater from a bean property name
Uses the default updater (from the standard java bean property). |
protected void |
configureDescriptor(ElementDescriptor elementDescriptor,
java.lang.String updateMethodName)
Sets the Expression and Updater from a bean property name
Allows a custom updater to be passed in. |
void |
end(java.lang.String name,
java.lang.String namespace)
Process the end of this element. |
static void |
setLog(org.apache.commons.logging.Log newLog)
Sets the log for this class |
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 |
ElementRule
public ElementRule()
- Base constructor
setLog
public static final void setLog(org.apache.commons.logging.Log newLog)
- Sets the log for this class
- Parameters:
newLog
- the new Log implementation for this class to use- Since:
- 0.5
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 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
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
configureDescriptor
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
- Since:
- 0.5
configureDescriptor
protected void configureDescriptor(ElementDescriptor elementDescriptor,
java.lang.String updateMethodName)
- 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- Since:
- 0.5
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.