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.eccezione.errore_applicativo.utils.serializer;

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

  22. import org.openspcoop2.core.eccezione.errore_applicativo.CodiceEccezione;
  23. import org.openspcoop2.core.eccezione.errore_applicativo.Eccezione;
  24. import org.openspcoop2.core.eccezione.errore_applicativo.Servizio;
  25. import org.openspcoop2.core.eccezione.errore_applicativo.Dominio;
  26. import org.openspcoop2.core.eccezione.errore_applicativo.ErroreApplicativo;
  27. import org.openspcoop2.core.eccezione.errore_applicativo.DatiCooperazione;
  28. import org.openspcoop2.core.eccezione.errore_applicativo.DominioSoggetto;
  29. import org.openspcoop2.core.eccezione.errore_applicativo.SoggettoIdentificativo;
  30. import org.openspcoop2.core.eccezione.errore_applicativo.Soggetto;

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

  608. }