| java.lang.Object |
| ↳ |
org.mule.modules.jive.api.xml.XmlMapper |
Class Overview
Mapper that maps xml to and from Maps.
Summary
| Fields |
|
private
final
XMLInputFactory |
xmlInputFactory |
XML input factory to read xml |
|
private
final
XMLOutputFactory |
xmlOutputFactory |
XML output factory to write xml |
| Public Methods |
|
final
void
|
map2xml(String xmlRootTag, Map<String, Object> entity, Writer writer)
|
|
final
Map<String, Object>
|
xml2map(Reader reader)
Maps an xml from a Reader to a Map.
|
|
final
Map<String, Object>
|
xml2map(String string)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
final
XMLInputFactory
xmlInputFactory
XML input factory to read xml
private
final
XMLOutputFactory
xmlOutputFactory
XML output factory to write xml
Public Constructors
Public Methods
public
final
void
map2xml
(String xmlRootTag, Map<String, Object> entity, Writer writer)
Parameters
| xmlRootTag
| The root xml tag to use in the mapping |
| entity
| The Map to be converted in xml |
| writer
| The Writer to write the result
|
public
final
Map<String, Object>
xml2map
(Reader reader)
Maps an xml from a Reader to a Map.
Parameters
| reader
| The Reader with the xml data |
Returns
- The map with the entity data
public
final
Map<String, Object>
xml2map
(String string)