org.apache.shale.tiger.managed.rules
Class MapEntryRule

java.lang.Object
  extended by org.apache.commons.digester.Rule
      extended by org.apache.shale.tiger.managed.rules.MapEntryRule

public class MapEntryRule
extends Rule

Digester rule for processing a <map-entry> element.


Field Summary
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
MapEntryRule()
          Creates a new instance of MapEntryRule.
 
Method Summary
 void begin(String namespace, String name, Attributes attributes)
          Create a new MapEntryConfig and push it on to the Digester stack.
 void body(String namespace, String name)
          No body processing for this element.
 void end(String namespace, String name)
          Pop the MapEntriesConfig instance from the stack, and either add it or merge it with parent information.
 
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
 

Constructor Detail

MapEntryRule

public MapEntryRule()
Creates a new instance of MapEntryRule.

Method Detail

begin

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

Create a new MapEntryConfig and push it on to the Digester stack.

Overrides:
begin in class Rule
Parameters:
namespace - Namespace URI of the matching element
name - Local name of the matching element
attributes - Attribute list of the matching element
Throws:
Exception - if a parsing error occurs

body

public void body(String namespace,
                 String name)
          throws Exception

No body processing for this element.

Parameters:
namespace - Namespace URI of the matching element
name - Local name of the matching element
Throws:
Exception - if a parsing error occurs

end

public void end(String namespace,
                String name)
         throws Exception

Pop the MapEntriesConfig instance from the stack, and either add it or merge it with parent information.

Overrides:
end in class Rule
Parameters:
namespace - Namespace URI of the matching element
name - Local name of the matching element
Throws:
IllegalStateException - if the popped object is not of the correct type
Exception - if a different error occurs


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.