public interface XMLTagInterpreter
extends org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
ContentHandler
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTagName()
Returns the name of the tag, the interpreter is responsible for.
|
void |
restart(java.lang.String subTagName,
java.lang.Object subResult)
Restarts the receiver after returning from interpretation of a sub tag.
|
void |
setController(XMLTagInterpreterController controller)
Sets the controller, the interpreter has to return control to,
when finished with interpretation of its corresonding tag contents.
|
void |
start(java.lang.String elementName,
org.xml.sax.Attributes attributes)
Starts the work of the receiver for the first time.
|
java.lang.String getTagName()
void setController(XMLTagInterpreterController controller)
controller
- The controller of the XML interpretation process.void start(java.lang.String elementName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
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.getTagName()
void restart(java.lang.String subTagName, java.lang.Object subResult) throws org.xml.sax.SAXException
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.