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.monitor.engine.config.statistiche.utils.serializer;

  21. import org.openspcoop2.generic_project.exception.DeserializerException;

  22. import org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin;
  23. import org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica;
  24. import org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione;
  25. import org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione;
  26. import org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio;
  27. import org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio;
  28. import org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica;
  29. import org.openspcoop2.monitor.engine.config.statistiche.IdPlugin;
  30. import org.openspcoop2.monitor.engine.config.statistiche.Plugin;

  31. import java.io.InputStream;
  32. import java.io.File;

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

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



  41.     /*
  42.      =================================================================================
  43.      Object: info-plugin
  44.      =================================================================================
  45.     */
  46.    
  47.     /**
  48.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  49.      *
  50.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  51.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  52.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  53.      */
  54.     public InfoPlugin readInfoPlugin(String fileName) throws DeserializerException {
  55.         return (InfoPlugin) this.xmlToObj(fileName, InfoPlugin.class);
  56.     }
  57.    
  58.     /**
  59.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  60.      *
  61.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  62.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  63.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  64.      */
  65.     public InfoPlugin readInfoPlugin(File file) throws DeserializerException {
  66.         return (InfoPlugin) this.xmlToObj(file, InfoPlugin.class);
  67.     }
  68.    
  69.     /**
  70.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  71.      *
  72.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  73.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  74.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  75.      */
  76.     public InfoPlugin readInfoPlugin(InputStream in) throws DeserializerException {
  77.         return (InfoPlugin) this.xmlToObj(in, InfoPlugin.class);
  78.     }  
  79.    
  80.     /**
  81.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  82.      *
  83.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  84.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  85.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  86.      */
  87.     public InfoPlugin readInfoPlugin(byte[] in) throws DeserializerException {
  88.         return (InfoPlugin) this.xmlToObj(in, InfoPlugin.class);
  89.     }  
  90.    
  91.     /**
  92.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  93.      *
  94.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  95.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.InfoPlugin}
  96.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  97.      */
  98.     public InfoPlugin readInfoPluginFromString(String in) throws DeserializerException {
  99.         return (InfoPlugin) this.xmlToObj(in.getBytes(), InfoPlugin.class);
  100.     }  
  101.    
  102.    
  103.    
  104.     /*
  105.      =================================================================================
  106.      Object: configurazione-statistica
  107.      =================================================================================
  108.     */
  109.    
  110.     /**
  111.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  112.      *
  113.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  114.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  115.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  116.      */
  117.     public ConfigurazioneStatistica readConfigurazioneStatistica(String fileName) throws DeserializerException {
  118.         return (ConfigurazioneStatistica) this.xmlToObj(fileName, ConfigurazioneStatistica.class);
  119.     }
  120.    
  121.     /**
  122.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  123.      *
  124.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  125.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  126.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  127.      */
  128.     public ConfigurazioneStatistica readConfigurazioneStatistica(File file) throws DeserializerException {
  129.         return (ConfigurazioneStatistica) this.xmlToObj(file, ConfigurazioneStatistica.class);
  130.     }
  131.    
  132.     /**
  133.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  134.      *
  135.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  136.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  137.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  138.      */
  139.     public ConfigurazioneStatistica readConfigurazioneStatistica(InputStream in) throws DeserializerException {
  140.         return (ConfigurazioneStatistica) this.xmlToObj(in, ConfigurazioneStatistica.class);
  141.     }  
  142.    
  143.     /**
  144.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  145.      *
  146.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  147.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  148.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  149.      */
  150.     public ConfigurazioneStatistica readConfigurazioneStatistica(byte[] in) throws DeserializerException {
  151.         return (ConfigurazioneStatistica) this.xmlToObj(in, ConfigurazioneStatistica.class);
  152.     }  
  153.    
  154.     /**
  155.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  156.      *
  157.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  158.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneStatistica}
  159.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  160.      */
  161.     public ConfigurazioneStatistica readConfigurazioneStatisticaFromString(String in) throws DeserializerException {
  162.         return (ConfigurazioneStatistica) this.xmlToObj(in.getBytes(), ConfigurazioneStatistica.class);
  163.     }  
  164.    
  165.    
  166.    
  167.     /*
  168.      =================================================================================
  169.      Object: id-configurazione-servizio-azione
  170.      =================================================================================
  171.     */
  172.    
  173.     /**
  174.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  175.      *
  176.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  177.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  178.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  179.      */
  180.     public IdConfigurazioneServizioAzione readIdConfigurazioneServizioAzione(String fileName) throws DeserializerException {
  181.         return (IdConfigurazioneServizioAzione) this.xmlToObj(fileName, IdConfigurazioneServizioAzione.class);
  182.     }
  183.    
  184.     /**
  185.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  186.      *
  187.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  188.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  189.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  190.      */
  191.     public IdConfigurazioneServizioAzione readIdConfigurazioneServizioAzione(File file) throws DeserializerException {
  192.         return (IdConfigurazioneServizioAzione) this.xmlToObj(file, IdConfigurazioneServizioAzione.class);
  193.     }
  194.    
  195.     /**
  196.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  197.      *
  198.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  199.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  200.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  201.      */
  202.     public IdConfigurazioneServizioAzione readIdConfigurazioneServizioAzione(InputStream in) throws DeserializerException {
  203.         return (IdConfigurazioneServizioAzione) this.xmlToObj(in, IdConfigurazioneServizioAzione.class);
  204.     }  
  205.    
  206.     /**
  207.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  208.      *
  209.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  210.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  211.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  212.      */
  213.     public IdConfigurazioneServizioAzione readIdConfigurazioneServizioAzione(byte[] in) throws DeserializerException {
  214.         return (IdConfigurazioneServizioAzione) this.xmlToObj(in, IdConfigurazioneServizioAzione.class);
  215.     }  
  216.    
  217.     /**
  218.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  219.      *
  220.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  221.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizioAzione}
  222.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  223.      */
  224.     public IdConfigurazioneServizioAzione readIdConfigurazioneServizioAzioneFromString(String in) throws DeserializerException {
  225.         return (IdConfigurazioneServizioAzione) this.xmlToObj(in.getBytes(), IdConfigurazioneServizioAzione.class);
  226.     }  
  227.    
  228.    
  229.    
  230.     /*
  231.      =================================================================================
  232.      Object: configurazione-servizio-azione
  233.      =================================================================================
  234.     */
  235.    
  236.     /**
  237.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  238.      *
  239.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  240.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  241.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  242.      */
  243.     public ConfigurazioneServizioAzione readConfigurazioneServizioAzione(String fileName) throws DeserializerException {
  244.         return (ConfigurazioneServizioAzione) this.xmlToObj(fileName, ConfigurazioneServizioAzione.class);
  245.     }
  246.    
  247.     /**
  248.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  249.      *
  250.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  251.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  252.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  253.      */
  254.     public ConfigurazioneServizioAzione readConfigurazioneServizioAzione(File file) throws DeserializerException {
  255.         return (ConfigurazioneServizioAzione) this.xmlToObj(file, ConfigurazioneServizioAzione.class);
  256.     }
  257.    
  258.     /**
  259.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  260.      *
  261.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  262.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  263.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  264.      */
  265.     public ConfigurazioneServizioAzione readConfigurazioneServizioAzione(InputStream in) throws DeserializerException {
  266.         return (ConfigurazioneServizioAzione) this.xmlToObj(in, ConfigurazioneServizioAzione.class);
  267.     }  
  268.    
  269.     /**
  270.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  271.      *
  272.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  273.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  274.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  275.      */
  276.     public ConfigurazioneServizioAzione readConfigurazioneServizioAzione(byte[] in) throws DeserializerException {
  277.         return (ConfigurazioneServizioAzione) this.xmlToObj(in, ConfigurazioneServizioAzione.class);
  278.     }  
  279.    
  280.     /**
  281.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  282.      *
  283.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  284.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizioAzione}
  285.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  286.      */
  287.     public ConfigurazioneServizioAzione readConfigurazioneServizioAzioneFromString(String in) throws DeserializerException {
  288.         return (ConfigurazioneServizioAzione) this.xmlToObj(in.getBytes(), ConfigurazioneServizioAzione.class);
  289.     }  
  290.    
  291.    
  292.    
  293.     /*
  294.      =================================================================================
  295.      Object: configurazione-servizio
  296.      =================================================================================
  297.     */
  298.    
  299.     /**
  300.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  301.      *
  302.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  303.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  304.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  305.      */
  306.     public ConfigurazioneServizio readConfigurazioneServizio(String fileName) throws DeserializerException {
  307.         return (ConfigurazioneServizio) this.xmlToObj(fileName, ConfigurazioneServizio.class);
  308.     }
  309.    
  310.     /**
  311.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  312.      *
  313.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  314.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  315.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  316.      */
  317.     public ConfigurazioneServizio readConfigurazioneServizio(File file) throws DeserializerException {
  318.         return (ConfigurazioneServizio) this.xmlToObj(file, ConfigurazioneServizio.class);
  319.     }
  320.    
  321.     /**
  322.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  323.      *
  324.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  325.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  326.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  327.      */
  328.     public ConfigurazioneServizio readConfigurazioneServizio(InputStream in) throws DeserializerException {
  329.         return (ConfigurazioneServizio) this.xmlToObj(in, ConfigurazioneServizio.class);
  330.     }  
  331.    
  332.     /**
  333.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  334.      *
  335.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  336.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  337.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  338.      */
  339.     public ConfigurazioneServizio readConfigurazioneServizio(byte[] in) throws DeserializerException {
  340.         return (ConfigurazioneServizio) this.xmlToObj(in, ConfigurazioneServizio.class);
  341.     }  
  342.    
  343.     /**
  344.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  345.      *
  346.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  347.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.ConfigurazioneServizio}
  348.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  349.      */
  350.     public ConfigurazioneServizio readConfigurazioneServizioFromString(String in) throws DeserializerException {
  351.         return (ConfigurazioneServizio) this.xmlToObj(in.getBytes(), ConfigurazioneServizio.class);
  352.     }  
  353.    
  354.    
  355.    
  356.     /*
  357.      =================================================================================
  358.      Object: id-configurazione-servizio
  359.      =================================================================================
  360.     */
  361.    
  362.     /**
  363.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  364.      *
  365.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  366.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  367.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  368.      */
  369.     public IdConfigurazioneServizio readIdConfigurazioneServizio(String fileName) throws DeserializerException {
  370.         return (IdConfigurazioneServizio) this.xmlToObj(fileName, IdConfigurazioneServizio.class);
  371.     }
  372.    
  373.     /**
  374.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  375.      *
  376.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  377.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  378.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  379.      */
  380.     public IdConfigurazioneServizio readIdConfigurazioneServizio(File file) throws DeserializerException {
  381.         return (IdConfigurazioneServizio) this.xmlToObj(file, IdConfigurazioneServizio.class);
  382.     }
  383.    
  384.     /**
  385.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  386.      *
  387.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  388.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  389.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  390.      */
  391.     public IdConfigurazioneServizio readIdConfigurazioneServizio(InputStream in) throws DeserializerException {
  392.         return (IdConfigurazioneServizio) this.xmlToObj(in, IdConfigurazioneServizio.class);
  393.     }  
  394.    
  395.     /**
  396.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  397.      *
  398.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  399.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  400.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  401.      */
  402.     public IdConfigurazioneServizio readIdConfigurazioneServizio(byte[] in) throws DeserializerException {
  403.         return (IdConfigurazioneServizio) this.xmlToObj(in, IdConfigurazioneServizio.class);
  404.     }  
  405.    
  406.     /**
  407.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  408.      *
  409.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  410.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneServizio}
  411.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  412.      */
  413.     public IdConfigurazioneServizio readIdConfigurazioneServizioFromString(String in) throws DeserializerException {
  414.         return (IdConfigurazioneServizio) this.xmlToObj(in.getBytes(), IdConfigurazioneServizio.class);
  415.     }  
  416.    
  417.    
  418.    
  419.     /*
  420.      =================================================================================
  421.      Object: id-configurazione-statistica
  422.      =================================================================================
  423.     */
  424.    
  425.     /**
  426.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  427.      *
  428.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  429.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  430.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  431.      */
  432.     public IdConfigurazioneStatistica readIdConfigurazioneStatistica(String fileName) throws DeserializerException {
  433.         return (IdConfigurazioneStatistica) this.xmlToObj(fileName, IdConfigurazioneStatistica.class);
  434.     }
  435.    
  436.     /**
  437.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  438.      *
  439.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  440.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  441.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  442.      */
  443.     public IdConfigurazioneStatistica readIdConfigurazioneStatistica(File file) throws DeserializerException {
  444.         return (IdConfigurazioneStatistica) this.xmlToObj(file, IdConfigurazioneStatistica.class);
  445.     }
  446.    
  447.     /**
  448.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  449.      *
  450.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  451.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  452.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  453.      */
  454.     public IdConfigurazioneStatistica readIdConfigurazioneStatistica(InputStream in) throws DeserializerException {
  455.         return (IdConfigurazioneStatistica) this.xmlToObj(in, IdConfigurazioneStatistica.class);
  456.     }  
  457.    
  458.     /**
  459.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  460.      *
  461.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  462.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  463.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  464.      */
  465.     public IdConfigurazioneStatistica readIdConfigurazioneStatistica(byte[] in) throws DeserializerException {
  466.         return (IdConfigurazioneStatistica) this.xmlToObj(in, IdConfigurazioneStatistica.class);
  467.     }  
  468.    
  469.     /**
  470.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  471.      *
  472.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  473.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdConfigurazioneStatistica}
  474.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  475.      */
  476.     public IdConfigurazioneStatistica readIdConfigurazioneStatisticaFromString(String in) throws DeserializerException {
  477.         return (IdConfigurazioneStatistica) this.xmlToObj(in.getBytes(), IdConfigurazioneStatistica.class);
  478.     }  
  479.    
  480.    
  481.    
  482.     /*
  483.      =================================================================================
  484.      Object: id-plugin
  485.      =================================================================================
  486.     */
  487.    
  488.     /**
  489.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  490.      *
  491.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  492.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  493.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  494.      */
  495.     public IdPlugin readIdPlugin(String fileName) throws DeserializerException {
  496.         return (IdPlugin) this.xmlToObj(fileName, IdPlugin.class);
  497.     }
  498.    
  499.     /**
  500.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  501.      *
  502.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  503.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  504.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  505.      */
  506.     public IdPlugin readIdPlugin(File file) throws DeserializerException {
  507.         return (IdPlugin) this.xmlToObj(file, IdPlugin.class);
  508.     }
  509.    
  510.     /**
  511.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  512.      *
  513.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  514.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  515.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  516.      */
  517.     public IdPlugin readIdPlugin(InputStream in) throws DeserializerException {
  518.         return (IdPlugin) this.xmlToObj(in, IdPlugin.class);
  519.     }  
  520.    
  521.     /**
  522.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  523.      *
  524.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  525.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  526.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  527.      */
  528.     public IdPlugin readIdPlugin(byte[] in) throws DeserializerException {
  529.         return (IdPlugin) this.xmlToObj(in, IdPlugin.class);
  530.     }  
  531.    
  532.     /**
  533.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  534.      *
  535.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  536.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.IdPlugin}
  537.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  538.      */
  539.     public IdPlugin readIdPluginFromString(String in) throws DeserializerException {
  540.         return (IdPlugin) this.xmlToObj(in.getBytes(), IdPlugin.class);
  541.     }  
  542.    
  543.    
  544.    
  545.     /*
  546.      =================================================================================
  547.      Object: plugin
  548.      =================================================================================
  549.     */
  550.    
  551.     /**
  552.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  553.      *
  554.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  555.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  556.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  557.      */
  558.     public Plugin readPlugin(String fileName) throws DeserializerException {
  559.         return (Plugin) this.xmlToObj(fileName, Plugin.class);
  560.     }
  561.    
  562.     /**
  563.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  564.      *
  565.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  566.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  567.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  568.      */
  569.     public Plugin readPlugin(File file) throws DeserializerException {
  570.         return (Plugin) this.xmlToObj(file, Plugin.class);
  571.     }
  572.    
  573.     /**
  574.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  575.      *
  576.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  577.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  578.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  579.      */
  580.     public Plugin readPlugin(InputStream in) throws DeserializerException {
  581.         return (Plugin) this.xmlToObj(in, Plugin.class);
  582.     }  
  583.    
  584.     /**
  585.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  586.      *
  587.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  588.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  589.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  590.      */
  591.     public Plugin readPlugin(byte[] in) throws DeserializerException {
  592.         return (Plugin) this.xmlToObj(in, Plugin.class);
  593.     }  
  594.    
  595.     /**
  596.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  597.      *
  598.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  599.      * @return Object type {@link org.openspcoop2.monitor.engine.config.statistiche.Plugin}
  600.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  601.      */
  602.     public Plugin readPluginFromString(String in) throws DeserializerException {
  603.         return (Plugin) this.xmlToObj(in.getBytes(), Plugin.class);
  604.     }  
  605.    
  606.    
  607.    

  608. }