org.apache.commons.betwixt.io
Class BeanRuleSet.ActionMappingRule

java.lang.Object
  extended byorg.apache.commons.digester.Rule
      extended byorg.apache.commons.betwixt.io.BeanRuleSet.ActionMappingRule
Enclosing class:
BeanRuleSet

private final class BeanRuleSet.ActionMappingRule
extends org.apache.commons.digester.Rule

Single rule that is used to map all elements.

Author:
Jakarta Commons Team

Field Summary
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
private BeanRuleSet.ActionMappingRule()
           
 
Method Summary
 void begin(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes)
          Processes the start of a new Element.
 void body(java.lang.String namespace, java.lang.String name, java.lang.String text)
          Processes the body text for the current element.
 void end(java.lang.String namespace, java.lang.String name)
          Process the end of this element.
 void finish()
          Tidy up.
private  MappingAction nextAction(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes, ReadContext context)
          Gets the next action to be executed
 
Methods inherited from class org.apache.commons.digester.Rule
begin, body, end, getDigester, getNamespaceURI, setDigester, setNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanRuleSet.ActionMappingRule

private BeanRuleSet.ActionMappingRule()
Method Detail

begin

public void begin(java.lang.String namespace,
                  java.lang.String name,
                  org.xml.sax.Attributes attributes)
           throws java.lang.Exception
Processes the start of a new Element. The actual processing is delegated to MappingAction's.

Throws:
java.lang.Exception
See Also:
Rule.begin(String, String, Attributes)

nextAction

private MappingAction nextAction(java.lang.String namespace,
                                 java.lang.String name,
                                 org.xml.sax.Attributes attributes,
                                 ReadContext context)
                          throws java.lang.Exception
Gets the next action to be executed

Parameters:
namespace - the element's namespace, not null
name - the element name, not null
attributes - the element's attributes, not null
context - the ReadContext against which the xml is being mapped.
Returns:
the initialized MappingAction, not null
Throws:
java.lang.Exception

body

public void body(java.lang.String namespace,
                 java.lang.String name,
                 java.lang.String text)
          throws java.lang.Exception
Processes the body text for the current element. This is delegated to the current MappingAction.

Throws:
java.lang.Exception
See Also:
Rule.body(String, String, String)

end

public void end(java.lang.String namespace,
                java.lang.String name)
         throws java.lang.Exception
Process the end of this element. This is delegated to the current MappingAction.

Throws:
java.lang.Exception

finish

public void finish()
Tidy up.