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.ricerche.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.ricerche.InfoPlugin;
  25. import org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione;
  26. import org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio;
  27. import org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio;
  28. import org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione;
  29. import org.openspcoop2.monitor.engine.config.ricerche.IdPlugin;
  30. import org.openspcoop2.monitor.engine.config.ricerche.Plugin;
  31. import org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca;
  32. import org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca;

  33. import java.io.ByteArrayOutputStream;
  34. import java.io.FileOutputStream;
  35. import java.io.OutputStream;
  36. import java.io.File;
  37. import java.lang.reflect.Method;

  38. import javax.xml.bind.JAXBElement;

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


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




  132.     /*
  133.      =================================================================================
  134.      Object: info-plugin
  135.      =================================================================================
  136.     */
  137.    
  138.     /**
  139.      * Serialize to file system in <var>fileName</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  140.      *
  141.      * @param fileName Xml file to serialize the object <var>infoPlugin</var>
  142.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  143.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  144.      */
  145.     public void write(String fileName,InfoPlugin infoPlugin) throws SerializerException {
  146.         this.objToXml(fileName, InfoPlugin.class, infoPlugin, false);
  147.     }
  148.     /**
  149.      * Serialize to file system in <var>fileName</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  150.      *
  151.      * @param fileName Xml file to serialize the object <var>infoPlugin</var>
  152.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  153.      * @param prettyPrint if true output the XML with indenting
  154.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  155.      */
  156.     public void write(String fileName,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  157.         this.objToXml(fileName, InfoPlugin.class, infoPlugin, prettyPrint);
  158.     }
  159.    
  160.     /**
  161.      * Serialize to file system in <var>file</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  162.      *
  163.      * @param file Xml file to serialize the object <var>infoPlugin</var>
  164.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  165.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  166.      */
  167.     public void write(File file,InfoPlugin infoPlugin) throws SerializerException {
  168.         this.objToXml(file, InfoPlugin.class, infoPlugin, false);
  169.     }
  170.     /**
  171.      * Serialize to file system in <var>file</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  172.      *
  173.      * @param file Xml file to serialize the object <var>infoPlugin</var>
  174.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  175.      * @param prettyPrint if true output the XML with indenting
  176.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  177.      */
  178.     public void write(File file,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  179.         this.objToXml(file, InfoPlugin.class, infoPlugin, prettyPrint);
  180.     }
  181.    
  182.     /**
  183.      * Serialize to output stream <var>out</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  184.      *
  185.      * @param out OutputStream to serialize the object <var>infoPlugin</var>
  186.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  187.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  188.      */
  189.     public void write(OutputStream out,InfoPlugin infoPlugin) throws SerializerException {
  190.         this.objToXml(out, InfoPlugin.class, infoPlugin, false);
  191.     }
  192.     /**
  193.      * Serialize to output stream <var>out</var> the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  194.      *
  195.      * @param out OutputStream to serialize the object <var>infoPlugin</var>
  196.      * @param infoPlugin Object to be serialized in xml file <var>fileName</var>
  197.      * @param prettyPrint if true output the XML with indenting
  198.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  199.      */
  200.     public void write(OutputStream out,InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  201.         this.objToXml(out, InfoPlugin.class, infoPlugin, prettyPrint);
  202.     }
  203.            
  204.     /**
  205.      * Serialize to byte array the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  206.      *
  207.      * @param infoPlugin Object to be serialized
  208.      * @return Object to be serialized in byte array
  209.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  210.      */
  211.     public byte[] toByteArray(InfoPlugin infoPlugin) throws SerializerException {
  212.         return this.objToXml(InfoPlugin.class, infoPlugin, false).toByteArray();
  213.     }
  214.     /**
  215.      * Serialize to byte array the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  216.      *
  217.      * @param infoPlugin Object to be serialized
  218.      * @param prettyPrint if true output the XML with indenting
  219.      * @return Object to be serialized in byte array
  220.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  221.      */
  222.     public byte[] toByteArray(InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  223.         return this.objToXml(InfoPlugin.class, infoPlugin, prettyPrint).toByteArray();
  224.     }
  225.    
  226.     /**
  227.      * Serialize to String the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  228.      *
  229.      * @param infoPlugin Object to be serialized
  230.      * @return Object to be serialized as String
  231.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  232.      */
  233.     public String toString(InfoPlugin infoPlugin) throws SerializerException {
  234.         return this.objToXml(InfoPlugin.class, infoPlugin, false).toString();
  235.     }
  236.     /**
  237.      * Serialize to String the object <var>infoPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.InfoPlugin}
  238.      *
  239.      * @param infoPlugin Object to be serialized
  240.      * @param prettyPrint if true output the XML with indenting
  241.      * @return Object to be serialized as String
  242.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  243.      */
  244.     public String toString(InfoPlugin infoPlugin,boolean prettyPrint) throws SerializerException {
  245.         return this.objToXml(InfoPlugin.class, infoPlugin, prettyPrint).toString();
  246.     }
  247.    
  248.    
  249.    
  250.     /*
  251.      =================================================================================
  252.      Object: configurazione-servizio-azione
  253.      =================================================================================
  254.     */
  255.    
  256.     /**
  257.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  258.      *
  259.      * @param fileName Xml file to serialize the object <var>configurazioneServizioAzione</var>
  260.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  261.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  262.      */
  263.     public void write(String fileName,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  264.         this.objToXml(fileName, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  265.     }
  266.     /**
  267.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  268.      *
  269.      * @param fileName Xml file to serialize the object <var>configurazioneServizioAzione</var>
  270.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  271.      * @param prettyPrint if true output the XML with indenting
  272.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  273.      */
  274.     public void write(String fileName,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  275.         this.objToXml(fileName, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  276.     }
  277.    
  278.     /**
  279.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  280.      *
  281.      * @param file Xml file to serialize the object <var>configurazioneServizioAzione</var>
  282.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  283.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  284.      */
  285.     public void write(File file,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  286.         this.objToXml(file, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  287.     }
  288.     /**
  289.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  290.      *
  291.      * @param file Xml file to serialize the object <var>configurazioneServizioAzione</var>
  292.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  293.      * @param prettyPrint if true output the XML with indenting
  294.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  295.      */
  296.     public void write(File file,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  297.         this.objToXml(file, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  298.     }
  299.    
  300.     /**
  301.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  302.      *
  303.      * @param out OutputStream to serialize the object <var>configurazioneServizioAzione</var>
  304.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  305.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  306.      */
  307.     public void write(OutputStream out,ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  308.         this.objToXml(out, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false);
  309.     }
  310.     /**
  311.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  312.      *
  313.      * @param out OutputStream to serialize the object <var>configurazioneServizioAzione</var>
  314.      * @param configurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  315.      * @param prettyPrint if true output the XML with indenting
  316.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  317.      */
  318.     public void write(OutputStream out,ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  319.         this.objToXml(out, ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint);
  320.     }
  321.            
  322.     /**
  323.      * Serialize to byte array the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  324.      *
  325.      * @param configurazioneServizioAzione Object to be serialized
  326.      * @return Object to be serialized in byte array
  327.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  328.      */
  329.     public byte[] toByteArray(ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  330.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false).toByteArray();
  331.     }
  332.     /**
  333.      * Serialize to byte array the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  334.      *
  335.      * @param configurazioneServizioAzione Object to be serialized
  336.      * @param prettyPrint if true output the XML with indenting
  337.      * @return Object to be serialized in byte array
  338.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  339.      */
  340.     public byte[] toByteArray(ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  341.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint).toByteArray();
  342.     }
  343.    
  344.     /**
  345.      * Serialize to String the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  346.      *
  347.      * @param configurazioneServizioAzione Object to be serialized
  348.      * @return Object to be serialized as String
  349.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  350.      */
  351.     public String toString(ConfigurazioneServizioAzione configurazioneServizioAzione) throws SerializerException {
  352.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, false).toString();
  353.     }
  354.     /**
  355.      * Serialize to String the object <var>configurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizioAzione}
  356.      *
  357.      * @param configurazioneServizioAzione Object to be serialized
  358.      * @param prettyPrint if true output the XML with indenting
  359.      * @return Object to be serialized as String
  360.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  361.      */
  362.     public String toString(ConfigurazioneServizioAzione configurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  363.         return this.objToXml(ConfigurazioneServizioAzione.class, configurazioneServizioAzione, prettyPrint).toString();
  364.     }
  365.    
  366.    
  367.    
  368.     /*
  369.      =================================================================================
  370.      Object: configurazione-servizio
  371.      =================================================================================
  372.     */
  373.    
  374.     /**
  375.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  376.      *
  377.      * @param fileName Xml file to serialize the object <var>configurazioneServizio</var>
  378.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  379.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  380.      */
  381.     public void write(String fileName,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  382.         this.objToXml(fileName, ConfigurazioneServizio.class, configurazioneServizio, false);
  383.     }
  384.     /**
  385.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  386.      *
  387.      * @param fileName Xml file to serialize the object <var>configurazioneServizio</var>
  388.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  389.      * @param prettyPrint if true output the XML with indenting
  390.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  391.      */
  392.     public void write(String fileName,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  393.         this.objToXml(fileName, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  394.     }
  395.    
  396.     /**
  397.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  398.      *
  399.      * @param file Xml file to serialize the object <var>configurazioneServizio</var>
  400.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  401.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  402.      */
  403.     public void write(File file,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  404.         this.objToXml(file, ConfigurazioneServizio.class, configurazioneServizio, false);
  405.     }
  406.     /**
  407.      * Serialize to file system in <var>file</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  408.      *
  409.      * @param file Xml file to serialize the object <var>configurazioneServizio</var>
  410.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  411.      * @param prettyPrint if true output the XML with indenting
  412.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  413.      */
  414.     public void write(File file,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  415.         this.objToXml(file, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  416.     }
  417.    
  418.     /**
  419.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  420.      *
  421.      * @param out OutputStream to serialize the object <var>configurazioneServizio</var>
  422.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  423.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  424.      */
  425.     public void write(OutputStream out,ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  426.         this.objToXml(out, ConfigurazioneServizio.class, configurazioneServizio, false);
  427.     }
  428.     /**
  429.      * Serialize to output stream <var>out</var> the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  430.      *
  431.      * @param out OutputStream to serialize the object <var>configurazioneServizio</var>
  432.      * @param configurazioneServizio Object to be serialized in xml file <var>fileName</var>
  433.      * @param prettyPrint if true output the XML with indenting
  434.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  435.      */
  436.     public void write(OutputStream out,ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  437.         this.objToXml(out, ConfigurazioneServizio.class, configurazioneServizio, prettyPrint);
  438.     }
  439.            
  440.     /**
  441.      * Serialize to byte array the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  442.      *
  443.      * @param configurazioneServizio Object to be serialized
  444.      * @return Object to be serialized in byte array
  445.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  446.      */
  447.     public byte[] toByteArray(ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  448.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, false).toByteArray();
  449.     }
  450.     /**
  451.      * Serialize to byte array the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  452.      *
  453.      * @param configurazioneServizio Object to be serialized
  454.      * @param prettyPrint if true output the XML with indenting
  455.      * @return Object to be serialized in byte array
  456.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  457.      */
  458.     public byte[] toByteArray(ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  459.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, prettyPrint).toByteArray();
  460.     }
  461.    
  462.     /**
  463.      * Serialize to String the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  464.      *
  465.      * @param configurazioneServizio Object to be serialized
  466.      * @return Object to be serialized as String
  467.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  468.      */
  469.     public String toString(ConfigurazioneServizio configurazioneServizio) throws SerializerException {
  470.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, false).toString();
  471.     }
  472.     /**
  473.      * Serialize to String the object <var>configurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneServizio}
  474.      *
  475.      * @param configurazioneServizio Object to be serialized
  476.      * @param prettyPrint if true output the XML with indenting
  477.      * @return Object to be serialized as String
  478.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  479.      */
  480.     public String toString(ConfigurazioneServizio configurazioneServizio,boolean prettyPrint) throws SerializerException {
  481.         return this.objToXml(ConfigurazioneServizio.class, configurazioneServizio, prettyPrint).toString();
  482.     }
  483.    
  484.    
  485.    
  486.     /*
  487.      =================================================================================
  488.      Object: id-configurazione-servizio
  489.      =================================================================================
  490.     */
  491.    
  492.     /**
  493.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  494.      *
  495.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizio</var>
  496.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  497.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  498.      */
  499.     public void write(String fileName,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  500.         this.objToXml(fileName, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  501.     }
  502.     /**
  503.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  504.      *
  505.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizio</var>
  506.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  507.      * @param prettyPrint if true output the XML with indenting
  508.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  509.      */
  510.     public void write(String fileName,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  511.         this.objToXml(fileName, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  512.     }
  513.    
  514.     /**
  515.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  516.      *
  517.      * @param file Xml file to serialize the object <var>idConfigurazioneServizio</var>
  518.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  519.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  520.      */
  521.     public void write(File file,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  522.         this.objToXml(file, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  523.     }
  524.     /**
  525.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  526.      *
  527.      * @param file Xml file to serialize the object <var>idConfigurazioneServizio</var>
  528.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  529.      * @param prettyPrint if true output the XML with indenting
  530.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  531.      */
  532.     public void write(File file,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  533.         this.objToXml(file, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  534.     }
  535.    
  536.     /**
  537.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  538.      *
  539.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizio</var>
  540.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  541.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  542.      */
  543.     public void write(OutputStream out,IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  544.         this.objToXml(out, IdConfigurazioneServizio.class, idConfigurazioneServizio, false);
  545.     }
  546.     /**
  547.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  548.      *
  549.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizio</var>
  550.      * @param idConfigurazioneServizio Object to be serialized in xml file <var>fileName</var>
  551.      * @param prettyPrint if true output the XML with indenting
  552.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  553.      */
  554.     public void write(OutputStream out,IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  555.         this.objToXml(out, IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint);
  556.     }
  557.            
  558.     /**
  559.      * Serialize to byte array the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  560.      *
  561.      * @param idConfigurazioneServizio Object to be serialized
  562.      * @return Object to be serialized in byte array
  563.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  564.      */
  565.     public byte[] toByteArray(IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  566.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, false).toByteArray();
  567.     }
  568.     /**
  569.      * Serialize to byte array the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  570.      *
  571.      * @param idConfigurazioneServizio Object to be serialized
  572.      * @param prettyPrint if true output the XML with indenting
  573.      * @return Object to be serialized in byte array
  574.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  575.      */
  576.     public byte[] toByteArray(IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  577.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint).toByteArray();
  578.     }
  579.    
  580.     /**
  581.      * Serialize to String the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  582.      *
  583.      * @param idConfigurazioneServizio Object to be serialized
  584.      * @return Object to be serialized as String
  585.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  586.      */
  587.     public String toString(IdConfigurazioneServizio idConfigurazioneServizio) throws SerializerException {
  588.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, false).toString();
  589.     }
  590.     /**
  591.      * Serialize to String the object <var>idConfigurazioneServizio</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizio}
  592.      *
  593.      * @param idConfigurazioneServizio Object to be serialized
  594.      * @param prettyPrint if true output the XML with indenting
  595.      * @return Object to be serialized as String
  596.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  597.      */
  598.     public String toString(IdConfigurazioneServizio idConfigurazioneServizio,boolean prettyPrint) throws SerializerException {
  599.         return this.objToXml(IdConfigurazioneServizio.class, idConfigurazioneServizio, prettyPrint).toString();
  600.     }
  601.    
  602.    
  603.    
  604.     /*
  605.      =================================================================================
  606.      Object: id-configurazione-servizio-azione
  607.      =================================================================================
  608.     */
  609.    
  610.     /**
  611.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  612.      *
  613.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  614.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  615.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  616.      */
  617.     public void write(String fileName,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  618.         this.objToXml(fileName, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  619.     }
  620.     /**
  621.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  622.      *
  623.      * @param fileName Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  624.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  625.      * @param prettyPrint if true output the XML with indenting
  626.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  627.      */
  628.     public void write(String fileName,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  629.         this.objToXml(fileName, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  630.     }
  631.    
  632.     /**
  633.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  634.      *
  635.      * @param file Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  636.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  637.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  638.      */
  639.     public void write(File file,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  640.         this.objToXml(file, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  641.     }
  642.     /**
  643.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  644.      *
  645.      * @param file Xml file to serialize the object <var>idConfigurazioneServizioAzione</var>
  646.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  647.      * @param prettyPrint if true output the XML with indenting
  648.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  649.      */
  650.     public void write(File file,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  651.         this.objToXml(file, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  652.     }
  653.    
  654.     /**
  655.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  656.      *
  657.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizioAzione</var>
  658.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  659.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  660.      */
  661.     public void write(OutputStream out,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  662.         this.objToXml(out, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false);
  663.     }
  664.     /**
  665.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  666.      *
  667.      * @param out OutputStream to serialize the object <var>idConfigurazioneServizioAzione</var>
  668.      * @param idConfigurazioneServizioAzione Object to be serialized in xml file <var>fileName</var>
  669.      * @param prettyPrint if true output the XML with indenting
  670.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  671.      */
  672.     public void write(OutputStream out,IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  673.         this.objToXml(out, IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint);
  674.     }
  675.            
  676.     /**
  677.      * Serialize to byte array the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  678.      *
  679.      * @param idConfigurazioneServizioAzione Object to be serialized
  680.      * @return Object to be serialized in byte array
  681.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  682.      */
  683.     public byte[] toByteArray(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  684.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false).toByteArray();
  685.     }
  686.     /**
  687.      * Serialize to byte array the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  688.      *
  689.      * @param idConfigurazioneServizioAzione Object to be serialized
  690.      * @param prettyPrint if true output the XML with indenting
  691.      * @return Object to be serialized in byte array
  692.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  693.      */
  694.     public byte[] toByteArray(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  695.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint).toByteArray();
  696.     }
  697.    
  698.     /**
  699.      * Serialize to String the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  700.      *
  701.      * @param idConfigurazioneServizioAzione Object to be serialized
  702.      * @return Object to be serialized as String
  703.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  704.      */
  705.     public String toString(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws SerializerException {
  706.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, false).toString();
  707.     }
  708.     /**
  709.      * Serialize to String the object <var>idConfigurazioneServizioAzione</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneServizioAzione}
  710.      *
  711.      * @param idConfigurazioneServizioAzione Object to be serialized
  712.      * @param prettyPrint if true output the XML with indenting
  713.      * @return Object to be serialized as String
  714.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  715.      */
  716.     public String toString(IdConfigurazioneServizioAzione idConfigurazioneServizioAzione,boolean prettyPrint) throws SerializerException {
  717.         return this.objToXml(IdConfigurazioneServizioAzione.class, idConfigurazioneServizioAzione, prettyPrint).toString();
  718.     }
  719.    
  720.    
  721.    
  722.     /*
  723.      =================================================================================
  724.      Object: id-plugin
  725.      =================================================================================
  726.     */
  727.    
  728.     /**
  729.      * Serialize to file system in <var>fileName</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  730.      *
  731.      * @param fileName Xml file to serialize the object <var>idPlugin</var>
  732.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  733.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  734.      */
  735.     public void write(String fileName,IdPlugin idPlugin) throws SerializerException {
  736.         this.objToXml(fileName, IdPlugin.class, idPlugin, false);
  737.     }
  738.     /**
  739.      * Serialize to file system in <var>fileName</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  740.      *
  741.      * @param fileName Xml file to serialize the object <var>idPlugin</var>
  742.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  743.      * @param prettyPrint if true output the XML with indenting
  744.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  745.      */
  746.     public void write(String fileName,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  747.         this.objToXml(fileName, IdPlugin.class, idPlugin, prettyPrint);
  748.     }
  749.    
  750.     /**
  751.      * Serialize to file system in <var>file</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  752.      *
  753.      * @param file Xml file to serialize the object <var>idPlugin</var>
  754.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  755.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  756.      */
  757.     public void write(File file,IdPlugin idPlugin) throws SerializerException {
  758.         this.objToXml(file, IdPlugin.class, idPlugin, false);
  759.     }
  760.     /**
  761.      * Serialize to file system in <var>file</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  762.      *
  763.      * @param file Xml file to serialize the object <var>idPlugin</var>
  764.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  765.      * @param prettyPrint if true output the XML with indenting
  766.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  767.      */
  768.     public void write(File file,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  769.         this.objToXml(file, IdPlugin.class, idPlugin, prettyPrint);
  770.     }
  771.    
  772.     /**
  773.      * Serialize to output stream <var>out</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  774.      *
  775.      * @param out OutputStream to serialize the object <var>idPlugin</var>
  776.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  777.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  778.      */
  779.     public void write(OutputStream out,IdPlugin idPlugin) throws SerializerException {
  780.         this.objToXml(out, IdPlugin.class, idPlugin, false);
  781.     }
  782.     /**
  783.      * Serialize to output stream <var>out</var> the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  784.      *
  785.      * @param out OutputStream to serialize the object <var>idPlugin</var>
  786.      * @param idPlugin Object to be serialized in xml file <var>fileName</var>
  787.      * @param prettyPrint if true output the XML with indenting
  788.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  789.      */
  790.     public void write(OutputStream out,IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  791.         this.objToXml(out, IdPlugin.class, idPlugin, prettyPrint);
  792.     }
  793.            
  794.     /**
  795.      * Serialize to byte array the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  796.      *
  797.      * @param idPlugin Object to be serialized
  798.      * @return Object to be serialized in byte array
  799.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  800.      */
  801.     public byte[] toByteArray(IdPlugin idPlugin) throws SerializerException {
  802.         return this.objToXml(IdPlugin.class, idPlugin, false).toByteArray();
  803.     }
  804.     /**
  805.      * Serialize to byte array the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  806.      *
  807.      * @param idPlugin Object to be serialized
  808.      * @param prettyPrint if true output the XML with indenting
  809.      * @return Object to be serialized in byte array
  810.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  811.      */
  812.     public byte[] toByteArray(IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  813.         return this.objToXml(IdPlugin.class, idPlugin, prettyPrint).toByteArray();
  814.     }
  815.    
  816.     /**
  817.      * Serialize to String the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  818.      *
  819.      * @param idPlugin Object to be serialized
  820.      * @return Object to be serialized as String
  821.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  822.      */
  823.     public String toString(IdPlugin idPlugin) throws SerializerException {
  824.         return this.objToXml(IdPlugin.class, idPlugin, false).toString();
  825.     }
  826.     /**
  827.      * Serialize to String the object <var>idPlugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdPlugin}
  828.      *
  829.      * @param idPlugin Object to be serialized
  830.      * @param prettyPrint if true output the XML with indenting
  831.      * @return Object to be serialized as String
  832.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  833.      */
  834.     public String toString(IdPlugin idPlugin,boolean prettyPrint) throws SerializerException {
  835.         return this.objToXml(IdPlugin.class, idPlugin, prettyPrint).toString();
  836.     }
  837.    
  838.    
  839.    
  840.     /*
  841.      =================================================================================
  842.      Object: plugin
  843.      =================================================================================
  844.     */
  845.    
  846.     /**
  847.      * Serialize to file system in <var>fileName</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  848.      *
  849.      * @param fileName Xml file to serialize the object <var>plugin</var>
  850.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  851.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  852.      */
  853.     public void write(String fileName,Plugin plugin) throws SerializerException {
  854.         this.objToXml(fileName, Plugin.class, plugin, false);
  855.     }
  856.     /**
  857.      * Serialize to file system in <var>fileName</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  858.      *
  859.      * @param fileName Xml file to serialize the object <var>plugin</var>
  860.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  861.      * @param prettyPrint if true output the XML with indenting
  862.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  863.      */
  864.     public void write(String fileName,Plugin plugin,boolean prettyPrint) throws SerializerException {
  865.         this.objToXml(fileName, Plugin.class, plugin, prettyPrint);
  866.     }
  867.    
  868.     /**
  869.      * Serialize to file system in <var>file</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  870.      *
  871.      * @param file Xml file to serialize the object <var>plugin</var>
  872.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  873.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  874.      */
  875.     public void write(File file,Plugin plugin) throws SerializerException {
  876.         this.objToXml(file, Plugin.class, plugin, false);
  877.     }
  878.     /**
  879.      * Serialize to file system in <var>file</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  880.      *
  881.      * @param file Xml file to serialize the object <var>plugin</var>
  882.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  883.      * @param prettyPrint if true output the XML with indenting
  884.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  885.      */
  886.     public void write(File file,Plugin plugin,boolean prettyPrint) throws SerializerException {
  887.         this.objToXml(file, Plugin.class, plugin, prettyPrint);
  888.     }
  889.    
  890.     /**
  891.      * Serialize to output stream <var>out</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  892.      *
  893.      * @param out OutputStream to serialize the object <var>plugin</var>
  894.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  895.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  896.      */
  897.     public void write(OutputStream out,Plugin plugin) throws SerializerException {
  898.         this.objToXml(out, Plugin.class, plugin, false);
  899.     }
  900.     /**
  901.      * Serialize to output stream <var>out</var> the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  902.      *
  903.      * @param out OutputStream to serialize the object <var>plugin</var>
  904.      * @param plugin Object to be serialized in xml file <var>fileName</var>
  905.      * @param prettyPrint if true output the XML with indenting
  906.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  907.      */
  908.     public void write(OutputStream out,Plugin plugin,boolean prettyPrint) throws SerializerException {
  909.         this.objToXml(out, Plugin.class, plugin, prettyPrint);
  910.     }
  911.            
  912.     /**
  913.      * Serialize to byte array the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  914.      *
  915.      * @param plugin Object to be serialized
  916.      * @return Object to be serialized in byte array
  917.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  918.      */
  919.     public byte[] toByteArray(Plugin plugin) throws SerializerException {
  920.         return this.objToXml(Plugin.class, plugin, false).toByteArray();
  921.     }
  922.     /**
  923.      * Serialize to byte array the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  924.      *
  925.      * @param plugin Object to be serialized
  926.      * @param prettyPrint if true output the XML with indenting
  927.      * @return Object to be serialized in byte array
  928.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  929.      */
  930.     public byte[] toByteArray(Plugin plugin,boolean prettyPrint) throws SerializerException {
  931.         return this.objToXml(Plugin.class, plugin, prettyPrint).toByteArray();
  932.     }
  933.    
  934.     /**
  935.      * Serialize to String the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  936.      *
  937.      * @param plugin Object to be serialized
  938.      * @return Object to be serialized as String
  939.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  940.      */
  941.     public String toString(Plugin plugin) throws SerializerException {
  942.         return this.objToXml(Plugin.class, plugin, false).toString();
  943.     }
  944.     /**
  945.      * Serialize to String the object <var>plugin</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.Plugin}
  946.      *
  947.      * @param plugin Object to be serialized
  948.      * @param prettyPrint if true output the XML with indenting
  949.      * @return Object to be serialized as String
  950.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  951.      */
  952.     public String toString(Plugin plugin,boolean prettyPrint) throws SerializerException {
  953.         return this.objToXml(Plugin.class, plugin, prettyPrint).toString();
  954.     }
  955.    
  956.    
  957.    
  958.     /*
  959.      =================================================================================
  960.      Object: configurazione-ricerca
  961.      =================================================================================
  962.     */
  963.    
  964.     /**
  965.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  966.      *
  967.      * @param fileName Xml file to serialize the object <var>configurazioneRicerca</var>
  968.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  969.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  970.      */
  971.     public void write(String fileName,ConfigurazioneRicerca configurazioneRicerca) throws SerializerException {
  972.         this.objToXml(fileName, ConfigurazioneRicerca.class, configurazioneRicerca, false);
  973.     }
  974.     /**
  975.      * Serialize to file system in <var>fileName</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  976.      *
  977.      * @param fileName Xml file to serialize the object <var>configurazioneRicerca</var>
  978.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  979.      * @param prettyPrint if true output the XML with indenting
  980.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  981.      */
  982.     public void write(String fileName,ConfigurazioneRicerca configurazioneRicerca,boolean prettyPrint) throws SerializerException {
  983.         this.objToXml(fileName, ConfigurazioneRicerca.class, configurazioneRicerca, prettyPrint);
  984.     }
  985.    
  986.     /**
  987.      * Serialize to file system in <var>file</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  988.      *
  989.      * @param file Xml file to serialize the object <var>configurazioneRicerca</var>
  990.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  991.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  992.      */
  993.     public void write(File file,ConfigurazioneRicerca configurazioneRicerca) throws SerializerException {
  994.         this.objToXml(file, ConfigurazioneRicerca.class, configurazioneRicerca, false);
  995.     }
  996.     /**
  997.      * Serialize to file system in <var>file</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  998.      *
  999.      * @param file Xml file to serialize the object <var>configurazioneRicerca</var>
  1000.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1001.      * @param prettyPrint if true output the XML with indenting
  1002.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1003.      */
  1004.     public void write(File file,ConfigurazioneRicerca configurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1005.         this.objToXml(file, ConfigurazioneRicerca.class, configurazioneRicerca, prettyPrint);
  1006.     }
  1007.    
  1008.     /**
  1009.      * Serialize to output stream <var>out</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1010.      *
  1011.      * @param out OutputStream to serialize the object <var>configurazioneRicerca</var>
  1012.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1013.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1014.      */
  1015.     public void write(OutputStream out,ConfigurazioneRicerca configurazioneRicerca) throws SerializerException {
  1016.         this.objToXml(out, ConfigurazioneRicerca.class, configurazioneRicerca, false);
  1017.     }
  1018.     /**
  1019.      * Serialize to output stream <var>out</var> the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1020.      *
  1021.      * @param out OutputStream to serialize the object <var>configurazioneRicerca</var>
  1022.      * @param configurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1023.      * @param prettyPrint if true output the XML with indenting
  1024.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1025.      */
  1026.     public void write(OutputStream out,ConfigurazioneRicerca configurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1027.         this.objToXml(out, ConfigurazioneRicerca.class, configurazioneRicerca, prettyPrint);
  1028.     }
  1029.            
  1030.     /**
  1031.      * Serialize to byte array the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1032.      *
  1033.      * @param configurazioneRicerca Object to be serialized
  1034.      * @return Object to be serialized in byte array
  1035.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1036.      */
  1037.     public byte[] toByteArray(ConfigurazioneRicerca configurazioneRicerca) throws SerializerException {
  1038.         return this.objToXml(ConfigurazioneRicerca.class, configurazioneRicerca, false).toByteArray();
  1039.     }
  1040.     /**
  1041.      * Serialize to byte array the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1042.      *
  1043.      * @param configurazioneRicerca Object to be serialized
  1044.      * @param prettyPrint if true output the XML with indenting
  1045.      * @return Object to be serialized in byte array
  1046.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1047.      */
  1048.     public byte[] toByteArray(ConfigurazioneRicerca configurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1049.         return this.objToXml(ConfigurazioneRicerca.class, configurazioneRicerca, prettyPrint).toByteArray();
  1050.     }
  1051.    
  1052.     /**
  1053.      * Serialize to String the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1054.      *
  1055.      * @param configurazioneRicerca Object to be serialized
  1056.      * @return Object to be serialized as String
  1057.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1058.      */
  1059.     public String toString(ConfigurazioneRicerca configurazioneRicerca) throws SerializerException {
  1060.         return this.objToXml(ConfigurazioneRicerca.class, configurazioneRicerca, false).toString();
  1061.     }
  1062.     /**
  1063.      * Serialize to String the object <var>configurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.ConfigurazioneRicerca}
  1064.      *
  1065.      * @param configurazioneRicerca Object to be serialized
  1066.      * @param prettyPrint if true output the XML with indenting
  1067.      * @return Object to be serialized as String
  1068.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1069.      */
  1070.     public String toString(ConfigurazioneRicerca configurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1071.         return this.objToXml(ConfigurazioneRicerca.class, configurazioneRicerca, prettyPrint).toString();
  1072.     }
  1073.    
  1074.    
  1075.    
  1076.     /*
  1077.      =================================================================================
  1078.      Object: id-configurazione-ricerca
  1079.      =================================================================================
  1080.     */
  1081.    
  1082.     /**
  1083.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1084.      *
  1085.      * @param fileName Xml file to serialize the object <var>idConfigurazioneRicerca</var>
  1086.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1087.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1088.      */
  1089.     public void write(String fileName,IdConfigurazioneRicerca idConfigurazioneRicerca) throws SerializerException {
  1090.         this.objToXml(fileName, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, false);
  1091.     }
  1092.     /**
  1093.      * Serialize to file system in <var>fileName</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1094.      *
  1095.      * @param fileName Xml file to serialize the object <var>idConfigurazioneRicerca</var>
  1096.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1097.      * @param prettyPrint if true output the XML with indenting
  1098.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1099.      */
  1100.     public void write(String fileName,IdConfigurazioneRicerca idConfigurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1101.         this.objToXml(fileName, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, prettyPrint);
  1102.     }
  1103.    
  1104.     /**
  1105.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1106.      *
  1107.      * @param file Xml file to serialize the object <var>idConfigurazioneRicerca</var>
  1108.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1109.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1110.      */
  1111.     public void write(File file,IdConfigurazioneRicerca idConfigurazioneRicerca) throws SerializerException {
  1112.         this.objToXml(file, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, false);
  1113.     }
  1114.     /**
  1115.      * Serialize to file system in <var>file</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1116.      *
  1117.      * @param file Xml file to serialize the object <var>idConfigurazioneRicerca</var>
  1118.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1119.      * @param prettyPrint if true output the XML with indenting
  1120.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1121.      */
  1122.     public void write(File file,IdConfigurazioneRicerca idConfigurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1123.         this.objToXml(file, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, prettyPrint);
  1124.     }
  1125.    
  1126.     /**
  1127.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1128.      *
  1129.      * @param out OutputStream to serialize the object <var>idConfigurazioneRicerca</var>
  1130.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1131.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1132.      */
  1133.     public void write(OutputStream out,IdConfigurazioneRicerca idConfigurazioneRicerca) throws SerializerException {
  1134.         this.objToXml(out, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, false);
  1135.     }
  1136.     /**
  1137.      * Serialize to output stream <var>out</var> the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1138.      *
  1139.      * @param out OutputStream to serialize the object <var>idConfigurazioneRicerca</var>
  1140.      * @param idConfigurazioneRicerca Object to be serialized in xml file <var>fileName</var>
  1141.      * @param prettyPrint if true output the XML with indenting
  1142.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1143.      */
  1144.     public void write(OutputStream out,IdConfigurazioneRicerca idConfigurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1145.         this.objToXml(out, IdConfigurazioneRicerca.class, idConfigurazioneRicerca, prettyPrint);
  1146.     }
  1147.            
  1148.     /**
  1149.      * Serialize to byte array the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1150.      *
  1151.      * @param idConfigurazioneRicerca Object to be serialized
  1152.      * @return Object to be serialized in byte array
  1153.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1154.      */
  1155.     public byte[] toByteArray(IdConfigurazioneRicerca idConfigurazioneRicerca) throws SerializerException {
  1156.         return this.objToXml(IdConfigurazioneRicerca.class, idConfigurazioneRicerca, false).toByteArray();
  1157.     }
  1158.     /**
  1159.      * Serialize to byte array the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1160.      *
  1161.      * @param idConfigurazioneRicerca Object to be serialized
  1162.      * @param prettyPrint if true output the XML with indenting
  1163.      * @return Object to be serialized in byte array
  1164.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1165.      */
  1166.     public byte[] toByteArray(IdConfigurazioneRicerca idConfigurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1167.         return this.objToXml(IdConfigurazioneRicerca.class, idConfigurazioneRicerca, prettyPrint).toByteArray();
  1168.     }
  1169.    
  1170.     /**
  1171.      * Serialize to String the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1172.      *
  1173.      * @param idConfigurazioneRicerca Object to be serialized
  1174.      * @return Object to be serialized as String
  1175.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1176.      */
  1177.     public String toString(IdConfigurazioneRicerca idConfigurazioneRicerca) throws SerializerException {
  1178.         return this.objToXml(IdConfigurazioneRicerca.class, idConfigurazioneRicerca, false).toString();
  1179.     }
  1180.     /**
  1181.      * Serialize to String the object <var>idConfigurazioneRicerca</var> of type {@link org.openspcoop2.monitor.engine.config.ricerche.IdConfigurazioneRicerca}
  1182.      *
  1183.      * @param idConfigurazioneRicerca Object to be serialized
  1184.      * @param prettyPrint if true output the XML with indenting
  1185.      * @return Object to be serialized as String
  1186.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1187.      */
  1188.     public String toString(IdConfigurazioneRicerca idConfigurazioneRicerca,boolean prettyPrint) throws SerializerException {
  1189.         return this.objToXml(IdConfigurazioneRicerca.class, idConfigurazioneRicerca, prettyPrint).toString();
  1190.     }
  1191.    
  1192.    
  1193.    

  1194. }