AbstractSerializer.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.eccezione.details.utils.serializer;

  21. import org.openspcoop2.generic_project.exception.SerializerException;
  22. import org.openspcoop2.utils.beans.WriteToSerializerType;
  23. import org.openspcoop2.utils.xml.JaxbUtils;

  24. import org.openspcoop2.core.eccezione.details.Eccezione;
  25. import org.openspcoop2.core.eccezione.details.DominioSoggetto;
  26. import org.openspcoop2.core.eccezione.details.Dettaglio;
  27. import org.openspcoop2.core.eccezione.details.Dominio;
  28. import org.openspcoop2.core.eccezione.details.DettaglioEccezione;
  29. import org.openspcoop2.core.eccezione.details.Eccezioni;
  30. import org.openspcoop2.core.eccezione.details.Dettagli;

  31. import java.io.ByteArrayOutputStream;
  32. import java.io.FileOutputStream;
  33. import java.io.OutputStream;
  34. import java.io.File;
  35. import java.lang.reflect.Method;

  36. import javax.xml.bind.JAXBElement;

  37. /**    
  38.  * XML Serializer of beans
  39.  *
  40.  * @author Poli Andrea (poli@link.it)
  41.  * @author $Author$
  42.  * @version $Rev$, $Date$
  43.  */
  44. public abstract class AbstractSerializer {


  45.     protected abstract WriteToSerializerType getType();
  46.    
  47.     protected void _objToXml(OutputStream out, Class<?> c, Object object,
  48.             boolean prettyPrint) throws Exception {
  49.         if(object instanceof JAXBElement){
  50.             // solo per il tipo WriteToSerializerType.JAXB
  51.             JaxbUtils.objToXml(out, c, object, prettyPrint);
  52.         }else{
  53.             Method m = c.getMethod("writeTo", OutputStream.class, WriteToSerializerType.class);
  54.             m.invoke(object, out, this.getType());
  55.         }
  56.     }
  57.    
  58.     protected void objToXml(OutputStream out,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  59.         try{
  60.             this._objToXml(out, c, object, prettyPrint);
  61.         }catch(Exception e){
  62.             throw new SerializerException(e.getMessage(), e);
  63.         }
  64.         finally{
  65.             try{
  66.                 out.flush();
  67.             }catch(Exception e){
  68.                 // ignore
  69.             }
  70.         }
  71.     }
  72.     protected void objToXml(String fileName,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  73.         try{
  74.             this.objToXml(new File(fileName), c, object, prettyPrint);
  75.         }catch(Exception e){
  76.             throw new SerializerException(e.getMessage(), e);
  77.         }
  78.     }
  79.     protected void objToXml(File file,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  80.         FileOutputStream fout = null;
  81.         try{
  82.             fout = new FileOutputStream(file);
  83.             this._objToXml(fout, c, object, prettyPrint);
  84.         }catch(Exception e){
  85.             throw new SerializerException(e.getMessage(), e);
  86.         }
  87.         finally{
  88.             try{
  89.                 if(fout!=null){
  90.                     fout.flush();
  91.                 }
  92.             }catch(Exception e){
  93.                 // ignore
  94.             }
  95.             try{
  96.                 if(fout!=null){
  97.                     fout.close();
  98.                 }
  99.             }catch(Exception e){
  100.                 // ignore
  101.             }
  102.         }
  103.     }
  104.     protected ByteArrayOutputStream objToXml(Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  105.         ByteArrayOutputStream bout = null;
  106.         try{
  107.             bout = new ByteArrayOutputStream();
  108.             this._objToXml(bout, c, object, prettyPrint);
  109.         }catch(Exception e){
  110.             throw new SerializerException(e.getMessage(), e);
  111.         }
  112.         finally{
  113.             try{
  114.                 if(bout!=null){
  115.                     bout.flush();
  116.                 }
  117.             }catch(Exception e){
  118.                 // ignore
  119.             }
  120.             try{
  121.                 if(bout!=null){
  122.                     bout.close();
  123.                 }
  124.             }catch(Exception e){
  125.                 // ignore
  126.             }
  127.         }
  128.         return bout;
  129.     }




  130.     /*
  131.      =================================================================================
  132.      Object: eccezione
  133.      =================================================================================
  134.     */
  135.    
  136.     /**
  137.      * Serialize to file system in <var>fileName</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  138.      *
  139.      * @param fileName Xml file to serialize the object <var>eccezione</var>
  140.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  141.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  142.      */
  143.     public void write(String fileName,Eccezione eccezione) throws SerializerException {
  144.         this.objToXml(fileName, Eccezione.class, eccezione, false);
  145.     }
  146.     /**
  147.      * Serialize to file system in <var>fileName</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  148.      *
  149.      * @param fileName Xml file to serialize the object <var>eccezione</var>
  150.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  151.      * @param prettyPrint if true output the XML with indenting
  152.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  153.      */
  154.     public void write(String fileName,Eccezione eccezione,boolean prettyPrint) throws SerializerException {
  155.         this.objToXml(fileName, Eccezione.class, eccezione, prettyPrint);
  156.     }
  157.    
  158.     /**
  159.      * Serialize to file system in <var>file</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  160.      *
  161.      * @param file Xml file to serialize the object <var>eccezione</var>
  162.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  163.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  164.      */
  165.     public void write(File file,Eccezione eccezione) throws SerializerException {
  166.         this.objToXml(file, Eccezione.class, eccezione, false);
  167.     }
  168.     /**
  169.      * Serialize to file system in <var>file</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  170.      *
  171.      * @param file Xml file to serialize the object <var>eccezione</var>
  172.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  173.      * @param prettyPrint if true output the XML with indenting
  174.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  175.      */
  176.     public void write(File file,Eccezione eccezione,boolean prettyPrint) throws SerializerException {
  177.         this.objToXml(file, Eccezione.class, eccezione, prettyPrint);
  178.     }
  179.    
  180.     /**
  181.      * Serialize to output stream <var>out</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  182.      *
  183.      * @param out OutputStream to serialize the object <var>eccezione</var>
  184.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  185.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  186.      */
  187.     public void write(OutputStream out,Eccezione eccezione) throws SerializerException {
  188.         this.objToXml(out, Eccezione.class, eccezione, false);
  189.     }
  190.     /**
  191.      * Serialize to output stream <var>out</var> the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  192.      *
  193.      * @param out OutputStream to serialize the object <var>eccezione</var>
  194.      * @param eccezione Object to be serialized in xml file <var>fileName</var>
  195.      * @param prettyPrint if true output the XML with indenting
  196.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  197.      */
  198.     public void write(OutputStream out,Eccezione eccezione,boolean prettyPrint) throws SerializerException {
  199.         this.objToXml(out, Eccezione.class, eccezione, prettyPrint);
  200.     }
  201.            
  202.     /**
  203.      * Serialize to byte array the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  204.      *
  205.      * @param eccezione Object to be serialized
  206.      * @return Object to be serialized in byte array
  207.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  208.      */
  209.     public byte[] toByteArray(Eccezione eccezione) throws SerializerException {
  210.         return this.objToXml(Eccezione.class, eccezione, false).toByteArray();
  211.     }
  212.     /**
  213.      * Serialize to byte array the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  214.      *
  215.      * @param eccezione Object to be serialized
  216.      * @param prettyPrint if true output the XML with indenting
  217.      * @return Object to be serialized in byte array
  218.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  219.      */
  220.     public byte[] toByteArray(Eccezione eccezione,boolean prettyPrint) throws SerializerException {
  221.         return this.objToXml(Eccezione.class, eccezione, prettyPrint).toByteArray();
  222.     }
  223.    
  224.     /**
  225.      * Serialize to String the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  226.      *
  227.      * @param eccezione Object to be serialized
  228.      * @return Object to be serialized as String
  229.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  230.      */
  231.     public String toString(Eccezione eccezione) throws SerializerException {
  232.         return this.objToXml(Eccezione.class, eccezione, false).toString();
  233.     }
  234.     /**
  235.      * Serialize to String the object <var>eccezione</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezione}
  236.      *
  237.      * @param eccezione Object to be serialized
  238.      * @param prettyPrint if true output the XML with indenting
  239.      * @return Object to be serialized as String
  240.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  241.      */
  242.     public String toString(Eccezione eccezione,boolean prettyPrint) throws SerializerException {
  243.         return this.objToXml(Eccezione.class, eccezione, prettyPrint).toString();
  244.     }
  245.    
  246.    
  247.    
  248.     /*
  249.      =================================================================================
  250.      Object: dominio-soggetto
  251.      =================================================================================
  252.     */
  253.    
  254.     /**
  255.      * Serialize to file system in <var>fileName</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  256.      *
  257.      * @param fileName Xml file to serialize the object <var>dominioSoggetto</var>
  258.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  259.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  260.      */
  261.     public void write(String fileName,DominioSoggetto dominioSoggetto) throws SerializerException {
  262.         this.objToXml(fileName, DominioSoggetto.class, dominioSoggetto, false);
  263.     }
  264.     /**
  265.      * Serialize to file system in <var>fileName</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  266.      *
  267.      * @param fileName Xml file to serialize the object <var>dominioSoggetto</var>
  268.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  269.      * @param prettyPrint if true output the XML with indenting
  270.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  271.      */
  272.     public void write(String fileName,DominioSoggetto dominioSoggetto,boolean prettyPrint) throws SerializerException {
  273.         this.objToXml(fileName, DominioSoggetto.class, dominioSoggetto, prettyPrint);
  274.     }
  275.    
  276.     /**
  277.      * Serialize to file system in <var>file</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  278.      *
  279.      * @param file Xml file to serialize the object <var>dominioSoggetto</var>
  280.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  281.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  282.      */
  283.     public void write(File file,DominioSoggetto dominioSoggetto) throws SerializerException {
  284.         this.objToXml(file, DominioSoggetto.class, dominioSoggetto, false);
  285.     }
  286.     /**
  287.      * Serialize to file system in <var>file</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  288.      *
  289.      * @param file Xml file to serialize the object <var>dominioSoggetto</var>
  290.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  291.      * @param prettyPrint if true output the XML with indenting
  292.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  293.      */
  294.     public void write(File file,DominioSoggetto dominioSoggetto,boolean prettyPrint) throws SerializerException {
  295.         this.objToXml(file, DominioSoggetto.class, dominioSoggetto, prettyPrint);
  296.     }
  297.    
  298.     /**
  299.      * Serialize to output stream <var>out</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  300.      *
  301.      * @param out OutputStream to serialize the object <var>dominioSoggetto</var>
  302.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  303.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  304.      */
  305.     public void write(OutputStream out,DominioSoggetto dominioSoggetto) throws SerializerException {
  306.         this.objToXml(out, DominioSoggetto.class, dominioSoggetto, false);
  307.     }
  308.     /**
  309.      * Serialize to output stream <var>out</var> the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  310.      *
  311.      * @param out OutputStream to serialize the object <var>dominioSoggetto</var>
  312.      * @param dominioSoggetto Object to be serialized in xml file <var>fileName</var>
  313.      * @param prettyPrint if true output the XML with indenting
  314.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  315.      */
  316.     public void write(OutputStream out,DominioSoggetto dominioSoggetto,boolean prettyPrint) throws SerializerException {
  317.         this.objToXml(out, DominioSoggetto.class, dominioSoggetto, prettyPrint);
  318.     }
  319.            
  320.     /**
  321.      * Serialize to byte array the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  322.      *
  323.      * @param dominioSoggetto Object to be serialized
  324.      * @return Object to be serialized in byte array
  325.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  326.      */
  327.     public byte[] toByteArray(DominioSoggetto dominioSoggetto) throws SerializerException {
  328.         return this.objToXml(DominioSoggetto.class, dominioSoggetto, false).toByteArray();
  329.     }
  330.     /**
  331.      * Serialize to byte array the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  332.      *
  333.      * @param dominioSoggetto Object to be serialized
  334.      * @param prettyPrint if true output the XML with indenting
  335.      * @return Object to be serialized in byte array
  336.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  337.      */
  338.     public byte[] toByteArray(DominioSoggetto dominioSoggetto,boolean prettyPrint) throws SerializerException {
  339.         return this.objToXml(DominioSoggetto.class, dominioSoggetto, prettyPrint).toByteArray();
  340.     }
  341.    
  342.     /**
  343.      * Serialize to String the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  344.      *
  345.      * @param dominioSoggetto Object to be serialized
  346.      * @return Object to be serialized as String
  347.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  348.      */
  349.     public String toString(DominioSoggetto dominioSoggetto) throws SerializerException {
  350.         return this.objToXml(DominioSoggetto.class, dominioSoggetto, false).toString();
  351.     }
  352.     /**
  353.      * Serialize to String the object <var>dominioSoggetto</var> of type {@link org.openspcoop2.core.eccezione.details.DominioSoggetto}
  354.      *
  355.      * @param dominioSoggetto Object to be serialized
  356.      * @param prettyPrint if true output the XML with indenting
  357.      * @return Object to be serialized as String
  358.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  359.      */
  360.     public String toString(DominioSoggetto dominioSoggetto,boolean prettyPrint) throws SerializerException {
  361.         return this.objToXml(DominioSoggetto.class, dominioSoggetto, prettyPrint).toString();
  362.     }
  363.    
  364.    
  365.    
  366.     /*
  367.      =================================================================================
  368.      Object: dettaglio
  369.      =================================================================================
  370.     */
  371.    
  372.     /**
  373.      * Serialize to file system in <var>fileName</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  374.      *
  375.      * @param fileName Xml file to serialize the object <var>dettaglio</var>
  376.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  377.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  378.      */
  379.     public void write(String fileName,Dettaglio dettaglio) throws SerializerException {
  380.         this.objToXml(fileName, Dettaglio.class, dettaglio, false);
  381.     }
  382.     /**
  383.      * Serialize to file system in <var>fileName</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  384.      *
  385.      * @param fileName Xml file to serialize the object <var>dettaglio</var>
  386.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  387.      * @param prettyPrint if true output the XML with indenting
  388.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  389.      */
  390.     public void write(String fileName,Dettaglio dettaglio,boolean prettyPrint) throws SerializerException {
  391.         this.objToXml(fileName, Dettaglio.class, dettaglio, prettyPrint);
  392.     }
  393.    
  394.     /**
  395.      * Serialize to file system in <var>file</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  396.      *
  397.      * @param file Xml file to serialize the object <var>dettaglio</var>
  398.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  399.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  400.      */
  401.     public void write(File file,Dettaglio dettaglio) throws SerializerException {
  402.         this.objToXml(file, Dettaglio.class, dettaglio, false);
  403.     }
  404.     /**
  405.      * Serialize to file system in <var>file</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  406.      *
  407.      * @param file Xml file to serialize the object <var>dettaglio</var>
  408.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  409.      * @param prettyPrint if true output the XML with indenting
  410.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  411.      */
  412.     public void write(File file,Dettaglio dettaglio,boolean prettyPrint) throws SerializerException {
  413.         this.objToXml(file, Dettaglio.class, dettaglio, prettyPrint);
  414.     }
  415.    
  416.     /**
  417.      * Serialize to output stream <var>out</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  418.      *
  419.      * @param out OutputStream to serialize the object <var>dettaglio</var>
  420.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  421.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  422.      */
  423.     public void write(OutputStream out,Dettaglio dettaglio) throws SerializerException {
  424.         this.objToXml(out, Dettaglio.class, dettaglio, false);
  425.     }
  426.     /**
  427.      * Serialize to output stream <var>out</var> the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  428.      *
  429.      * @param out OutputStream to serialize the object <var>dettaglio</var>
  430.      * @param dettaglio Object to be serialized in xml file <var>fileName</var>
  431.      * @param prettyPrint if true output the XML with indenting
  432.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  433.      */
  434.     public void write(OutputStream out,Dettaglio dettaglio,boolean prettyPrint) throws SerializerException {
  435.         this.objToXml(out, Dettaglio.class, dettaglio, prettyPrint);
  436.     }
  437.            
  438.     /**
  439.      * Serialize to byte array the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  440.      *
  441.      * @param dettaglio Object to be serialized
  442.      * @return Object to be serialized in byte array
  443.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  444.      */
  445.     public byte[] toByteArray(Dettaglio dettaglio) throws SerializerException {
  446.         return this.objToXml(Dettaglio.class, dettaglio, false).toByteArray();
  447.     }
  448.     /**
  449.      * Serialize to byte array the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  450.      *
  451.      * @param dettaglio Object to be serialized
  452.      * @param prettyPrint if true output the XML with indenting
  453.      * @return Object to be serialized in byte array
  454.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  455.      */
  456.     public byte[] toByteArray(Dettaglio dettaglio,boolean prettyPrint) throws SerializerException {
  457.         return this.objToXml(Dettaglio.class, dettaglio, prettyPrint).toByteArray();
  458.     }
  459.    
  460.     /**
  461.      * Serialize to String the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  462.      *
  463.      * @param dettaglio Object to be serialized
  464.      * @return Object to be serialized as String
  465.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  466.      */
  467.     public String toString(Dettaglio dettaglio) throws SerializerException {
  468.         return this.objToXml(Dettaglio.class, dettaglio, false).toString();
  469.     }
  470.     /**
  471.      * Serialize to String the object <var>dettaglio</var> of type {@link org.openspcoop2.core.eccezione.details.Dettaglio}
  472.      *
  473.      * @param dettaglio Object to be serialized
  474.      * @param prettyPrint if true output the XML with indenting
  475.      * @return Object to be serialized as String
  476.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  477.      */
  478.     public String toString(Dettaglio dettaglio,boolean prettyPrint) throws SerializerException {
  479.         return this.objToXml(Dettaglio.class, dettaglio, prettyPrint).toString();
  480.     }
  481.    
  482.    
  483.    
  484.     /*
  485.      =================================================================================
  486.      Object: dominio
  487.      =================================================================================
  488.     */
  489.    
  490.     /**
  491.      * Serialize to file system in <var>fileName</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  492.      *
  493.      * @param fileName Xml file to serialize the object <var>dominio</var>
  494.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  495.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  496.      */
  497.     public void write(String fileName,Dominio dominio) throws SerializerException {
  498.         this.objToXml(fileName, Dominio.class, dominio, false);
  499.     }
  500.     /**
  501.      * Serialize to file system in <var>fileName</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  502.      *
  503.      * @param fileName Xml file to serialize the object <var>dominio</var>
  504.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  505.      * @param prettyPrint if true output the XML with indenting
  506.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  507.      */
  508.     public void write(String fileName,Dominio dominio,boolean prettyPrint) throws SerializerException {
  509.         this.objToXml(fileName, Dominio.class, dominio, prettyPrint);
  510.     }
  511.    
  512.     /**
  513.      * Serialize to file system in <var>file</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  514.      *
  515.      * @param file Xml file to serialize the object <var>dominio</var>
  516.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  517.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  518.      */
  519.     public void write(File file,Dominio dominio) throws SerializerException {
  520.         this.objToXml(file, Dominio.class, dominio, false);
  521.     }
  522.     /**
  523.      * Serialize to file system in <var>file</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  524.      *
  525.      * @param file Xml file to serialize the object <var>dominio</var>
  526.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  527.      * @param prettyPrint if true output the XML with indenting
  528.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  529.      */
  530.     public void write(File file,Dominio dominio,boolean prettyPrint) throws SerializerException {
  531.         this.objToXml(file, Dominio.class, dominio, prettyPrint);
  532.     }
  533.    
  534.     /**
  535.      * Serialize to output stream <var>out</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  536.      *
  537.      * @param out OutputStream to serialize the object <var>dominio</var>
  538.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  539.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  540.      */
  541.     public void write(OutputStream out,Dominio dominio) throws SerializerException {
  542.         this.objToXml(out, Dominio.class, dominio, false);
  543.     }
  544.     /**
  545.      * Serialize to output stream <var>out</var> the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  546.      *
  547.      * @param out OutputStream to serialize the object <var>dominio</var>
  548.      * @param dominio Object to be serialized in xml file <var>fileName</var>
  549.      * @param prettyPrint if true output the XML with indenting
  550.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  551.      */
  552.     public void write(OutputStream out,Dominio dominio,boolean prettyPrint) throws SerializerException {
  553.         this.objToXml(out, Dominio.class, dominio, prettyPrint);
  554.     }
  555.            
  556.     /**
  557.      * Serialize to byte array the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  558.      *
  559.      * @param dominio Object to be serialized
  560.      * @return Object to be serialized in byte array
  561.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  562.      */
  563.     public byte[] toByteArray(Dominio dominio) throws SerializerException {
  564.         return this.objToXml(Dominio.class, dominio, false).toByteArray();
  565.     }
  566.     /**
  567.      * Serialize to byte array the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  568.      *
  569.      * @param dominio Object to be serialized
  570.      * @param prettyPrint if true output the XML with indenting
  571.      * @return Object to be serialized in byte array
  572.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  573.      */
  574.     public byte[] toByteArray(Dominio dominio,boolean prettyPrint) throws SerializerException {
  575.         return this.objToXml(Dominio.class, dominio, prettyPrint).toByteArray();
  576.     }
  577.    
  578.     /**
  579.      * Serialize to String the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  580.      *
  581.      * @param dominio Object to be serialized
  582.      * @return Object to be serialized as String
  583.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  584.      */
  585.     public String toString(Dominio dominio) throws SerializerException {
  586.         return this.objToXml(Dominio.class, dominio, false).toString();
  587.     }
  588.     /**
  589.      * Serialize to String the object <var>dominio</var> of type {@link org.openspcoop2.core.eccezione.details.Dominio}
  590.      *
  591.      * @param dominio Object to be serialized
  592.      * @param prettyPrint if true output the XML with indenting
  593.      * @return Object to be serialized as String
  594.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  595.      */
  596.     public String toString(Dominio dominio,boolean prettyPrint) throws SerializerException {
  597.         return this.objToXml(Dominio.class, dominio, prettyPrint).toString();
  598.     }
  599.    
  600.    
  601.    
  602.     /*
  603.      =================================================================================
  604.      Object: dettaglio-eccezione
  605.      =================================================================================
  606.     */
  607.    
  608.     /**
  609.      * Serialize to file system in <var>fileName</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  610.      *
  611.      * @param fileName Xml file to serialize the object <var>dettaglioEccezione</var>
  612.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  613.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  614.      */
  615.     public void write(String fileName,DettaglioEccezione dettaglioEccezione) throws SerializerException {
  616.         this.objToXml(fileName, DettaglioEccezione.class, dettaglioEccezione, false);
  617.     }
  618.     /**
  619.      * Serialize to file system in <var>fileName</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  620.      *
  621.      * @param fileName Xml file to serialize the object <var>dettaglioEccezione</var>
  622.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  623.      * @param prettyPrint if true output the XML with indenting
  624.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  625.      */
  626.     public void write(String fileName,DettaglioEccezione dettaglioEccezione,boolean prettyPrint) throws SerializerException {
  627.         this.objToXml(fileName, DettaglioEccezione.class, dettaglioEccezione, prettyPrint);
  628.     }
  629.    
  630.     /**
  631.      * Serialize to file system in <var>file</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  632.      *
  633.      * @param file Xml file to serialize the object <var>dettaglioEccezione</var>
  634.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  635.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  636.      */
  637.     public void write(File file,DettaglioEccezione dettaglioEccezione) throws SerializerException {
  638.         this.objToXml(file, DettaglioEccezione.class, dettaglioEccezione, false);
  639.     }
  640.     /**
  641.      * Serialize to file system in <var>file</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  642.      *
  643.      * @param file Xml file to serialize the object <var>dettaglioEccezione</var>
  644.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  645.      * @param prettyPrint if true output the XML with indenting
  646.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  647.      */
  648.     public void write(File file,DettaglioEccezione dettaglioEccezione,boolean prettyPrint) throws SerializerException {
  649.         this.objToXml(file, DettaglioEccezione.class, dettaglioEccezione, prettyPrint);
  650.     }
  651.    
  652.     /**
  653.      * Serialize to output stream <var>out</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  654.      *
  655.      * @param out OutputStream to serialize the object <var>dettaglioEccezione</var>
  656.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  657.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  658.      */
  659.     public void write(OutputStream out,DettaglioEccezione dettaglioEccezione) throws SerializerException {
  660.         this.objToXml(out, DettaglioEccezione.class, dettaglioEccezione, false);
  661.     }
  662.     /**
  663.      * Serialize to output stream <var>out</var> the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  664.      *
  665.      * @param out OutputStream to serialize the object <var>dettaglioEccezione</var>
  666.      * @param dettaglioEccezione Object to be serialized in xml file <var>fileName</var>
  667.      * @param prettyPrint if true output the XML with indenting
  668.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  669.      */
  670.     public void write(OutputStream out,DettaglioEccezione dettaglioEccezione,boolean prettyPrint) throws SerializerException {
  671.         this.objToXml(out, DettaglioEccezione.class, dettaglioEccezione, prettyPrint);
  672.     }
  673.            
  674.     /**
  675.      * Serialize to byte array the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  676.      *
  677.      * @param dettaglioEccezione Object to be serialized
  678.      * @return Object to be serialized in byte array
  679.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  680.      */
  681.     public byte[] toByteArray(DettaglioEccezione dettaglioEccezione) throws SerializerException {
  682.         return this.objToXml(DettaglioEccezione.class, dettaglioEccezione, false).toByteArray();
  683.     }
  684.     /**
  685.      * Serialize to byte array the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  686.      *
  687.      * @param dettaglioEccezione Object to be serialized
  688.      * @param prettyPrint if true output the XML with indenting
  689.      * @return Object to be serialized in byte array
  690.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  691.      */
  692.     public byte[] toByteArray(DettaglioEccezione dettaglioEccezione,boolean prettyPrint) throws SerializerException {
  693.         return this.objToXml(DettaglioEccezione.class, dettaglioEccezione, prettyPrint).toByteArray();
  694.     }
  695.    
  696.     /**
  697.      * Serialize to String the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  698.      *
  699.      * @param dettaglioEccezione Object to be serialized
  700.      * @return Object to be serialized as String
  701.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  702.      */
  703.     public String toString(DettaglioEccezione dettaglioEccezione) throws SerializerException {
  704.         return this.objToXml(DettaglioEccezione.class, dettaglioEccezione, false).toString();
  705.     }
  706.     /**
  707.      * Serialize to String the object <var>dettaglioEccezione</var> of type {@link org.openspcoop2.core.eccezione.details.DettaglioEccezione}
  708.      *
  709.      * @param dettaglioEccezione Object to be serialized
  710.      * @param prettyPrint if true output the XML with indenting
  711.      * @return Object to be serialized as String
  712.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  713.      */
  714.     public String toString(DettaglioEccezione dettaglioEccezione,boolean prettyPrint) throws SerializerException {
  715.         return this.objToXml(DettaglioEccezione.class, dettaglioEccezione, prettyPrint).toString();
  716.     }
  717.    
  718.    
  719.    
  720.     /*
  721.      =================================================================================
  722.      Object: eccezioni
  723.      =================================================================================
  724.     */
  725.    
  726.     /**
  727.      * Serialize to file system in <var>fileName</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  728.      *
  729.      * @param fileName Xml file to serialize the object <var>eccezioni</var>
  730.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  731.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  732.      */
  733.     public void write(String fileName,Eccezioni eccezioni) throws SerializerException {
  734.         this.objToXml(fileName, Eccezioni.class, eccezioni, false);
  735.     }
  736.     /**
  737.      * Serialize to file system in <var>fileName</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  738.      *
  739.      * @param fileName Xml file to serialize the object <var>eccezioni</var>
  740.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  741.      * @param prettyPrint if true output the XML with indenting
  742.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  743.      */
  744.     public void write(String fileName,Eccezioni eccezioni,boolean prettyPrint) throws SerializerException {
  745.         this.objToXml(fileName, Eccezioni.class, eccezioni, prettyPrint);
  746.     }
  747.    
  748.     /**
  749.      * Serialize to file system in <var>file</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  750.      *
  751.      * @param file Xml file to serialize the object <var>eccezioni</var>
  752.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  753.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  754.      */
  755.     public void write(File file,Eccezioni eccezioni) throws SerializerException {
  756.         this.objToXml(file, Eccezioni.class, eccezioni, false);
  757.     }
  758.     /**
  759.      * Serialize to file system in <var>file</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  760.      *
  761.      * @param file Xml file to serialize the object <var>eccezioni</var>
  762.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  763.      * @param prettyPrint if true output the XML with indenting
  764.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  765.      */
  766.     public void write(File file,Eccezioni eccezioni,boolean prettyPrint) throws SerializerException {
  767.         this.objToXml(file, Eccezioni.class, eccezioni, prettyPrint);
  768.     }
  769.    
  770.     /**
  771.      * Serialize to output stream <var>out</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  772.      *
  773.      * @param out OutputStream to serialize the object <var>eccezioni</var>
  774.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  775.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  776.      */
  777.     public void write(OutputStream out,Eccezioni eccezioni) throws SerializerException {
  778.         this.objToXml(out, Eccezioni.class, eccezioni, false);
  779.     }
  780.     /**
  781.      * Serialize to output stream <var>out</var> the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  782.      *
  783.      * @param out OutputStream to serialize the object <var>eccezioni</var>
  784.      * @param eccezioni Object to be serialized in xml file <var>fileName</var>
  785.      * @param prettyPrint if true output the XML with indenting
  786.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  787.      */
  788.     public void write(OutputStream out,Eccezioni eccezioni,boolean prettyPrint) throws SerializerException {
  789.         this.objToXml(out, Eccezioni.class, eccezioni, prettyPrint);
  790.     }
  791.            
  792.     /**
  793.      * Serialize to byte array the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  794.      *
  795.      * @param eccezioni Object to be serialized
  796.      * @return Object to be serialized in byte array
  797.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  798.      */
  799.     public byte[] toByteArray(Eccezioni eccezioni) throws SerializerException {
  800.         return this.objToXml(Eccezioni.class, eccezioni, false).toByteArray();
  801.     }
  802.     /**
  803.      * Serialize to byte array the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  804.      *
  805.      * @param eccezioni Object to be serialized
  806.      * @param prettyPrint if true output the XML with indenting
  807.      * @return Object to be serialized in byte array
  808.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  809.      */
  810.     public byte[] toByteArray(Eccezioni eccezioni,boolean prettyPrint) throws SerializerException {
  811.         return this.objToXml(Eccezioni.class, eccezioni, prettyPrint).toByteArray();
  812.     }
  813.    
  814.     /**
  815.      * Serialize to String the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  816.      *
  817.      * @param eccezioni Object to be serialized
  818.      * @return Object to be serialized as String
  819.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  820.      */
  821.     public String toString(Eccezioni eccezioni) throws SerializerException {
  822.         return this.objToXml(Eccezioni.class, eccezioni, false).toString();
  823.     }
  824.     /**
  825.      * Serialize to String the object <var>eccezioni</var> of type {@link org.openspcoop2.core.eccezione.details.Eccezioni}
  826.      *
  827.      * @param eccezioni Object to be serialized
  828.      * @param prettyPrint if true output the XML with indenting
  829.      * @return Object to be serialized as String
  830.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  831.      */
  832.     public String toString(Eccezioni eccezioni,boolean prettyPrint) throws SerializerException {
  833.         return this.objToXml(Eccezioni.class, eccezioni, prettyPrint).toString();
  834.     }
  835.    
  836.    
  837.    
  838.     /*
  839.      =================================================================================
  840.      Object: dettagli
  841.      =================================================================================
  842.     */
  843.    
  844.     /**
  845.      * Serialize to file system in <var>fileName</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  846.      *
  847.      * @param fileName Xml file to serialize the object <var>dettagli</var>
  848.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  849.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  850.      */
  851.     public void write(String fileName,Dettagli dettagli) throws SerializerException {
  852.         this.objToXml(fileName, Dettagli.class, dettagli, false);
  853.     }
  854.     /**
  855.      * Serialize to file system in <var>fileName</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  856.      *
  857.      * @param fileName Xml file to serialize the object <var>dettagli</var>
  858.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  859.      * @param prettyPrint if true output the XML with indenting
  860.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  861.      */
  862.     public void write(String fileName,Dettagli dettagli,boolean prettyPrint) throws SerializerException {
  863.         this.objToXml(fileName, Dettagli.class, dettagli, prettyPrint);
  864.     }
  865.    
  866.     /**
  867.      * Serialize to file system in <var>file</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  868.      *
  869.      * @param file Xml file to serialize the object <var>dettagli</var>
  870.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  871.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  872.      */
  873.     public void write(File file,Dettagli dettagli) throws SerializerException {
  874.         this.objToXml(file, Dettagli.class, dettagli, false);
  875.     }
  876.     /**
  877.      * Serialize to file system in <var>file</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  878.      *
  879.      * @param file Xml file to serialize the object <var>dettagli</var>
  880.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  881.      * @param prettyPrint if true output the XML with indenting
  882.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  883.      */
  884.     public void write(File file,Dettagli dettagli,boolean prettyPrint) throws SerializerException {
  885.         this.objToXml(file, Dettagli.class, dettagli, prettyPrint);
  886.     }
  887.    
  888.     /**
  889.      * Serialize to output stream <var>out</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  890.      *
  891.      * @param out OutputStream to serialize the object <var>dettagli</var>
  892.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  893.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  894.      */
  895.     public void write(OutputStream out,Dettagli dettagli) throws SerializerException {
  896.         this.objToXml(out, Dettagli.class, dettagli, false);
  897.     }
  898.     /**
  899.      * Serialize to output stream <var>out</var> the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  900.      *
  901.      * @param out OutputStream to serialize the object <var>dettagli</var>
  902.      * @param dettagli Object to be serialized in xml file <var>fileName</var>
  903.      * @param prettyPrint if true output the XML with indenting
  904.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  905.      */
  906.     public void write(OutputStream out,Dettagli dettagli,boolean prettyPrint) throws SerializerException {
  907.         this.objToXml(out, Dettagli.class, dettagli, prettyPrint);
  908.     }
  909.            
  910.     /**
  911.      * Serialize to byte array the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  912.      *
  913.      * @param dettagli Object to be serialized
  914.      * @return Object to be serialized in byte array
  915.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  916.      */
  917.     public byte[] toByteArray(Dettagli dettagli) throws SerializerException {
  918.         return this.objToXml(Dettagli.class, dettagli, false).toByteArray();
  919.     }
  920.     /**
  921.      * Serialize to byte array the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  922.      *
  923.      * @param dettagli Object to be serialized
  924.      * @param prettyPrint if true output the XML with indenting
  925.      * @return Object to be serialized in byte array
  926.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  927.      */
  928.     public byte[] toByteArray(Dettagli dettagli,boolean prettyPrint) throws SerializerException {
  929.         return this.objToXml(Dettagli.class, dettagli, prettyPrint).toByteArray();
  930.     }
  931.    
  932.     /**
  933.      * Serialize to String the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  934.      *
  935.      * @param dettagli Object to be serialized
  936.      * @return Object to be serialized as String
  937.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  938.      */
  939.     public String toString(Dettagli dettagli) throws SerializerException {
  940.         return this.objToXml(Dettagli.class, dettagli, false).toString();
  941.     }
  942.     /**
  943.      * Serialize to String the object <var>dettagli</var> of type {@link org.openspcoop2.core.eccezione.details.Dettagli}
  944.      *
  945.      * @param dettagli Object to be serialized
  946.      * @param prettyPrint if true output the XML with indenting
  947.      * @return Object to be serialized as String
  948.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  949.      */
  950.     public String toString(Dettagli dettagli,boolean prettyPrint) throws SerializerException {
  951.         return this.objToXml(Dettagli.class, dettagli, prettyPrint).toString();
  952.     }
  953.    
  954.    
  955.    

  956. }