public interface XMLTagInterpreter
extends org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
This defines the API for a tag interpreter class in
the PAX framework.
The concept is based on the idea, that there is a corresponding
tag interpreter object (implementing this interface) to each different tag
of an XML document.
Starts the work of the receiver for the first time.
That means, when the parser reached the start tag corresponding to
this tag interpreter. Here the business object that results from the
tag's data contents should be created and initialized with the given
elementName - The name of the found element. Must be the same as this.getTagName().
attributes - The attributes defined in the start tag.
org.xml.sax.SAXException - If the element name is wrong or any attribute is invalid.
Restarts the receiver after returning from interpretation of a sub tag.
By receiving the last subtag name and the resulting object of its
interpretaion it is possible to plug this result-object into the right
slot of the receiver's result-object.
subTagName - The name of the sub element to which the result belongs.
subResult - The object created from the subtag's contents.
org.xml.sax.SAXException - If the subtag is not allowed here.