107107 * }
108108 * </pre>
109109 * Please note that the XmlAdhocConfiguration is class generated by the JAXB api and would be the product of reading
110- * data from an xml. This is the type that the JAXBElement for marshalling, must therefore adhere to, and that can only be created
111- * using the {@link #transform(AdhocConfiguration)} method of this class
110+ * data from an xml. This is the type that the serializable JAXBElement for marshalling, must therefore adhere to,
111+ * and that can only be created using the {@link #transform(AdhocConfiguration)} method of this class.
112112 *
113113 * @author Ricardo Mariaca (r.mariaca@dynamicreports.org)
114114 * @version $Id: $Id
@@ -124,9 +124,11 @@ public class AdhocToXmlTransform {
124124 * @return a {@link net.sf.dynamicreports.adhoc.xmlconfiguration.XmlAdhocConfiguration} object.
125125 */
126126 public XmlAdhocConfiguration transform (AdhocConfiguration adhocConfiguration ) {
127+ log .debug ("Transforming object : {} to XmlAdhocConfiguration" , adhocConfiguration );
127128 XmlAdhocConfiguration xmlAdhocConfiguration = new XmlAdhocConfiguration ();
128129 xmlAdhocConfiguration .setReport (report (adhocConfiguration .getReport ()));
129130 xmlAdhocConfiguration .setFilter (filter (adhocConfiguration .getFilter ()));
131+ log .debug ("XmlAdhocConfiguration : {} generated from adhocConfiguration: {}" , xmlAdhocConfiguration , adhocConfiguration );
130132 return xmlAdhocConfiguration ;
131133 }
132134
@@ -178,6 +180,7 @@ protected String propertyValueToString(Object value) {
178180 * @return a {@link net.sf.dynamicreports.adhoc.xmlconfiguration.XmlAdhocReport} object.
179181 */
180182 protected XmlAdhocReport report (AdhocReport adhocReport ) {
183+ log .debug ("Converting adhocReport :{} to XmlAdhocReport" , adhocReport );
181184 if (adhocReport == null ) {
182185 return null ;
183186 }
@@ -225,6 +228,8 @@ protected XmlAdhocReport report(AdhocReport adhocReport) {
225228 properties (adhocReport .getProperties (), xmlAdhocReport .getProperty ());
226229 }
227230
231+ log .debug ("XmlAdhocReport created and configured as : {}" , xmlAdhocReport );
232+
228233 return xmlAdhocReport ;
229234 }
230235
@@ -797,6 +802,7 @@ protected XmlAdhocChartType chartType(AdhocChartType adhocChartType) {
797802 * @return a {@link net.sf.dynamicreports.adhoc.xmlconfiguration.XmlAdhocFilter} object.
798803 */
799804 protected XmlAdhocFilter filter (AdhocFilter adhocFilter ) {
805+ log .debug ("Converting adhocFilter : {} into XmlAdhocFilter" , adhocFilter );
800806 if (adhocFilter == null ) {
801807 return null ;
802808 }
@@ -807,6 +813,7 @@ protected XmlAdhocFilter filter(AdhocFilter adhocFilter) {
807813 xmlAdhocFilter .getRestriction ().add (restriction (adhocRestriction ));
808814 }
809815 }
816+ log .debug ("XmlAdhocFilter : {} generated from AdhocFilter : {}" , xmlAdhocFilter , adhocFilter );
810817 return xmlAdhocFilter ;
811818 }
812819
0 commit comments