fr.umlv.tatoo.cc.common.xml
Class AbstractXMLDigester.DefaultSAXlet

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.xml.AbstractXMLDigester.DefaultSAXlet
All Implemented Interfaces:
AbstractXMLDigester.SAXlet
Enclosing class:
AbstractXMLDigester

public static class AbstractXMLDigester.DefaultSAXlet
extends Object
implements AbstractXMLDigester.SAXlet

Default AbstractXMLDigester.SAXlet implementation that can be used to recognized one XML element. By default, this implementation does nothing.


Constructor Summary
AbstractXMLDigester.DefaultSAXlet(String name)
          Creates a saxlet that recognized the element named name.
 
Method Summary
 void end(String element, Attributes atts)
          Called by the digester when the end tag of an element is found.
 String getName()
          Returns the name of the recognized element.
 void register(Map<String,AbstractXMLDigester.SAXlet> map)
          Register all tags processed by the saxlets.
 void start(String element, Attributes atts)
          Called by the digester when the start tag of an element is found.
 void unregister(Map<String,AbstractXMLDigester.SAXlet> map)
          Unregister all tags processed by the saxlets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXMLDigester.DefaultSAXlet

public AbstractXMLDigester.DefaultSAXlet(String name)
Creates a saxlet that recognized the element named name.

Parameters:
name - the name of the recognized element.
Method Detail

register

public void register(Map<String,AbstractXMLDigester.SAXlet> map)
Description copied from interface: AbstractXMLDigester.SAXlet
Register all tags processed by the saxlets.

Specified by:
register in interface AbstractXMLDigester.SAXlet
Parameters:
map - the map used by the digester to associate a saxlet to an XML element.
See Also:
AbstractXMLDigester.SAXlet.unregister(Map)

unregister

public void unregister(Map<String,AbstractXMLDigester.SAXlet> map)
Description copied from interface: AbstractXMLDigester.SAXlet
Unregister all tags processed by the saxlets.

Specified by:
unregister in interface AbstractXMLDigester.SAXlet
Parameters:
map - the map used by the digester to associate a saxlet to an XML element.
See Also:
AbstractXMLDigester.SAXlet.register(Map)

start

public void start(String element,
                  Attributes atts)
           throws Exception
Description copied from interface: AbstractXMLDigester.SAXlet
Called by the digester when the start tag of an element is found.

Specified by:
start in interface AbstractXMLDigester.SAXlet
Parameters:
element - the name of the lement.
atts - the element attribute. This parameter must be escape from the stack.
Throws:
Exception - raised during the processing of the element.
See Also:
AbstractXMLDigester.SAXlet.end(String, Attributes), AbstractXMLDigester.SAXlet.register(Map)

end

public void end(String element,
                Attributes atts)
         throws Exception
Description copied from interface: AbstractXMLDigester.SAXlet
Called by the digester when the end tag of an element is found.

Specified by:
end in interface AbstractXMLDigester.SAXlet
Parameters:
element - the name of the element.
atts - the element attribute. This parameter must be escape from the stack.
Throws:
Exception - raised during the processing of the element.
See Also:
AbstractXMLDigester.SAXlet.start(String, Attributes), AbstractXMLDigester.SAXlet.register(Map)

getName

public String getName()
Returns the name of the recognized element.

Returns:
the name of the recognized element.