AbstractDeserializer.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.DeserializerException;

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

  33. import java.io.InputStream;
  34. import java.io.File;

  35. /**    
  36.  * XML Deserializer of beans
  37.  *
  38.  * @author Poli Andrea (poli@link.it)
  39.  * @author $Author$
  40.  * @version $Rev$, $Date$
  41.  */

  42. public abstract class AbstractDeserializer extends org.openspcoop2.generic_project.serializer.AbstractDeserializerBase {



  43.     /*
  44.      =================================================================================
  45.      Object: id-allarme
  46.      =================================================================================
  47.     */
  48.    
  49.     /**
  50.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  51.      *
  52.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  53.      * @return Object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  54.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  55.      */
  56.     public IdAllarme readIdAllarme(String fileName) throws DeserializerException {
  57.         return (IdAllarme) this.xmlToObj(fileName, IdAllarme.class);
  58.     }
  59.    
  60.     /**
  61.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  62.      *
  63.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  64.      * @return Object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  65.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  66.      */
  67.     public IdAllarme readIdAllarme(File file) throws DeserializerException {
  68.         return (IdAllarme) this.xmlToObj(file, IdAllarme.class);
  69.     }
  70.    
  71.     /**
  72.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  73.      *
  74.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  75.      * @return Object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  76.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  77.      */
  78.     public IdAllarme readIdAllarme(InputStream in) throws DeserializerException {
  79.         return (IdAllarme) this.xmlToObj(in, IdAllarme.class);
  80.     }  
  81.    
  82.     /**
  83.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  84.      *
  85.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  86.      * @return Object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  87.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  88.      */
  89.     public IdAllarme readIdAllarme(byte[] in) throws DeserializerException {
  90.         return (IdAllarme) this.xmlToObj(in, IdAllarme.class);
  91.     }  
  92.    
  93.     /**
  94.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  95.      *
  96.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  97.      * @return Object type {@link org.openspcoop2.core.allarmi.IdAllarme}
  98.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  99.      */
  100.     public IdAllarme readIdAllarmeFromString(String in) throws DeserializerException {
  101.         return (IdAllarme) this.xmlToObj(in.getBytes(), IdAllarme.class);
  102.     }  
  103.    
  104.    
  105.    
  106.     /*
  107.      =================================================================================
  108.      Object: allarme-history
  109.      =================================================================================
  110.     */
  111.    
  112.     /**
  113.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  114.      *
  115.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  116.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  117.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  118.      */
  119.     public AllarmeHistory readAllarmeHistory(String fileName) throws DeserializerException {
  120.         return (AllarmeHistory) this.xmlToObj(fileName, AllarmeHistory.class);
  121.     }
  122.    
  123.     /**
  124.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  125.      *
  126.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  127.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  128.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  129.      */
  130.     public AllarmeHistory readAllarmeHistory(File file) throws DeserializerException {
  131.         return (AllarmeHistory) this.xmlToObj(file, AllarmeHistory.class);
  132.     }
  133.    
  134.     /**
  135.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  136.      *
  137.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  138.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  139.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  140.      */
  141.     public AllarmeHistory readAllarmeHistory(InputStream in) throws DeserializerException {
  142.         return (AllarmeHistory) this.xmlToObj(in, AllarmeHistory.class);
  143.     }  
  144.    
  145.     /**
  146.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  147.      *
  148.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  149.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  150.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  151.      */
  152.     public AllarmeHistory readAllarmeHistory(byte[] in) throws DeserializerException {
  153.         return (AllarmeHistory) this.xmlToObj(in, AllarmeHistory.class);
  154.     }  
  155.    
  156.     /**
  157.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  158.      *
  159.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  160.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeHistory}
  161.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  162.      */
  163.     public AllarmeHistory readAllarmeHistoryFromString(String in) throws DeserializerException {
  164.         return (AllarmeHistory) this.xmlToObj(in.getBytes(), AllarmeHistory.class);
  165.     }  
  166.    
  167.    
  168.    
  169.     /*
  170.      =================================================================================
  171.      Object: allarme-mail
  172.      =================================================================================
  173.     */
  174.    
  175.     /**
  176.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  177.      *
  178.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  179.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  180.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  181.      */
  182.     public AllarmeMail readAllarmeMail(String fileName) throws DeserializerException {
  183.         return (AllarmeMail) this.xmlToObj(fileName, AllarmeMail.class);
  184.     }
  185.    
  186.     /**
  187.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  188.      *
  189.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  190.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  191.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  192.      */
  193.     public AllarmeMail readAllarmeMail(File file) throws DeserializerException {
  194.         return (AllarmeMail) this.xmlToObj(file, AllarmeMail.class);
  195.     }
  196.    
  197.     /**
  198.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  199.      *
  200.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  201.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  202.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  203.      */
  204.     public AllarmeMail readAllarmeMail(InputStream in) throws DeserializerException {
  205.         return (AllarmeMail) this.xmlToObj(in, AllarmeMail.class);
  206.     }  
  207.    
  208.     /**
  209.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  210.      *
  211.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  212.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  213.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  214.      */
  215.     public AllarmeMail readAllarmeMail(byte[] in) throws DeserializerException {
  216.         return (AllarmeMail) this.xmlToObj(in, AllarmeMail.class);
  217.     }  
  218.    
  219.     /**
  220.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  221.      *
  222.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  223.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeMail}
  224.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  225.      */
  226.     public AllarmeMail readAllarmeMailFromString(String in) throws DeserializerException {
  227.         return (AllarmeMail) this.xmlToObj(in.getBytes(), AllarmeMail.class);
  228.     }  
  229.    
  230.    
  231.    
  232.     /*
  233.      =================================================================================
  234.      Object: allarme
  235.      =================================================================================
  236.     */
  237.    
  238.     /**
  239.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.Allarme}
  240.      *
  241.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.Allarme}
  242.      * @return Object type {@link org.openspcoop2.core.allarmi.Allarme}
  243.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  244.      */
  245.     public Allarme readAllarme(String fileName) throws DeserializerException {
  246.         return (Allarme) this.xmlToObj(fileName, Allarme.class);
  247.     }
  248.    
  249.     /**
  250.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.Allarme}
  251.      *
  252.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.Allarme}
  253.      * @return Object type {@link org.openspcoop2.core.allarmi.Allarme}
  254.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  255.      */
  256.     public Allarme readAllarme(File file) throws DeserializerException {
  257.         return (Allarme) this.xmlToObj(file, Allarme.class);
  258.     }
  259.    
  260.     /**
  261.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.Allarme}
  262.      *
  263.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.Allarme}
  264.      * @return Object type {@link org.openspcoop2.core.allarmi.Allarme}
  265.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  266.      */
  267.     public Allarme readAllarme(InputStream in) throws DeserializerException {
  268.         return (Allarme) this.xmlToObj(in, Allarme.class);
  269.     }  
  270.    
  271.     /**
  272.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.Allarme}
  273.      *
  274.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.Allarme}
  275.      * @return Object type {@link org.openspcoop2.core.allarmi.Allarme}
  276.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  277.      */
  278.     public Allarme readAllarme(byte[] in) throws DeserializerException {
  279.         return (Allarme) this.xmlToObj(in, Allarme.class);
  280.     }  
  281.    
  282.     /**
  283.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.Allarme}
  284.      *
  285.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.Allarme}
  286.      * @return Object type {@link org.openspcoop2.core.allarmi.Allarme}
  287.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  288.      */
  289.     public Allarme readAllarmeFromString(String in) throws DeserializerException {
  290.         return (Allarme) this.xmlToObj(in.getBytes(), Allarme.class);
  291.     }  
  292.    
  293.    
  294.    
  295.     /*
  296.      =================================================================================
  297.      Object: allarme-script
  298.      =================================================================================
  299.     */
  300.    
  301.     /**
  302.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  303.      *
  304.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  305.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  306.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  307.      */
  308.     public AllarmeScript readAllarmeScript(String fileName) throws DeserializerException {
  309.         return (AllarmeScript) this.xmlToObj(fileName, AllarmeScript.class);
  310.     }
  311.    
  312.     /**
  313.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  314.      *
  315.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  316.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  317.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  318.      */
  319.     public AllarmeScript readAllarmeScript(File file) throws DeserializerException {
  320.         return (AllarmeScript) this.xmlToObj(file, AllarmeScript.class);
  321.     }
  322.    
  323.     /**
  324.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  325.      *
  326.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  327.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  328.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  329.      */
  330.     public AllarmeScript readAllarmeScript(InputStream in) throws DeserializerException {
  331.         return (AllarmeScript) this.xmlToObj(in, AllarmeScript.class);
  332.     }  
  333.    
  334.     /**
  335.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  336.      *
  337.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  338.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  339.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  340.      */
  341.     public AllarmeScript readAllarmeScript(byte[] in) throws DeserializerException {
  342.         return (AllarmeScript) this.xmlToObj(in, AllarmeScript.class);
  343.     }  
  344.    
  345.     /**
  346.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  347.      *
  348.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  349.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeScript}
  350.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  351.      */
  352.     public AllarmeScript readAllarmeScriptFromString(String in) throws DeserializerException {
  353.         return (AllarmeScript) this.xmlToObj(in.getBytes(), AllarmeScript.class);
  354.     }  
  355.    
  356.    
  357.    
  358.     /*
  359.      =================================================================================
  360.      Object: allarme-filtro
  361.      =================================================================================
  362.     */
  363.    
  364.     /**
  365.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  366.      *
  367.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  368.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  369.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  370.      */
  371.     public AllarmeFiltro readAllarmeFiltro(String fileName) throws DeserializerException {
  372.         return (AllarmeFiltro) this.xmlToObj(fileName, AllarmeFiltro.class);
  373.     }
  374.    
  375.     /**
  376.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  377.      *
  378.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  379.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  380.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  381.      */
  382.     public AllarmeFiltro readAllarmeFiltro(File file) throws DeserializerException {
  383.         return (AllarmeFiltro) this.xmlToObj(file, AllarmeFiltro.class);
  384.     }
  385.    
  386.     /**
  387.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  388.      *
  389.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  390.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  391.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  392.      */
  393.     public AllarmeFiltro readAllarmeFiltro(InputStream in) throws DeserializerException {
  394.         return (AllarmeFiltro) this.xmlToObj(in, AllarmeFiltro.class);
  395.     }  
  396.    
  397.     /**
  398.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  399.      *
  400.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  401.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  402.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  403.      */
  404.     public AllarmeFiltro readAllarmeFiltro(byte[] in) throws DeserializerException {
  405.         return (AllarmeFiltro) this.xmlToObj(in, AllarmeFiltro.class);
  406.     }  
  407.    
  408.     /**
  409.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  410.      *
  411.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  412.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeFiltro}
  413.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  414.      */
  415.     public AllarmeFiltro readAllarmeFiltroFromString(String in) throws DeserializerException {
  416.         return (AllarmeFiltro) this.xmlToObj(in.getBytes(), AllarmeFiltro.class);
  417.     }  
  418.    
  419.    
  420.    
  421.     /*
  422.      =================================================================================
  423.      Object: allarme-raggruppamento
  424.      =================================================================================
  425.     */
  426.    
  427.     /**
  428.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  429.      *
  430.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  431.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  432.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  433.      */
  434.     public AllarmeRaggruppamento readAllarmeRaggruppamento(String fileName) throws DeserializerException {
  435.         return (AllarmeRaggruppamento) this.xmlToObj(fileName, AllarmeRaggruppamento.class);
  436.     }
  437.    
  438.     /**
  439.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  440.      *
  441.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  442.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  443.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  444.      */
  445.     public AllarmeRaggruppamento readAllarmeRaggruppamento(File file) throws DeserializerException {
  446.         return (AllarmeRaggruppamento) this.xmlToObj(file, AllarmeRaggruppamento.class);
  447.     }
  448.    
  449.     /**
  450.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  451.      *
  452.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  453.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  454.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  455.      */
  456.     public AllarmeRaggruppamento readAllarmeRaggruppamento(InputStream in) throws DeserializerException {
  457.         return (AllarmeRaggruppamento) this.xmlToObj(in, AllarmeRaggruppamento.class);
  458.     }  
  459.    
  460.     /**
  461.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  462.      *
  463.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  464.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  465.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  466.      */
  467.     public AllarmeRaggruppamento readAllarmeRaggruppamento(byte[] in) throws DeserializerException {
  468.         return (AllarmeRaggruppamento) this.xmlToObj(in, AllarmeRaggruppamento.class);
  469.     }  
  470.    
  471.     /**
  472.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  473.      *
  474.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  475.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeRaggruppamento}
  476.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  477.      */
  478.     public AllarmeRaggruppamento readAllarmeRaggruppamentoFromString(String in) throws DeserializerException {
  479.         return (AllarmeRaggruppamento) this.xmlToObj(in.getBytes(), AllarmeRaggruppamento.class);
  480.     }  
  481.    
  482.    
  483.    
  484.     /*
  485.      =================================================================================
  486.      Object: allarme-parametro
  487.      =================================================================================
  488.     */
  489.    
  490.     /**
  491.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  492.      *
  493.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  494.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  495.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  496.      */
  497.     public AllarmeParametro readAllarmeParametro(String fileName) throws DeserializerException {
  498.         return (AllarmeParametro) this.xmlToObj(fileName, AllarmeParametro.class);
  499.     }
  500.    
  501.     /**
  502.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  503.      *
  504.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  505.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  506.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  507.      */
  508.     public AllarmeParametro readAllarmeParametro(File file) throws DeserializerException {
  509.         return (AllarmeParametro) this.xmlToObj(file, AllarmeParametro.class);
  510.     }
  511.    
  512.     /**
  513.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  514.      *
  515.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  516.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  517.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  518.      */
  519.     public AllarmeParametro readAllarmeParametro(InputStream in) throws DeserializerException {
  520.         return (AllarmeParametro) this.xmlToObj(in, AllarmeParametro.class);
  521.     }  
  522.    
  523.     /**
  524.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  525.      *
  526.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  527.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  528.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  529.      */
  530.     public AllarmeParametro readAllarmeParametro(byte[] in) throws DeserializerException {
  531.         return (AllarmeParametro) this.xmlToObj(in, AllarmeParametro.class);
  532.     }  
  533.    
  534.     /**
  535.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  536.      *
  537.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  538.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeParametro}
  539.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  540.      */
  541.     public AllarmeParametro readAllarmeParametroFromString(String in) throws DeserializerException {
  542.         return (AllarmeParametro) this.xmlToObj(in.getBytes(), AllarmeParametro.class);
  543.     }  
  544.    
  545.    
  546.    
  547.     /*
  548.      =================================================================================
  549.      Object: allarme-notifica
  550.      =================================================================================
  551.     */
  552.    
  553.     /**
  554.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  555.      *
  556.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  557.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  558.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  559.      */
  560.     public AllarmeNotifica readAllarmeNotifica(String fileName) throws DeserializerException {
  561.         return (AllarmeNotifica) this.xmlToObj(fileName, AllarmeNotifica.class);
  562.     }
  563.    
  564.     /**
  565.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  566.      *
  567.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  568.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  569.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  570.      */
  571.     public AllarmeNotifica readAllarmeNotifica(File file) throws DeserializerException {
  572.         return (AllarmeNotifica) this.xmlToObj(file, AllarmeNotifica.class);
  573.     }
  574.    
  575.     /**
  576.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  577.      *
  578.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  579.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  580.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  581.      */
  582.     public AllarmeNotifica readAllarmeNotifica(InputStream in) throws DeserializerException {
  583.         return (AllarmeNotifica) this.xmlToObj(in, AllarmeNotifica.class);
  584.     }  
  585.    
  586.     /**
  587.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  588.      *
  589.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  590.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  591.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  592.      */
  593.     public AllarmeNotifica readAllarmeNotifica(byte[] in) throws DeserializerException {
  594.         return (AllarmeNotifica) this.xmlToObj(in, AllarmeNotifica.class);
  595.     }  
  596.    
  597.     /**
  598.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  599.      *
  600.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  601.      * @return Object type {@link org.openspcoop2.core.allarmi.AllarmeNotifica}
  602.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  603.      */
  604.     public AllarmeNotifica readAllarmeNotificaFromString(String in) throws DeserializerException {
  605.         return (AllarmeNotifica) this.xmlToObj(in.getBytes(), AllarmeNotifica.class);
  606.     }  
  607.    
  608.    
  609.    
  610.     /*
  611.      =================================================================================
  612.      Object: elenco-allarmi
  613.      =================================================================================
  614.     */
  615.    
  616.     /**
  617.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  618.      *
  619.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  620.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  621.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  622.      */
  623.     public ElencoAllarmi readElencoAllarmi(String fileName) throws DeserializerException {
  624.         return (ElencoAllarmi) this.xmlToObj(fileName, ElencoAllarmi.class);
  625.     }
  626.    
  627.     /**
  628.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  629.      *
  630.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  631.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  632.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  633.      */
  634.     public ElencoAllarmi readElencoAllarmi(File file) throws DeserializerException {
  635.         return (ElencoAllarmi) this.xmlToObj(file, ElencoAllarmi.class);
  636.     }
  637.    
  638.     /**
  639.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  640.      *
  641.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  642.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  643.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  644.      */
  645.     public ElencoAllarmi readElencoAllarmi(InputStream in) throws DeserializerException {
  646.         return (ElencoAllarmi) this.xmlToObj(in, ElencoAllarmi.class);
  647.     }  
  648.    
  649.     /**
  650.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  651.      *
  652.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  653.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  654.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  655.      */
  656.     public ElencoAllarmi readElencoAllarmi(byte[] in) throws DeserializerException {
  657.         return (ElencoAllarmi) this.xmlToObj(in, ElencoAllarmi.class);
  658.     }  
  659.    
  660.     /**
  661.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  662.      *
  663.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  664.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoAllarmi}
  665.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  666.      */
  667.     public ElencoAllarmi readElencoAllarmiFromString(String in) throws DeserializerException {
  668.         return (ElencoAllarmi) this.xmlToObj(in.getBytes(), ElencoAllarmi.class);
  669.     }  
  670.    
  671.    
  672.    
  673.     /*
  674.      =================================================================================
  675.      Object: elenco-id-allarmi
  676.      =================================================================================
  677.     */
  678.    
  679.     /**
  680.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  681.      *
  682.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  683.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  684.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  685.      */
  686.     public ElencoIdAllarmi readElencoIdAllarmi(String fileName) throws DeserializerException {
  687.         return (ElencoIdAllarmi) this.xmlToObj(fileName, ElencoIdAllarmi.class);
  688.     }
  689.    
  690.     /**
  691.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  692.      *
  693.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  694.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  695.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  696.      */
  697.     public ElencoIdAllarmi readElencoIdAllarmi(File file) throws DeserializerException {
  698.         return (ElencoIdAllarmi) this.xmlToObj(file, ElencoIdAllarmi.class);
  699.     }
  700.    
  701.     /**
  702.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  703.      *
  704.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  705.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  706.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  707.      */
  708.     public ElencoIdAllarmi readElencoIdAllarmi(InputStream in) throws DeserializerException {
  709.         return (ElencoIdAllarmi) this.xmlToObj(in, ElencoIdAllarmi.class);
  710.     }  
  711.    
  712.     /**
  713.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  714.      *
  715.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  716.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  717.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  718.      */
  719.     public ElencoIdAllarmi readElencoIdAllarmi(byte[] in) throws DeserializerException {
  720.         return (ElencoIdAllarmi) this.xmlToObj(in, ElencoIdAllarmi.class);
  721.     }  
  722.    
  723.     /**
  724.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  725.      *
  726.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  727.      * @return Object type {@link org.openspcoop2.core.allarmi.ElencoIdAllarmi}
  728.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  729.      */
  730.     public ElencoIdAllarmi readElencoIdAllarmiFromString(String in) throws DeserializerException {
  731.         return (ElencoIdAllarmi) this.xmlToObj(in.getBytes(), ElencoIdAllarmi.class);
  732.     }  
  733.    
  734.    
  735.    

  736. }