public class

XmlMapper

extends Object
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 Constructors
XmlMapper()
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

Fields

private final XMLInputFactory xmlInputFactory

XML input factory to read xml

private final XMLOutputFactory xmlOutputFactory

XML output factory to write xml

Public Constructors

public XmlMapper ()

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)

Parameters
string