|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.xml.SAXOutputter
Output an object, typically a bean, as XML SAX events. An instance of this class can be re-used if required.
Constructor Summary | |
SAXOutputter()
Constructor |
|
SAXOutputter(XMLMetaData metaData)
Constructor |
Method Summary | |
XMLMetaData |
getMetaData()
Gets the metadata for XML output. |
void |
output(java.lang.Object bean,
org.xml.sax.ContentHandler handler)
Output a Bean as SAX events. |
void |
output(java.lang.Object bean,
java.lang.String rootName,
org.xml.sax.ContentHandler handler)
Output a Bean as SAX events specifying the name for the root element. |
protected void |
outputBean(org.xml.sax.ContentHandler handler,
XMLConvertorContext context,
java.lang.Object bean,
XMLData data)
Outputs the whole of a single object. |
protected void |
outputChildren(org.xml.sax.ContentHandler handler,
XMLConvertorContext context,
XMLData data)
Output the children of an XMLData. |
protected void |
sendCharacters(org.xml.sax.ContentHandler handler,
java.lang.String text)
Event sent to when character data is found. |
protected void |
sendDocumentLocator(org.xml.sax.ContentHandler handler)
Event sent to indicate the line of the XML file. |
protected void |
sendEndDocument(org.xml.sax.ContentHandler handler)
Event sent to indicate the end of the document. |
protected void |
sendEndElement(org.xml.sax.ContentHandler handler,
XMLName name)
Event sent to indicate the end tag of an element. |
protected void |
sendStartDocument(org.xml.sax.ContentHandler handler)
Event sent to indicate the start of the document. |
protected void |
sendStartElement(org.xml.sax.ContentHandler handler,
XMLName name,
org.xml.sax.Attributes saxAttrs)
Event sent to indicate the start tag of an element. |
void |
setMetaData(XMLMetaData metaData)
Sets the metaData for XML output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAXOutputter()
public SAXOutputter(XMLMetaData metaData)
metaData
- the metaData to control the outputMethod Detail |
public XMLMetaData getMetaData()
public void setMetaData(XMLMetaData metaData)
metaData
- the metaData to usepublic void output(java.lang.Object bean, org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
bean
- the bean to outputhandler
- the SAX handler to output to
org.xml.sax.SAXException
public void output(java.lang.Object bean, java.lang.String rootName, org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
bean
- the bean to outputhandler
- the SAX handler to output to
org.xml.sax.SAXException
protected void outputBean(org.xml.sax.ContentHandler handler, XMLConvertorContext context, java.lang.Object bean, XMLData data) throws org.xml.sax.SAXException
context
- the current output contextbean
- the bean to outputdata
- the XMLData for this bean
org.xml.sax.SAXException
protected void outputChildren(org.xml.sax.ContentHandler handler, XMLConvertorContext context, XMLData data) throws org.xml.sax.SAXException
context
- the current output contextdata
- the XMLData to output
org.xml.sax.SAXException
protected void sendDocumentLocator(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void sendStartDocument(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void sendEndDocument(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void sendStartElement(org.xml.sax.ContentHandler handler, XMLName name, org.xml.sax.Attributes saxAttrs) throws org.xml.sax.SAXException
name
- the name of the elementsaxAttrs
- the non-null sax attributes
org.xml.sax.SAXException
protected void sendEndElement(org.xml.sax.ContentHandler handler, XMLName name) throws org.xml.sax.SAXException
name
- the name of the element
org.xml.sax.SAXException
protected void sendCharacters(org.xml.sax.ContentHandler handler, java.lang.String text) throws org.xml.sax.SAXException
text
- the text to send
org.xml.sax.SAXException
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |