|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.pf.pax.BaseXMLTagInterpreter
org.pf.pax.XMLWriteInterpreter
public class XMLWriteInterpreter
The instances of this class are responsible for writing the tag's name, attributes and contents to the given MarkupWriter.
| Constructor Summary | |
|---|---|
XMLWriteInterpreter(java.lang.String name,
MarkupWriter writer)
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
void |
characterData(java.lang.String data)
This method is called whenever character data is received from the parser. |
java.lang.Object |
getResult()
Returns the result object, created by this interpreter from the XML data . |
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 interpretation of a sub tag. |
void |
start(java.lang.String elementName,
org.xml.sax.Attributes attributes)
Starts the work of the receiver the first time. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
A new sub tag was found. |
| Methods inherited from class org.pf.pax.BaseXMLTagInterpreter |
|---|
characters, endElement, invalidSubTagError, requiredAttributeError, setController |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
| Constructor Detail |
|---|
public XMLWriteInterpreter(java.lang.String name,
MarkupWriter writer)
| Method Detail |
|---|
public java.lang.String getTagName()
BaseXMLTagInterpreter
getTagName in interface XMLTagInterpretergetTagName in class BaseXMLTagInterpreter
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
BaseXMLTagInterpreter
startElement in interface org.xml.sax.ContentHandlerstartElement in class BaseXMLTagInterpreterorg.xml.sax.SAXExceptionBaseXMLTagInterpreter.restart(String,Object),
ContentHandler.startElement(String,String,String,Attributes)
public void start(java.lang.String elementName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
BaseXMLTagInterpreter
start in interface XMLTagInterpreterstart in class BaseXMLTagInterpreterelementName - 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.XMLTagInterpreter.getTagName()
public void restart(java.lang.String subTagName,
java.lang.Object subResult)
throws org.xml.sax.SAXException
BaseXMLTagInterpreter
restart in interface XMLTagInterpreterrestart in class BaseXMLTagInterpretersubTagName - The name of the sub tag that was completedsubResult - The resulting object build from the sub tag.
org.xml.sax.SAXException - If the subtag is not allowed here.public java.lang.Object getResult()
getResult in class BaseXMLTagInterpreterpublic void characterData(java.lang.String data)
characterData in class BaseXMLTagInterpreterdata - The data received from the parser.ContentHandler.characters(char[],int,int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||