AbstractSerializer.java

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

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

  24. import org.openspcoop2.core.allarmi.IdAllarme;
  25. import org.openspcoop2.core.allarmi.AllarmeHistory;
  26. import org.openspcoop2.core.allarmi.AllarmeMail;
  27. import org.openspcoop2.core.allarmi.Allarme;
  28. import org.openspcoop2.core.allarmi.AllarmeScript;
  29. import org.openspcoop2.core.allarmi.AllarmeFiltro;
  30. import org.openspcoop2.core.allarmi.AllarmeRaggruppamento;
  31. import org.openspcoop2.core.allarmi.AllarmeParametro;
  32. import org.openspcoop2.core.allarmi.AllarmeNotifica;
  33. import org.openspcoop2.core.allarmi.ElencoAllarmi;
  34. import org.openspcoop2.core.allarmi.ElencoIdAllarmi;

  35. import java.io.ByteArrayOutputStream;
  36. import java.io.FileOutputStream;
  37. import java.io.OutputStream;
  38. import java.io.File;
  39. import java.lang.reflect.Method;

  40. import javax.xml.bind.JAXBElement;

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


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




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

  1432. }