org.apertereports.common.xml
Class XmlHelper

java.lang.Object
  extended by org.apertereports.common.xml.XmlHelper
Direct Known Subclasses:
XmlReportConfigLoader

public abstract class XmlHelper
extends Object

A helper class that provides convenient methods for transforming the XML form of report parameters to collections (lists, maps) and vice versa.

The XML representation is marshaled and unmarshaled using XStream.


Constructor Summary
protected XmlHelper()
           
 
Method Summary
protected abstract  Class[] getSupportedClasses()
           
 String marshall(Object object)
           
 Object unmarshall(InputStream stream)
           
 Object unmarshall(String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlHelper

protected XmlHelper()
Method Detail

getSupportedClasses

protected abstract Class[] getSupportedClasses()

marshall

public String marshall(Object object)

unmarshall

public Object unmarshall(String xml)

unmarshall

public Object unmarshall(InputStream stream)


Copyright © 2011-2012. All Rights Reserved.