|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.commons.betwixt.io.AbstractBeanWriter
|
+--org.apache.commons.betwixt.io.SAXBeanWriter
The SAXBeanwriter will send events to a ContentHandler
| Constructor Summary | |
SAXBeanWriter(org.xml.sax.ContentHandler contentHandler)
Constructor sets writer used for output. |
|
| Method Summary | |
void |
end()
This method will announce the end of the document to the contenthandler. |
protected void |
expressAttribute(java.lang.String qualifiedName,
java.lang.String value)
Express an attribute |
protected void |
expressBodyText(java.lang.String text)
Express body text |
protected void |
expressElementEnd()
Express an empty element end |
protected void |
expressElementEnd(java.lang.String qualifiedName)
Express an element end tag |
protected void |
expressElementStart(java.lang.String qualifiedName)
Express an element tag start using given qualified name |
protected void |
expressTagClose()
Element end |
org.apache.commons.logging.Log |
getLog()
Set the log implementation used. |
void |
setLog(org.apache.commons.logging.Log log)
Set the log implementation used. |
void |
start()
This will announce the start of the document to the contenthandler. |
| Methods inherited from class org.apache.commons.betwixt.io.AbstractBeanWriter |
getAbstractBeanWriterLog, getIdGenerator, getIndentLevel, getWriteIDs, getXMLIntrospector, popBean, pushBean, setAbstractBeanWriterLog, setIdGenerator, setWriteIDs, setXMLIntrospector, write, write, write, write, writeAttribute, writeAttributes, writeContent, writeIDREFElement, writeIndent, writePrintln, writeRestOfElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SAXBeanWriter(org.xml.sax.ContentHandler contentHandler)
Constructor sets writer used for output.
contentHandler - feed events to this content handler| Method Detail |
public org.apache.commons.logging.Log getLog()
Set the log implementation used.
Log implementation that this class logs topublic void setLog(org.apache.commons.logging.Log log)
Set the log implementation used.
log - Log implementation to use
protected void expressElementStart(java.lang.String qualifiedName)
throws org.xml.sax.SAXException
expressElementStart in class AbstractBeanWriterqualifiedName - the fully qualified element nameorg.xml.sax.SAXException - if the ContentHandler has a problemprotected void expressTagClose()
expressTagClose in class AbstractBeanWriterorg.apache.commons.betwixt.io.AbstractBeanWriterjava.io.IOException - if an IO problem occurs during writingorg.xml.sax.SAXException - if an SAX problem occurs during writing
protected void expressElementEnd(java.lang.String qualifiedName)
throws org.xml.sax.SAXException
expressElementEnd in class AbstractBeanWriterqualifiedName - the fully qualified name of the elementorg.xml.sax.SAXException - if the ContentHandler has a problem
protected void expressElementEnd()
throws org.xml.sax.SAXException
expressElementEnd in class AbstractBeanWriterorg.xml.sax.SAXException - if the ContentHandler has a problem
protected void expressBodyText(java.lang.String text)
throws org.xml.sax.SAXException
expressBodyText in class AbstractBeanWritertext - the element body textorg.xml.sax.SAXException - if the ContentHandler has a problem
protected void expressAttribute(java.lang.String qualifiedName,
java.lang.String value)
throws org.xml.sax.SAXException
expressAttribute in class AbstractBeanWriterqualifiedName - the fully qualified attribute namevalue - the attribute valueorg.xml.sax.SAXException - if the ContentHandler has a problem
public void start()
throws org.xml.sax.SAXException
start in class AbstractBeanWriterAbstractBeanWriter.end()
public void end()
throws org.xml.sax.SAXException
end in class AbstractBeanWriterAbstractBeanWriter.start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||