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.monitor.engine.config.transazioni.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.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione;
  25. import org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione;
  26. import org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin;
  27. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione;
  28. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio;
  29. import org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio;
  30. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto;
  31. import org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato;
  32. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione;
  33. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin;
  34. import org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato;
  35. import org.openspcoop2.monitor.engine.config.transazioni.IdPlugin;
  36. import org.openspcoop2.monitor.engine.config.transazioni.Plugin;

  37. import java.io.ByteArrayOutputStream;
  38. import java.io.FileOutputStream;
  39. import java.io.OutputStream;
  40. import java.io.File;
  41. import java.lang.reflect.Method;

  42. import javax.xml.bind.JAXBElement;

  43. /**    
  44.  * XML Serializer of beans
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * @version $Rev$, $Date$
  49.  */
  50. public abstract class AbstractSerializer {


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




  136.     /*
  137.      =================================================================================
  138.      Object: id-configurazione-servizio-azione
  139.      =================================================================================
  140.     */
  141.    
  142.     /**
  143.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  144.      *
  145.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  146.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  147.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  148.      */
  149.     public void write(String fileName,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  150.         this.objToXml(fileName, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  151.     }
  152.     /**
  153.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  154.      *
  155.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  156.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  157.      * @param prettyPrint if true output the XML with indenting
  158.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  159.      */
  160.     public void write(String fileName,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  161.         this.objToXml(fileName, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  162.     }
  163.    
  164.     /**
  165.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  166.      *
  167.      * @param file Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  168.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  169.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  170.      */
  171.     public void write(File file,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  172.         this.objToXml(file, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  173.     }
  174.     /**
  175.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  176.      *
  177.      * @param file Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  178.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  179.      * @param prettyPrint if true output the XML with indenting
  180.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  181.      */
  182.     public void write(File file,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  183.         this.objToXml(file, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  184.     }
  185.    
  186.     /**
  187.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  188.      *
  189.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizioAzione</var>
  190.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  191.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  192.      */
  193.     public void write(OutputStream out,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  194.         this.objToXml(out, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  195.     }
  196.     /**
  197.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  198.      *
  199.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizioAzione</var>
  200.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  201.      * @param prettyPrint if true output the XML with indenting
  202.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  203.      */
  204.     public void write(OutputStream out,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  205.         this.objToXml(out, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  206.     }
  207.            
  208.     /**
  209.      * Serialize to byte array the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  210.      *
  211.      * @param idConfigurazioneServizioAzione Object to be serialized
  212.      * @return Object to be serialized in byte array
  213.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  214.      */
  215.     public byte[] toByteArray(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  216.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false).toByteArray();
  217.     }
  218.     /**
  219.      * Serialize to byte array the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  220.      *
  221.      * @param idConfigurazioneServizioAzione Object to be serialized
  222.      * @param prettyPrint if true output the XML with indenting
  223.      * @return Object to be serialized in byte array
  224.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  225.      */
  226.     public byte[] toByteArray(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  227.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint).toByteArray();
  228.     }
  229.    
  230.     /**
  231.      * Serialize to String the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  232.      *
  233.      * @param idConfigurazioneServizioAzione Object to be serialized
  234.      * @return Object to be serialized as String
  235.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  236.      */
  237.     public String toString(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  238.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false).toString();
  239.     }
  240.     /**
  241.      * Serialize to String the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizioAzione}
  242.      *
  243.      * @param idConfigurazioneServizioAzione Object to be serialized
  244.      * @param prettyPrint if true output the XML with indenting
  245.      * @return Object to be serialized as String
  246.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  247.      */
  248.     public String toString(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  249.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint).toString();
  250.     }
  251.    
  252.    
  253.    
  254.     /*
  255.      =================================================================================
  256.      Object: id-configurazione-transazione
  257.      =================================================================================
  258.     */
  259.    
  260.     /**
  261.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  262.      *
  263.      * @param fileName Xml file to serialize the object <var>idConfigurazioneTransazione</var>
  264.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  265.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  266.      */
  267.     public void write(String fileName,IdConfigurazioneTransazione idConfigurazioneTransazione) throws SerializerException {
  268.         this.objToXml(fileName, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, false);
  269.     }
  270.     /**
  271.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  272.      *
  273.      * @param fileName Xml file to serialize the object <var>idConfigurazioneTransazione</var>
  274.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  275.      * @param prettyPrint if true output the XML with indenting
  276.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  277.      */
  278.     public void write(String fileName,IdConfigurazioneTransazione idConfigurazioneTransazione,boolean prettyPrint) throws SerializerException {
  279.         this.objToXml(fileName, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, prettyPrint);
  280.     }
  281.    
  282.     /**
  283.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  284.      *
  285.      * @param file Xml file to serialize the object <var>idConfigurazioneTransazione</var>
  286.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  287.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  288.      */
  289.     public void write(File file,IdConfigurazioneTransazione idConfigurazioneTransazione) throws SerializerException {
  290.         this.objToXml(file, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, false);
  291.     }
  292.     /**
  293.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  294.      *
  295.      * @param file Xml file to serialize the object <var>idConfigurazioneTransazione</var>
  296.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  297.      * @param prettyPrint if true output the XML with indenting
  298.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  299.      */
  300.     public void write(File file,IdConfigurazioneTransazione idConfigurazioneTransazione,boolean prettyPrint) throws SerializerException {
  301.         this.objToXml(file, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, prettyPrint);
  302.     }
  303.    
  304.     /**
  305.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  306.      *
  307.      * @param out OutputStream to serialize the object <var>idConfigurazioneTransazione</var>
  308.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  309.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  310.      */
  311.     public void write(OutputStream out,IdConfigurazioneTransazione idConfigurazioneTransazione) throws SerializerException {
  312.         this.objToXml(out, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, false);
  313.     }
  314.     /**
  315.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  316.      *
  317.      * @param out OutputStream to serialize the object <var>idConfigurazioneTransazione</var>
  318.      * @param idConfigurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  319.      * @param prettyPrint if true output the XML with indenting
  320.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  321.      */
  322.     public void write(OutputStream out,IdConfigurazioneTransazione idConfigurazioneTransazione,boolean prettyPrint) throws SerializerException {
  323.         this.objToXml(out, IdConfigurazioneTransazione.class, idConfigurazioneTransazione, prettyPrint);
  324.     }
  325.            
  326.     /**
  327.      * Serialize to byte array the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  328.      *
  329.      * @param idConfigurazioneTransazione Object to be serialized
  330.      * @return Object to be serialized in byte array
  331.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  332.      */
  333.     public byte[] toByteArray(IdConfigurazioneTransazione idConfigurazioneTransazione) throws SerializerException {
  334.         return this.objToXml(IdConfigurazioneTransazione.class, idConfigurazioneTransazione, false).toByteArray();
  335.     }
  336.     /**
  337.      * Serialize to byte array the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  338.      *
  339.      * @param idConfigurazioneTransazione Object to be serialized
  340.      * @param prettyPrint if true output the XML with indenting
  341.      * @return Object to be serialized in byte array
  342.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  343.      */
  344.     public byte[] toByteArray(IdConfigurazioneTransazione idConfigurazioneTransazione,boolean prettyPrint) throws SerializerException {
  345.         return this.objToXml(IdConfigurazioneTransazione.class, idConfigurazioneTransazione, prettyPrint).toByteArray();
  346.     }
  347.    
  348.     /**
  349.      * Serialize to String the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  350.      *
  351.      * @param idConfigurazioneTransazione Object to be serialized
  352.      * @return Object to be serialized as String
  353.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  354.      */
  355.     public String toString(IdConfigurazioneTransazione idConfigurazioneTransazione) throws SerializerException {
  356.         return this.objToXml(IdConfigurazioneTransazione.class, idConfigurazioneTransazione, false).toString();
  357.     }
  358.     /**
  359.      * Serialize to String the object <var>idConfigurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazione}
  360.      *
  361.      * @param idConfigurazioneTransazione Object to be serialized
  362.      * @param prettyPrint if true output the XML with indenting
  363.      * @return Object to be serialized as String
  364.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  365.      */
  366.     public String toString(IdConfigurazioneTransazione idConfigurazioneTransazione,boolean prettyPrint) throws SerializerException {
  367.         return this.objToXml(IdConfigurazioneTransazione.class, idConfigurazioneTransazione, prettyPrint).toString();
  368.     }
  369.    
  370.    
  371.    
  372.     /*
  373.      =================================================================================
  374.      Object: info-plugin
  375.      =================================================================================
  376.     */
  377.    
  378.     /**
  379.      * Serialize to file system in <var>fileName</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  380.      *
  381.      * @param fileName Xml file to serialize the object <var>infoPlugin</var>
  382.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  383.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  384.      */
  385.     public void write(String fileName,InfoPlugin infoPlugin) throws SerializerException {
  386.         this.objToXml(fileName, InfoPlugin.class, infoPlugin, false);
  387.     }
  388.     /**
  389.      * Serialize to file system in <var>fileName</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  390.      *
  391.      * @param fileName Xml file to serialize the object <var>infoPlugin</var>
  392.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  393.      * @param prettyPrint if true output the XML with indenting
  394.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  395.      */
  396.     public void write(String fileName,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  397.         this.objToXml(fileName, InfoPlugin.class, infoPlugin, prettyPrint);
  398.     }
  399.    
  400.     /**
  401.      * Serialize to file system in <var>file</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  402.      *
  403.      * @param file Xml file to serialize the object <var>infoPlugin</var>
  404.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  405.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  406.      */
  407.     public void write(File file,InfoPlugin infoPlugin) throws SerializerException {
  408.         this.objToXml(file, InfoPlugin.class, infoPlugin, false);
  409.     }
  410.     /**
  411.      * Serialize to file system in <var>file</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  412.      *
  413.      * @param file Xml file to serialize the object <var>infoPlugin</var>
  414.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  415.      * @param prettyPrint if true output the XML with indenting
  416.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  417.      */
  418.     public void write(File file,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  419.         this.objToXml(file, InfoPlugin.class, infoPlugin, prettyPrint);
  420.     }
  421.    
  422.     /**
  423.      * Serialize to output stream <var>out</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  424.      *
  425.      * @param out OutputStream to serialize the object <var>infoPlugin</var>
  426.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  427.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  428.      */
  429.     public void write(OutputStream out,InfoPlugin infoPlugin) throws SerializerException {
  430.         this.objToXml(out, InfoPlugin.class, infoPlugin, false);
  431.     }
  432.     /**
  433.      * Serialize to output stream <var>out</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  434.      *
  435.      * @param out OutputStream to serialize the object <var>infoPlugin</var>
  436.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  437.      * @param prettyPrint if true output the XML with indenting
  438.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  439.      */
  440.     public void write(OutputStream out,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  441.         this.objToXml(out, InfoPlugin.class, infoPlugin, prettyPrint);
  442.     }
  443.            
  444.     /**
  445.      * Serialize to byte array the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  446.      *
  447.      * @param infoPlugin Object to be serialized
  448.      * @return Object to be serialized in byte array
  449.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  450.      */
  451.     public byte[] toByteArray(InfoPlugin infoPlugin) throws SerializerException {
  452.         return this.objToXml(InfoPlugin.class, infoPlugin, false).toByteArray();
  453.     }
  454.     /**
  455.      * Serialize to byte array the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  456.      *
  457.      * @param infoPlugin Object to be serialized
  458.      * @param prettyPrint if true output the XML with indenting
  459.      * @return Object to be serialized in byte array
  460.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  461.      */
  462.     public byte[] toByteArray(InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  463.         return this.objToXml(InfoPlugin.class, infoPlugin, prettyPrint).toByteArray();
  464.     }
  465.    
  466.     /**
  467.      * Serialize to String the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  468.      *
  469.      * @param infoPlugin Object to be serialized
  470.      * @return Object to be serialized as String
  471.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  472.      */
  473.     public String toString(InfoPlugin infoPlugin) throws SerializerException {
  474.         return this.objToXml(InfoPlugin.class, infoPlugin, false).toString();
  475.     }
  476.     /**
  477.      * Serialize to String the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.InfoPlugin}
  478.      *
  479.      * @param infoPlugin Object to be serialized
  480.      * @param prettyPrint if true output the XML with indenting
  481.      * @return Object to be serialized as String
  482.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  483.      */
  484.     public String toString(InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  485.         return this.objToXml(InfoPlugin.class, infoPlugin, prettyPrint).toString();
  486.     }
  487.    
  488.    
  489.    
  490.     /*
  491.      =================================================================================
  492.      Object: configurazione-servizio-azione
  493.      =================================================================================
  494.     */
  495.    
  496.     /**
  497.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  498.      *
  499.      * @param fileName Xml file to serialize the object <var>configurazioneServizioAzione</var>
  500.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  501.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  502.      */
  503.     public void write(String fileName,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  504.         this.objToXml(fileName, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  505.     }
  506.     /**
  507.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  508.      *
  509.      * @param fileName Xml file to serialize the object <var>configurazioneServizioAzione</var>
  510.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  511.      * @param prettyPrint if true output the XML with indenting
  512.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  513.      */
  514.     public void write(String fileName,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  515.         this.objToXml(fileName, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  516.     }
  517.    
  518.     /**
  519.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  520.      *
  521.      * @param file Xml file to serialize the object <var>configurazioneServizioAzione</var>
  522.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  523.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  524.      */
  525.     public void write(File file,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  526.         this.objToXml(file, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  527.     }
  528.     /**
  529.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  530.      *
  531.      * @param file Xml file to serialize the object <var>configurazioneServizioAzione</var>
  532.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  533.      * @param prettyPrint if true output the XML with indenting
  534.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  535.      */
  536.     public void write(File file,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  537.         this.objToXml(file, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  538.     }
  539.    
  540.     /**
  541.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  542.      *
  543.      * @param out OutputStream to serialize the object <var>configurazioneServizioAzione</var>
  544.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  545.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  546.      */
  547.     public void write(OutputStream out,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  548.         this.objToXml(out, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  549.     }
  550.     /**
  551.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  552.      *
  553.      * @param out OutputStream to serialize the object <var>configurazioneServizioAzione</var>
  554.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  555.      * @param prettyPrint if true output the XML with indenting
  556.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  557.      */
  558.     public void write(OutputStream out,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  559.         this.objToXml(out, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  560.     }
  561.            
  562.     /**
  563.      * Serialize to byte array the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  564.      *
  565.      * @param configurazioneServizioAzione Object to be serialized
  566.      * @return Object to be serialized in byte array
  567.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  568.      */
  569.     public byte[] toByteArray(ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  570.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false).toByteArray();
  571.     }
  572.     /**
  573.      * Serialize to byte array the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  574.      *
  575.      * @param configurazioneServizioAzione Object to be serialized
  576.      * @param prettyPrint if true output the XML with indenting
  577.      * @return Object to be serialized in byte array
  578.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  579.      */
  580.     public byte[] toByteArray(ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  581.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint).toByteArray();
  582.     }
  583.    
  584.     /**
  585.      * Serialize to String the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  586.      *
  587.      * @param configurazioneServizioAzione Object to be serialized
  588.      * @return Object to be serialized as String
  589.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  590.      */
  591.     public String toString(ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  592.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false).toString();
  593.     }
  594.     /**
  595.      * Serialize to String the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizioAzione}
  596.      *
  597.      * @param configurazioneServizioAzione Object to be serialized
  598.      * @param prettyPrint if true output the XML with indenting
  599.      * @return Object to be serialized as String
  600.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  601.      */
  602.     public String toString(ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  603.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint).toString();
  604.     }
  605.    
  606.    
  607.    
  608.     /*
  609.      =================================================================================
  610.      Object: configurazione-servizio
  611.      =================================================================================
  612.     */
  613.    
  614.     /**
  615.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  616.      *
  617.      * @param fileName Xml file to serialize the object <var>configurazioneServizio</var>
  618.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  619.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  620.      */
  621.     public void write(String fileName,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  622.         this.objToXml(fileName, ConfigurazioneServizio.class, configurazioneServizio, false);
  623.     }
  624.     /**
  625.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  626.      *
  627.      * @param fileName Xml file to serialize the object <var>configurazioneServizio</var>
  628.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  629.      * @param prettyPrint if true output the XML with indenting
  630.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  631.      */
  632.     public void write(String fileName,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  633.         this.objToXml(fileName, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  634.     }
  635.    
  636.     /**
  637.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  638.      *
  639.      * @param file Xml file to serialize the object <var>configurazioneServizio</var>
  640.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  641.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  642.      */
  643.     public void write(File file,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  644.         this.objToXml(file, ConfigurazioneServizio.class, configurazioneServizio, false);
  645.     }
  646.     /**
  647.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  648.      *
  649.      * @param file Xml file to serialize the object <var>configurazioneServizio</var>
  650.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  651.      * @param prettyPrint if true output the XML with indenting
  652.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  653.      */
  654.     public void write(File file,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  655.         this.objToXml(file, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  656.     }
  657.    
  658.     /**
  659.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  660.      *
  661.      * @param out OutputStream to serialize the object <var>configurazioneServizio</var>
  662.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  663.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  664.      */
  665.     public void write(OutputStream out,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  666.         this.objToXml(out, ConfigurazioneServizio.class, configurazioneServizio, false);
  667.     }
  668.     /**
  669.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  670.      *
  671.      * @param out OutputStream to serialize the object <var>configurazioneServizio</var>
  672.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  673.      * @param prettyPrint if true output the XML with indenting
  674.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  675.      */
  676.     public void write(OutputStream out,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  677.         this.objToXml(out, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  678.     }
  679.            
  680.     /**
  681.      * Serialize to byte array the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  682.      *
  683.      * @param configurazioneServizio Object to be serialized
  684.      * @return Object to be serialized in byte array
  685.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  686.      */
  687.     public byte[] toByteArray(ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  688.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, false).toByteArray();
  689.     }
  690.     /**
  691.      * Serialize to byte array the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  692.      *
  693.      * @param configurazioneServizio Object to be serialized
  694.      * @param prettyPrint if true output the XML with indenting
  695.      * @return Object to be serialized in byte array
  696.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  697.      */
  698.     public byte[] toByteArray(ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  699.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, prettyPrint).toByteArray();
  700.     }
  701.    
  702.     /**
  703.      * Serialize to String the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  704.      *
  705.      * @param configurazioneServizio Object to be serialized
  706.      * @return Object to be serialized as String
  707.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  708.      */
  709.     public String toString(ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  710.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, false).toString();
  711.     }
  712.     /**
  713.      * Serialize to String the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneServizio}
  714.      *
  715.      * @param configurazioneServizio Object to be serialized
  716.      * @param prettyPrint if true output the XML with indenting
  717.      * @return Object to be serialized as String
  718.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  719.      */
  720.     public String toString(ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  721.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, prettyPrint).toString();
  722.     }
  723.    
  724.    
  725.    
  726.     /*
  727.      =================================================================================
  728.      Object: id-configurazione-servizio
  729.      =================================================================================
  730.     */
  731.    
  732.     /**
  733.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  734.      *
  735.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizio</var>
  736.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  737.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  738.      */
  739.     public void write(String fileName,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  740.         this.objToXml(fileName, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  741.     }
  742.     /**
  743.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  744.      *
  745.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizio</var>
  746.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  747.      * @param prettyPrint if true output the XML with indenting
  748.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  749.      */
  750.     public void write(String fileName,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  751.         this.objToXml(fileName, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  752.     }
  753.    
  754.     /**
  755.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  756.      *
  757.      * @param file Xml file to serialize the object <var>idConfigurazioneServizio</var>
  758.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  759.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  760.      */
  761.     public void write(File file,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  762.         this.objToXml(file, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  763.     }
  764.     /**
  765.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  766.      *
  767.      * @param file Xml file to serialize the object <var>idConfigurazioneServizio</var>
  768.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  769.      * @param prettyPrint if true output the XML with indenting
  770.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  771.      */
  772.     public void write(File file,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  773.         this.objToXml(file, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  774.     }
  775.    
  776.     /**
  777.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  778.      *
  779.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizio</var>
  780.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  781.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  782.      */
  783.     public void write(OutputStream out,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  784.         this.objToXml(out, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  785.     }
  786.     /**
  787.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  788.      *
  789.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizio</var>
  790.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  791.      * @param prettyPrint if true output the XML with indenting
  792.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  793.      */
  794.     public void write(OutputStream out,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  795.         this.objToXml(out, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  796.     }
  797.            
  798.     /**
  799.      * Serialize to byte array the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  800.      *
  801.      * @param idConfigurazioneServizio Object to be serialized
  802.      * @return Object to be serialized in byte array
  803.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  804.      */
  805.     public byte[] toByteArray(IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  806.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, false).toByteArray();
  807.     }
  808.     /**
  809.      * Serialize to byte array the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  810.      *
  811.      * @param idConfigurazioneServizio Object to be serialized
  812.      * @param prettyPrint if true output the XML with indenting
  813.      * @return Object to be serialized in byte array
  814.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  815.      */
  816.     public byte[] toByteArray(IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  817.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint).toByteArray();
  818.     }
  819.    
  820.     /**
  821.      * Serialize to String the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  822.      *
  823.      * @param idConfigurazioneServizio Object to be serialized
  824.      * @return Object to be serialized as String
  825.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  826.      */
  827.     public String toString(IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  828.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, false).toString();
  829.     }
  830.     /**
  831.      * Serialize to String the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneServizio}
  832.      *
  833.      * @param idConfigurazioneServizio Object to be serialized
  834.      * @param prettyPrint if true output the XML with indenting
  835.      * @return Object to be serialized as String
  836.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  837.      */
  838.     public String toString(IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  839.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint).toString();
  840.     }
  841.    
  842.    
  843.    
  844.     /*
  845.      =================================================================================
  846.      Object: configurazione-transazione-risorsa-contenuto
  847.      =================================================================================
  848.     */
  849.    
  850.     /**
  851.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  852.      *
  853.      * @param fileName Xml file to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  854.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  855.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  856.      */
  857.     public void write(String fileName,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto) throws SerializerException {
  858.         this.objToXml(fileName, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, false);
  859.     }
  860.     /**
  861.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  862.      *
  863.      * @param fileName Xml file to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  864.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  865.      * @param prettyPrint if true output the XML with indenting
  866.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  867.      */
  868.     public void write(String fileName,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto,boolean prettyPrint) throws SerializerException {
  869.         this.objToXml(fileName, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, prettyPrint);
  870.     }
  871.    
  872.     /**
  873.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  874.      *
  875.      * @param file Xml file to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  876.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  877.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  878.      */
  879.     public void write(File file,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto) throws SerializerException {
  880.         this.objToXml(file, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, false);
  881.     }
  882.     /**
  883.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  884.      *
  885.      * @param file Xml file to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  886.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  887.      * @param prettyPrint if true output the XML with indenting
  888.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  889.      */
  890.     public void write(File file,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto,boolean prettyPrint) throws SerializerException {
  891.         this.objToXml(file, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, prettyPrint);
  892.     }
  893.    
  894.     /**
  895.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  896.      *
  897.      * @param out OutputStream to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  898.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  899.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  900.      */
  901.     public void write(OutputStream out,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto) throws SerializerException {
  902.         this.objToXml(out, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, false);
  903.     }
  904.     /**
  905.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  906.      *
  907.      * @param out OutputStream to serialize the object <var>configurazioneTransazioneRisorsaContenuto</var>
  908.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized in xml file <var>fileName</var>
  909.      * @param prettyPrint if true output the XML with indenting
  910.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  911.      */
  912.     public void write(OutputStream out,ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto,boolean prettyPrint) throws SerializerException {
  913.         this.objToXml(out, ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, prettyPrint);
  914.     }
  915.            
  916.     /**
  917.      * Serialize to byte array the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  918.      *
  919.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized
  920.      * @return Object to be serialized in byte array
  921.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  922.      */
  923.     public byte[] toByteArray(ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto) throws SerializerException {
  924.         return this.objToXml(ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, false).toByteArray();
  925.     }
  926.     /**
  927.      * Serialize to byte array the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  928.      *
  929.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized
  930.      * @param prettyPrint if true output the XML with indenting
  931.      * @return Object to be serialized in byte array
  932.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  933.      */
  934.     public byte[] toByteArray(ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto,boolean prettyPrint) throws SerializerException {
  935.         return this.objToXml(ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, prettyPrint).toByteArray();
  936.     }
  937.    
  938.     /**
  939.      * Serialize to String the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  940.      *
  941.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized
  942.      * @return Object to be serialized as String
  943.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  944.      */
  945.     public String toString(ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto) throws SerializerException {
  946.         return this.objToXml(ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, false).toString();
  947.     }
  948.     /**
  949.      * Serialize to String the object <var>configurazioneTransazioneRisorsaContenuto</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneRisorsaContenuto}
  950.      *
  951.      * @param configurazioneTransazioneRisorsaContenuto Object to be serialized
  952.      * @param prettyPrint if true output the XML with indenting
  953.      * @return Object to be serialized as String
  954.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  955.      */
  956.     public String toString(ConfigurazioneTransazioneRisorsaContenuto configurazioneTransazioneRisorsaContenuto,boolean prettyPrint) throws SerializerException {
  957.         return this.objToXml(ConfigurazioneTransazioneRisorsaContenuto.class, configurazioneTransazioneRisorsaContenuto, prettyPrint).toString();
  958.     }
  959.    
  960.    
  961.    
  962.     /*
  963.      =================================================================================
  964.      Object: id-configurazione-transazione-stato
  965.      =================================================================================
  966.     */
  967.    
  968.     /**
  969.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  970.      *
  971.      * @param fileName Xml file to serialize the object <var>idConfigurazioneTransazioneStato</var>
  972.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  973.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  974.      */
  975.     public void write(String fileName,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato) throws SerializerException {
  976.         this.objToXml(fileName, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, false);
  977.     }
  978.     /**
  979.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  980.      *
  981.      * @param fileName Xml file to serialize the object <var>idConfigurazioneTransazioneStato</var>
  982.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  983.      * @param prettyPrint if true output the XML with indenting
  984.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  985.      */
  986.     public void write(String fileName,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  987.         this.objToXml(fileName, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, prettyPrint);
  988.     }
  989.    
  990.     /**
  991.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  992.      *
  993.      * @param file Xml file to serialize the object <var>idConfigurazioneTransazioneStato</var>
  994.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  995.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  996.      */
  997.     public void write(File file,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato) throws SerializerException {
  998.         this.objToXml(file, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, false);
  999.     }
  1000.     /**
  1001.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1002.      *
  1003.      * @param file Xml file to serialize the object <var>idConfigurazioneTransazioneStato</var>
  1004.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1005.      * @param prettyPrint if true output the XML with indenting
  1006.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1007.      */
  1008.     public void write(File file,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1009.         this.objToXml(file, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, prettyPrint);
  1010.     }
  1011.    
  1012.     /**
  1013.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1014.      *
  1015.      * @param out OutputStream to serialize the object <var>idConfigurazioneTransazioneStato</var>
  1016.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1017.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1018.      */
  1019.     public void write(OutputStream out,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato) throws SerializerException {
  1020.         this.objToXml(out, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, false);
  1021.     }
  1022.     /**
  1023.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1024.      *
  1025.      * @param out OutputStream to serialize the object <var>idConfigurazioneTransazioneStato</var>
  1026.      * @param idConfigurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1027.      * @param prettyPrint if true output the XML with indenting
  1028.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1029.      */
  1030.     public void write(OutputStream out,IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1031.         this.objToXml(out, IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, prettyPrint);
  1032.     }
  1033.            
  1034.     /**
  1035.      * Serialize to byte array the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1036.      *
  1037.      * @param idConfigurazioneTransazioneStato Object to be serialized
  1038.      * @return Object to be serialized in byte array
  1039.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1040.      */
  1041.     public byte[] toByteArray(IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato) throws SerializerException {
  1042.         return this.objToXml(IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, false).toByteArray();
  1043.     }
  1044.     /**
  1045.      * Serialize to byte array the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1046.      *
  1047.      * @param idConfigurazioneTransazioneStato Object to be serialized
  1048.      * @param prettyPrint if true output the XML with indenting
  1049.      * @return Object to be serialized in byte array
  1050.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1051.      */
  1052.     public byte[] toByteArray(IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1053.         return this.objToXml(IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, prettyPrint).toByteArray();
  1054.     }
  1055.    
  1056.     /**
  1057.      * Serialize to String the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1058.      *
  1059.      * @param idConfigurazioneTransazioneStato Object to be serialized
  1060.      * @return Object to be serialized as String
  1061.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1062.      */
  1063.     public String toString(IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato) throws SerializerException {
  1064.         return this.objToXml(IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, false).toString();
  1065.     }
  1066.     /**
  1067.      * Serialize to String the object <var>idConfigurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdConfigurazioneTransazioneStato}
  1068.      *
  1069.      * @param idConfigurazioneTransazioneStato Object to be serialized
  1070.      * @param prettyPrint if true output the XML with indenting
  1071.      * @return Object to be serialized as String
  1072.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1073.      */
  1074.     public String toString(IdConfigurazioneTransazioneStato idConfigurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1075.         return this.objToXml(IdConfigurazioneTransazioneStato.class, idConfigurazioneTransazioneStato, prettyPrint).toString();
  1076.     }
  1077.    
  1078.    
  1079.    
  1080.     /*
  1081.      =================================================================================
  1082.      Object: configurazione-transazione
  1083.      =================================================================================
  1084.     */
  1085.    
  1086.     /**
  1087.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1088.      *
  1089.      * @param fileName Xml file to serialize the object <var>configurazioneTransazione</var>
  1090.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1091.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1092.      */
  1093.     public void write(String fileName,ConfigurazioneTransazione configurazioneTransazione) throws SerializerException {
  1094.         this.objToXml(fileName, ConfigurazioneTransazione.class, configurazioneTransazione, false);
  1095.     }
  1096.     /**
  1097.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1098.      *
  1099.      * @param fileName Xml file to serialize the object <var>configurazioneTransazione</var>
  1100.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1101.      * @param prettyPrint if true output the XML with indenting
  1102.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1103.      */
  1104.     public void write(String fileName,ConfigurazioneTransazione configurazioneTransazione,boolean prettyPrint) throws SerializerException {
  1105.         this.objToXml(fileName, ConfigurazioneTransazione.class, configurazioneTransazione, prettyPrint);
  1106.     }
  1107.    
  1108.     /**
  1109.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1110.      *
  1111.      * @param file Xml file to serialize the object <var>configurazioneTransazione</var>
  1112.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1113.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1114.      */
  1115.     public void write(File file,ConfigurazioneTransazione configurazioneTransazione) throws SerializerException {
  1116.         this.objToXml(file, ConfigurazioneTransazione.class, configurazioneTransazione, false);
  1117.     }
  1118.     /**
  1119.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1120.      *
  1121.      * @param file Xml file to serialize the object <var>configurazioneTransazione</var>
  1122.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1123.      * @param prettyPrint if true output the XML with indenting
  1124.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1125.      */
  1126.     public void write(File file,ConfigurazioneTransazione configurazioneTransazione,boolean prettyPrint) throws SerializerException {
  1127.         this.objToXml(file, ConfigurazioneTransazione.class, configurazioneTransazione, prettyPrint);
  1128.     }
  1129.    
  1130.     /**
  1131.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1132.      *
  1133.      * @param out OutputStream to serialize the object <var>configurazioneTransazione</var>
  1134.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1135.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1136.      */
  1137.     public void write(OutputStream out,ConfigurazioneTransazione configurazioneTransazione) throws SerializerException {
  1138.         this.objToXml(out, ConfigurazioneTransazione.class, configurazioneTransazione, false);
  1139.     }
  1140.     /**
  1141.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1142.      *
  1143.      * @param out OutputStream to serialize the object <var>configurazioneTransazione</var>
  1144.      * @param configurazioneTransazione Object to be serialized in xml file <var>fileName</var>
  1145.      * @param prettyPrint if true output the XML with indenting
  1146.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1147.      */
  1148.     public void write(OutputStream out,ConfigurazioneTransazione configurazioneTransazione,boolean prettyPrint) throws SerializerException {
  1149.         this.objToXml(out, ConfigurazioneTransazione.class, configurazioneTransazione, prettyPrint);
  1150.     }
  1151.            
  1152.     /**
  1153.      * Serialize to byte array the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1154.      *
  1155.      * @param configurazioneTransazione Object to be serialized
  1156.      * @return Object to be serialized in byte array
  1157.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1158.      */
  1159.     public byte[] toByteArray(ConfigurazioneTransazione configurazioneTransazione) throws SerializerException {
  1160.         return this.objToXml(ConfigurazioneTransazione.class, configurazioneTransazione, false).toByteArray();
  1161.     }
  1162.     /**
  1163.      * Serialize to byte array the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1164.      *
  1165.      * @param configurazioneTransazione Object to be serialized
  1166.      * @param prettyPrint if true output the XML with indenting
  1167.      * @return Object to be serialized in byte array
  1168.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1169.      */
  1170.     public byte[] toByteArray(ConfigurazioneTransazione configurazioneTransazione,boolean prettyPrint) throws SerializerException {
  1171.         return this.objToXml(ConfigurazioneTransazione.class, configurazioneTransazione, prettyPrint).toByteArray();
  1172.     }
  1173.    
  1174.     /**
  1175.      * Serialize to String the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1176.      *
  1177.      * @param configurazioneTransazione Object to be serialized
  1178.      * @return Object to be serialized as String
  1179.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1180.      */
  1181.     public String toString(ConfigurazioneTransazione configurazioneTransazione) throws SerializerException {
  1182.         return this.objToXml(ConfigurazioneTransazione.class, configurazioneTransazione, false).toString();
  1183.     }
  1184.     /**
  1185.      * Serialize to String the object <var>configurazioneTransazione</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazione}
  1186.      *
  1187.      * @param configurazioneTransazione Object to be serialized
  1188.      * @param prettyPrint if true output the XML with indenting
  1189.      * @return Object to be serialized as String
  1190.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1191.      */
  1192.     public String toString(ConfigurazioneTransazione configurazioneTransazione,boolean prettyPrint) throws SerializerException {
  1193.         return this.objToXml(ConfigurazioneTransazione.class, configurazioneTransazione, prettyPrint).toString();
  1194.     }
  1195.    
  1196.    
  1197.    
  1198.     /*
  1199.      =================================================================================
  1200.      Object: configurazione-transazione-plugin
  1201.      =================================================================================
  1202.     */
  1203.    
  1204.     /**
  1205.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1206.      *
  1207.      * @param fileName Xml file to serialize the object <var>configurazioneTransazionePlugin</var>
  1208.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1209.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1210.      */
  1211.     public void write(String fileName,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin) throws SerializerException {
  1212.         this.objToXml(fileName, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, false);
  1213.     }
  1214.     /**
  1215.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1216.      *
  1217.      * @param fileName Xml file to serialize the object <var>configurazioneTransazionePlugin</var>
  1218.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1219.      * @param prettyPrint if true output the XML with indenting
  1220.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1221.      */
  1222.     public void write(String fileName,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin,boolean prettyPrint) throws SerializerException {
  1223.         this.objToXml(fileName, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, prettyPrint);
  1224.     }
  1225.    
  1226.     /**
  1227.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1228.      *
  1229.      * @param file Xml file to serialize the object <var>configurazioneTransazionePlugin</var>
  1230.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1231.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1232.      */
  1233.     public void write(File file,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin) throws SerializerException {
  1234.         this.objToXml(file, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, false);
  1235.     }
  1236.     /**
  1237.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1238.      *
  1239.      * @param file Xml file to serialize the object <var>configurazioneTransazionePlugin</var>
  1240.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1241.      * @param prettyPrint if true output the XML with indenting
  1242.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1243.      */
  1244.     public void write(File file,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin,boolean prettyPrint) throws SerializerException {
  1245.         this.objToXml(file, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, prettyPrint);
  1246.     }
  1247.    
  1248.     /**
  1249.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1250.      *
  1251.      * @param out OutputStream to serialize the object <var>configurazioneTransazionePlugin</var>
  1252.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1253.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1254.      */
  1255.     public void write(OutputStream out,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin) throws SerializerException {
  1256.         this.objToXml(out, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, false);
  1257.     }
  1258.     /**
  1259.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1260.      *
  1261.      * @param out OutputStream to serialize the object <var>configurazioneTransazionePlugin</var>
  1262.      * @param configurazioneTransazionePlugin Object to be serialized in xml file <var>fileName</var>
  1263.      * @param prettyPrint if true output the XML with indenting
  1264.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1265.      */
  1266.     public void write(OutputStream out,ConfigurazioneTransazionePlugin configurazioneTransazionePlugin,boolean prettyPrint) throws SerializerException {
  1267.         this.objToXml(out, ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, prettyPrint);
  1268.     }
  1269.            
  1270.     /**
  1271.      * Serialize to byte array the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1272.      *
  1273.      * @param configurazioneTransazionePlugin Object to be serialized
  1274.      * @return Object to be serialized in byte array
  1275.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1276.      */
  1277.     public byte[] toByteArray(ConfigurazioneTransazionePlugin configurazioneTransazionePlugin) throws SerializerException {
  1278.         return this.objToXml(ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, false).toByteArray();
  1279.     }
  1280.     /**
  1281.      * Serialize to byte array the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1282.      *
  1283.      * @param configurazioneTransazionePlugin Object to be serialized
  1284.      * @param prettyPrint if true output the XML with indenting
  1285.      * @return Object to be serialized in byte array
  1286.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1287.      */
  1288.     public byte[] toByteArray(ConfigurazioneTransazionePlugin configurazioneTransazionePlugin,boolean prettyPrint) throws SerializerException {
  1289.         return this.objToXml(ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, prettyPrint).toByteArray();
  1290.     }
  1291.    
  1292.     /**
  1293.      * Serialize to String the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1294.      *
  1295.      * @param configurazioneTransazionePlugin Object to be serialized
  1296.      * @return Object to be serialized as String
  1297.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1298.      */
  1299.     public String toString(ConfigurazioneTransazionePlugin configurazioneTransazionePlugin) throws SerializerException {
  1300.         return this.objToXml(ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, false).toString();
  1301.     }
  1302.     /**
  1303.      * Serialize to String the object <var>configurazioneTransazionePlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazionePlugin}
  1304.      *
  1305.      * @param configurazioneTransazionePlugin Object to be serialized
  1306.      * @param prettyPrint if true output the XML with indenting
  1307.      * @return Object to be serialized as String
  1308.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1309.      */
  1310.     public String toString(ConfigurazioneTransazionePlugin configurazioneTransazionePlugin,boolean prettyPrint) throws SerializerException {
  1311.         return this.objToXml(ConfigurazioneTransazionePlugin.class, configurazioneTransazionePlugin, prettyPrint).toString();
  1312.     }
  1313.    
  1314.    
  1315.    
  1316.     /*
  1317.      =================================================================================
  1318.      Object: configurazione-transazione-stato
  1319.      =================================================================================
  1320.     */
  1321.    
  1322.     /**
  1323.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1324.      *
  1325.      * @param fileName Xml file to serialize the object <var>configurazioneTransazioneStato</var>
  1326.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1327.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1328.      */
  1329.     public void write(String fileName,ConfigurazioneTransazioneStato configurazioneTransazioneStato) throws SerializerException {
  1330.         this.objToXml(fileName, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, false);
  1331.     }
  1332.     /**
  1333.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1334.      *
  1335.      * @param fileName Xml file to serialize the object <var>configurazioneTransazioneStato</var>
  1336.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1337.      * @param prettyPrint if true output the XML with indenting
  1338.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1339.      */
  1340.     public void write(String fileName,ConfigurazioneTransazioneStato configurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1341.         this.objToXml(fileName, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, prettyPrint);
  1342.     }
  1343.    
  1344.     /**
  1345.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1346.      *
  1347.      * @param file Xml file to serialize the object <var>configurazioneTransazioneStato</var>
  1348.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1349.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1350.      */
  1351.     public void write(File file,ConfigurazioneTransazioneStato configurazioneTransazioneStato) throws SerializerException {
  1352.         this.objToXml(file, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, false);
  1353.     }
  1354.     /**
  1355.      * Serialize to file system in <var>file</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1356.      *
  1357.      * @param file Xml file to serialize the object <var>configurazioneTransazioneStato</var>
  1358.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1359.      * @param prettyPrint if true output the XML with indenting
  1360.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1361.      */
  1362.     public void write(File file,ConfigurazioneTransazioneStato configurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1363.         this.objToXml(file, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, prettyPrint);
  1364.     }
  1365.    
  1366.     /**
  1367.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1368.      *
  1369.      * @param out OutputStream to serialize the object <var>configurazioneTransazioneStato</var>
  1370.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1371.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1372.      */
  1373.     public void write(OutputStream out,ConfigurazioneTransazioneStato configurazioneTransazioneStato) throws SerializerException {
  1374.         this.objToXml(out, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, false);
  1375.     }
  1376.     /**
  1377.      * Serialize to output stream <var>out</var> the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1378.      *
  1379.      * @param out OutputStream to serialize the object <var>configurazioneTransazioneStato</var>
  1380.      * @param configurazioneTransazioneStato Object to be serialized in xml file <var>fileName</var>
  1381.      * @param prettyPrint if true output the XML with indenting
  1382.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1383.      */
  1384.     public void write(OutputStream out,ConfigurazioneTransazioneStato configurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1385.         this.objToXml(out, ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, prettyPrint);
  1386.     }
  1387.            
  1388.     /**
  1389.      * Serialize to byte array the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1390.      *
  1391.      * @param configurazioneTransazioneStato Object to be serialized
  1392.      * @return Object to be serialized in byte array
  1393.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1394.      */
  1395.     public byte[] toByteArray(ConfigurazioneTransazioneStato configurazioneTransazioneStato) throws SerializerException {
  1396.         return this.objToXml(ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, false).toByteArray();
  1397.     }
  1398.     /**
  1399.      * Serialize to byte array the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1400.      *
  1401.      * @param configurazioneTransazioneStato Object to be serialized
  1402.      * @param prettyPrint if true output the XML with indenting
  1403.      * @return Object to be serialized in byte array
  1404.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1405.      */
  1406.     public byte[] toByteArray(ConfigurazioneTransazioneStato configurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1407.         return this.objToXml(ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, prettyPrint).toByteArray();
  1408.     }
  1409.    
  1410.     /**
  1411.      * Serialize to String the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1412.      *
  1413.      * @param configurazioneTransazioneStato Object to be serialized
  1414.      * @return Object to be serialized as String
  1415.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1416.      */
  1417.     public String toString(ConfigurazioneTransazioneStato configurazioneTransazioneStato) throws SerializerException {
  1418.         return this.objToXml(ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, false).toString();
  1419.     }
  1420.     /**
  1421.      * Serialize to String the object <var>configurazioneTransazioneStato</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.ConfigurazioneTransazioneStato}
  1422.      *
  1423.      * @param configurazioneTransazioneStato Object to be serialized
  1424.      * @param prettyPrint if true output the XML with indenting
  1425.      * @return Object to be serialized as String
  1426.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1427.      */
  1428.     public String toString(ConfigurazioneTransazioneStato configurazioneTransazioneStato,boolean prettyPrint) throws SerializerException {
  1429.         return this.objToXml(ConfigurazioneTransazioneStato.class, configurazioneTransazioneStato, prettyPrint).toString();
  1430.     }
  1431.    
  1432.    
  1433.    
  1434.     /*
  1435.      =================================================================================
  1436.      Object: id-plugin
  1437.      =================================================================================
  1438.     */
  1439.    
  1440.     /**
  1441.      * Serialize to file system in <var>fileName</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1442.      *
  1443.      * @param fileName Xml file to serialize the object <var>idPlugin</var>
  1444.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1445.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1446.      */
  1447.     public void write(String fileName,IdPlugin idPlugin) throws SerializerException {
  1448.         this.objToXml(fileName, IdPlugin.class, idPlugin, false);
  1449.     }
  1450.     /**
  1451.      * Serialize to file system in <var>fileName</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1452.      *
  1453.      * @param fileName Xml file to serialize the object <var>idPlugin</var>
  1454.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1455.      * @param prettyPrint if true output the XML with indenting
  1456.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1457.      */
  1458.     public void write(String fileName,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  1459.         this.objToXml(fileName, IdPlugin.class, idPlugin, prettyPrint);
  1460.     }
  1461.    
  1462.     /**
  1463.      * Serialize to file system in <var>file</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1464.      *
  1465.      * @param file Xml file to serialize the object <var>idPlugin</var>
  1466.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1467.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1468.      */
  1469.     public void write(File file,IdPlugin idPlugin) throws SerializerException {
  1470.         this.objToXml(file, IdPlugin.class, idPlugin, false);
  1471.     }
  1472.     /**
  1473.      * Serialize to file system in <var>file</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1474.      *
  1475.      * @param file Xml file to serialize the object <var>idPlugin</var>
  1476.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1477.      * @param prettyPrint if true output the XML with indenting
  1478.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1479.      */
  1480.     public void write(File file,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  1481.         this.objToXml(file, IdPlugin.class, idPlugin, prettyPrint);
  1482.     }
  1483.    
  1484.     /**
  1485.      * Serialize to output stream <var>out</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1486.      *
  1487.      * @param out OutputStream to serialize the object <var>idPlugin</var>
  1488.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1489.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1490.      */
  1491.     public void write(OutputStream out,IdPlugin idPlugin) throws SerializerException {
  1492.         this.objToXml(out, IdPlugin.class, idPlugin, false);
  1493.     }
  1494.     /**
  1495.      * Serialize to output stream <var>out</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1496.      *
  1497.      * @param out OutputStream to serialize the object <var>idPlugin</var>
  1498.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  1499.      * @param prettyPrint if true output the XML with indenting
  1500.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1501.      */
  1502.     public void write(OutputStream out,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  1503.         this.objToXml(out, IdPlugin.class, idPlugin, prettyPrint);
  1504.     }
  1505.            
  1506.     /**
  1507.      * Serialize to byte array the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1508.      *
  1509.      * @param idPlugin Object to be serialized
  1510.      * @return Object to be serialized in byte array
  1511.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1512.      */
  1513.     public byte[] toByteArray(IdPlugin idPlugin) throws SerializerException {
  1514.         return this.objToXml(IdPlugin.class, idPlugin, false).toByteArray();
  1515.     }
  1516.     /**
  1517.      * Serialize to byte array the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1518.      *
  1519.      * @param idPlugin Object to be serialized
  1520.      * @param prettyPrint if true output the XML with indenting
  1521.      * @return Object to be serialized in byte array
  1522.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1523.      */
  1524.     public byte[] toByteArray(IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  1525.         return this.objToXml(IdPlugin.class, idPlugin, prettyPrint).toByteArray();
  1526.     }
  1527.    
  1528.     /**
  1529.      * Serialize to String the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1530.      *
  1531.      * @param idPlugin Object to be serialized
  1532.      * @return Object to be serialized as String
  1533.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1534.      */
  1535.     public String toString(IdPlugin idPlugin) throws SerializerException {
  1536.         return this.objToXml(IdPlugin.class, idPlugin, false).toString();
  1537.     }
  1538.     /**
  1539.      * Serialize to String the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.IdPlugin}
  1540.      *
  1541.      * @param idPlugin Object to be serialized
  1542.      * @param prettyPrint if true output the XML with indenting
  1543.      * @return Object to be serialized as String
  1544.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1545.      */
  1546.     public String toString(IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  1547.         return this.objToXml(IdPlugin.class, idPlugin, prettyPrint).toString();
  1548.     }
  1549.    
  1550.    
  1551.    
  1552.     /*
  1553.      =================================================================================
  1554.      Object: plugin
  1555.      =================================================================================
  1556.     */
  1557.    
  1558.     /**
  1559.      * Serialize to file system in <var>fileName</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1560.      *
  1561.      * @param fileName Xml file to serialize the object <var>plugin</var>
  1562.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1563.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1564.      */
  1565.     public void write(String fileName,Plugin plugin) throws SerializerException {
  1566.         this.objToXml(fileName, Plugin.class, plugin, false);
  1567.     }
  1568.     /**
  1569.      * Serialize to file system in <var>fileName</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1570.      *
  1571.      * @param fileName Xml file to serialize the object <var>plugin</var>
  1572.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1573.      * @param prettyPrint if true output the XML with indenting
  1574.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1575.      */
  1576.     public void write(String fileName,Plugin plugin,boolean prettyPrint) throws SerializerException {
  1577.         this.objToXml(fileName, Plugin.class, plugin, prettyPrint);
  1578.     }
  1579.    
  1580.     /**
  1581.      * Serialize to file system in <var>file</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1582.      *
  1583.      * @param file Xml file to serialize the object <var>plugin</var>
  1584.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1585.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1586.      */
  1587.     public void write(File file,Plugin plugin) throws SerializerException {
  1588.         this.objToXml(file, Plugin.class, plugin, false);
  1589.     }
  1590.     /**
  1591.      * Serialize to file system in <var>file</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1592.      *
  1593.      * @param file Xml file to serialize the object <var>plugin</var>
  1594.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1595.      * @param prettyPrint if true output the XML with indenting
  1596.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1597.      */
  1598.     public void write(File file,Plugin plugin,boolean prettyPrint) throws SerializerException {
  1599.         this.objToXml(file, Plugin.class, plugin, prettyPrint);
  1600.     }
  1601.    
  1602.     /**
  1603.      * Serialize to output stream <var>out</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1604.      *
  1605.      * @param out OutputStream to serialize the object <var>plugin</var>
  1606.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1607.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1608.      */
  1609.     public void write(OutputStream out,Plugin plugin) throws SerializerException {
  1610.         this.objToXml(out, Plugin.class, plugin, false);
  1611.     }
  1612.     /**
  1613.      * Serialize to output stream <var>out</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1614.      *
  1615.      * @param out OutputStream to serialize the object <var>plugin</var>
  1616.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  1617.      * @param prettyPrint if true output the XML with indenting
  1618.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1619.      */
  1620.     public void write(OutputStream out,Plugin plugin,boolean prettyPrint) throws SerializerException {
  1621.         this.objToXml(out, Plugin.class, plugin, prettyPrint);
  1622.     }
  1623.            
  1624.     /**
  1625.      * Serialize to byte array the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1626.      *
  1627.      * @param plugin Object to be serialized
  1628.      * @return Object to be serialized in byte array
  1629.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1630.      */
  1631.     public byte[] toByteArray(Plugin plugin) throws SerializerException {
  1632.         return this.objToXml(Plugin.class, plugin, false).toByteArray();
  1633.     }
  1634.     /**
  1635.      * Serialize to byte array the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1636.      *
  1637.      * @param plugin Object to be serialized
  1638.      * @param prettyPrint if true output the XML with indenting
  1639.      * @return Object to be serialized in byte array
  1640.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1641.      */
  1642.     public byte[] toByteArray(Plugin plugin,boolean prettyPrint) throws SerializerException {
  1643.         return this.objToXml(Plugin.class, plugin, prettyPrint).toByteArray();
  1644.     }
  1645.    
  1646.     /**
  1647.      * Serialize to String the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1648.      *
  1649.      * @param plugin Object to be serialized
  1650.      * @return Object to be serialized as String
  1651.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1652.      */
  1653.     public String toString(Plugin plugin) throws SerializerException {
  1654.         return this.objToXml(Plugin.class, plugin, false).toString();
  1655.     }
  1656.     /**
  1657.      * Serialize to String the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.transazioni.Plugin}
  1658.      *
  1659.      * @param plugin Object to be serialized
  1660.      * @param prettyPrint if true output the XML with indenting
  1661.      * @return Object to be serialized as String
  1662.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1663.      */
  1664.     public String toString(Plugin plugin,boolean prettyPrint) throws SerializerException {
  1665.         return this.objToXml(Plugin.class, plugin, prettyPrint).toString();
  1666.     }
  1667.    
  1668.    
  1669.    

  1670. }