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.pdd.monitor.utils.serializer;

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

  22. import org.openspcoop2.pdd.monitor.BustaSoggetto;
  23. import org.openspcoop2.pdd.monitor.Busta;
  24. import org.openspcoop2.pdd.monitor.BustaServizio;
  25. import org.openspcoop2.pdd.monitor.StatoPdd;
  26. import org.openspcoop2.pdd.monitor.Openspcoop2;
  27. import org.openspcoop2.pdd.monitor.Messaggio;
  28. import org.openspcoop2.pdd.monitor.ServizioApplicativoConsegna;
  29. import org.openspcoop2.pdd.monitor.Dettaglio;
  30. import org.openspcoop2.pdd.monitor.Filtro;
  31. import org.openspcoop2.pdd.monitor.Proprieta;

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

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

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



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

  672. }