|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLTagInterpreter
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.
ContentHandler| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||