|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.util.JSON2XMLHandlerImpl
public class JSON2XMLHandlerImpl
Implementation of JSON2XMLHandler, which is used by the default JSON to XML conversion processing.
Constructor Summary | |
---|---|
JSON2XMLHandlerImpl()
|
Method Summary | |
---|---|
void |
beginArray(IXml parent)
Called at the beginning of processing a JSON Array. |
void |
beginData(IXml parent,
java.lang.String value)
Called to add a text value to the specified parent element. |
IXml |
beginDocument()
Called at the beginning of the JSON to XML conversion. |
IXml |
beginElement(IXml parent,
java.lang.String name)
Called to add a new child element to the specified parent. |
void |
endArray(IXml parent)
Called at the end of processing a JSON Array. |
void |
endData(IXml parent)
Called at the end of data creation. |
void |
endDocument(IXml document)
Called at the end of the JSON to XML conversion. |
void |
endElement(IXml element)
Called at the end of element creation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSON2XMLHandlerImpl()
Method Detail |
---|
public void beginArray(IXml parent)
beginArray
in interface JSON2XMLHandler
parent
- The parent element of the array.public void beginData(IXml parent, java.lang.String value)
beginData
in interface JSON2XMLHandler
parent
- The parent which to add the data to.value
- The text value to be added.public IXml beginDocument()
beginDocument
in interface JSON2XMLHandler
public IXml beginElement(IXml parent, java.lang.String name)
beginElement
in interface JSON2XMLHandler
parent
- The parent which to add the new element to.
public void endArray(IXml parent)
endArray
in interface JSON2XMLHandler
parent
- The parent element of the array.public void endData(IXml parent)
endData
in interface JSON2XMLHandler
element
- The element that data was added to.public void endDocument(IXml document)
endDocument
in interface JSON2XMLHandler
document
- The document root IXml element.public void endElement(IXml element)
endElement
in interface JSON2XMLHandler
element
- The element that was created.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |