|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.common.xml.XmlHelper
org.apertereports.common.xml.config.XmlReportConfigLoader
public class XmlReportConfigLoader
| Constructor Summary | |
|---|---|
XmlReportConfigLoader()
|
|
| Method Summary | |
|---|---|
static XmlReportConfigLoader |
getInstance()
|
protected Class[] |
getSupportedClasses()
|
String |
mapAsXml(Map<String,String> map)
Converts a map of parameters to a marshaled string containing XML representation of a list of ReportConfigParameter. |
List<ReportConfigParameter> |
mapToParameterList(Map<String,String> map)
Converts a map of parameters to a list of ReportConfigParameter. |
Map<String,String> |
parameterListToMap(List<ReportConfigParameter> params)
Converts a list of ReportConfigParameter to a map. |
String |
parametersAsXML(List<ReportConfigParameter> parameters)
Converts a list of ReportConfigParameter to a single string. |
String |
reportConfigsAsString(List<ReportConfig> reportConfigs)
Converts a list of ReportConfig to a single string. |
List<ReportConfig> |
stringAsReportConfigs(String input)
Converts a string containing XML to a list of ReportConfig. |
Map<String,String> |
xmlAsMap(String xml)
Converts a string containing XML representation of ReportConfigParameter to a map. |
List<ReportConfigParameter> |
xmlAsParameters(String xml)
Converts a string containing XML to a list of ReportConfigParameter. |
| Methods inherited from class org.apertereports.common.xml.XmlHelper |
|---|
marshall, unmarshall, unmarshall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlReportConfigLoader()
| Method Detail |
|---|
protected Class[] getSupportedClasses()
getSupportedClasses in class XmlHelperpublic static XmlReportConfigLoader getInstance()
public String reportConfigsAsString(List<ReportConfig> reportConfigs)
ReportConfig to a single string.
Basically reverts the result of stringAsReportConfigs(String).
reportConfigs - A list of ReportConfig
ReportConfigpublic List<ReportConfig> stringAsReportConfigs(String input)
ReportConfig.
Basically reverts the result of reportConfigsAsString(java.util.List).
input -
public String parametersAsXML(List<ReportConfigParameter> parameters)
ReportConfigParameter to a single string.
Basically reverts the result of xmlAsParameters(String).
parameters - A list of ReportConfigParameter
ReportConfigParameterpublic List<ReportConfigParameter> xmlAsParameters(String xml)
ReportConfigParameter.
Basically reverts the result of parametersAsXML(java.util.List).
xml - A string with XML
ReportConfigParameterReportConfigParameterpublic Map<String,String> xmlAsMap(String xml)
ReportConfigParameter to a map.
The key of the map is the parameter's name. The value is ReportConfigParameter.getValue().
Reverts the result of mapAsXml(java.util.Map).
xml - A string with XML
public String mapAsXml(Map<String,String> map)
ReportConfigParameter.
Reverts the result of xmlAsMap(String).
map - A map of parameters
public List<ReportConfigParameter> mapToParameterList(Map<String,String> map)
ReportConfigParameter.
Reverts the result of parameterListToMap(java.util.List).
map - A map of parameters
ReportConfigParameterpublic Map<String,String> parameterListToMap(List<ReportConfigParameter> params)
ReportConfigParameter to a map.
Reverts the result of mapToParameterList(java.util.Map).
params - A list of parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||