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.mvc.properties.utils.serializer;

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

  22. import org.openspcoop2.core.mvc.properties.Defined;
  23. import org.openspcoop2.core.mvc.properties.Conditions;
  24. import org.openspcoop2.core.mvc.properties.Subsection;
  25. import org.openspcoop2.core.mvc.properties.Item;
  26. import org.openspcoop2.core.mvc.properties.Selected;
  27. import org.openspcoop2.core.mvc.properties.ItemValue;
  28. import org.openspcoop2.core.mvc.properties.ItemValues;
  29. import org.openspcoop2.core.mvc.properties.Equals;
  30. import org.openspcoop2.core.mvc.properties.Compatibility;
  31. import org.openspcoop2.core.mvc.properties.Config;
  32. import org.openspcoop2.core.mvc.properties.Properties;
  33. import org.openspcoop2.core.mvc.properties.Section;
  34. import org.openspcoop2.core.mvc.properties.Property;
  35. import org.openspcoop2.core.mvc.properties.Tags;
  36. import org.openspcoop2.core.mvc.properties.Collection;
  37. import org.openspcoop2.core.mvc.properties.Condition;

  38. import java.io.InputStream;
  39. import java.io.File;

  40. /**    
  41.  * XML Deserializer of beans
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * @version $Rev$, $Date$
  46.  */

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



  48.     /*
  49.      =================================================================================
  50.      Object: defined
  51.      =================================================================================
  52.     */
  53.    
  54.     /**
  55.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  56.      *
  57.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  58.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Defined}
  59.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  60.      */
  61.     public Defined readDefined(String fileName) throws DeserializerException {
  62.         return (Defined) this.xmlToObj(fileName, Defined.class);
  63.     }
  64.    
  65.     /**
  66.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  67.      *
  68.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  69.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Defined}
  70.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  71.      */
  72.     public Defined readDefined(File file) throws DeserializerException {
  73.         return (Defined) this.xmlToObj(file, Defined.class);
  74.     }
  75.    
  76.     /**
  77.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  78.      *
  79.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  80.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Defined}
  81.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  82.      */
  83.     public Defined readDefined(InputStream in) throws DeserializerException {
  84.         return (Defined) this.xmlToObj(in, Defined.class);
  85.     }  
  86.    
  87.     /**
  88.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  89.      *
  90.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  91.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Defined}
  92.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  93.      */
  94.     public Defined readDefined(byte[] in) throws DeserializerException {
  95.         return (Defined) this.xmlToObj(in, Defined.class);
  96.     }  
  97.    
  98.     /**
  99.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  100.      *
  101.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Defined}
  102.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Defined}
  103.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  104.      */
  105.     public Defined readDefinedFromString(String in) throws DeserializerException {
  106.         return (Defined) this.xmlToObj(in.getBytes(), Defined.class);
  107.     }  
  108.    
  109.    
  110.    
  111.     /*
  112.      =================================================================================
  113.      Object: conditions
  114.      =================================================================================
  115.     */
  116.    
  117.     /**
  118.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  119.      *
  120.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  121.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  122.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  123.      */
  124.     public Conditions readConditions(String fileName) throws DeserializerException {
  125.         return (Conditions) this.xmlToObj(fileName, Conditions.class);
  126.     }
  127.    
  128.     /**
  129.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  130.      *
  131.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  132.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  133.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  134.      */
  135.     public Conditions readConditions(File file) throws DeserializerException {
  136.         return (Conditions) this.xmlToObj(file, Conditions.class);
  137.     }
  138.    
  139.     /**
  140.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  141.      *
  142.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  143.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  144.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  145.      */
  146.     public Conditions readConditions(InputStream in) throws DeserializerException {
  147.         return (Conditions) this.xmlToObj(in, Conditions.class);
  148.     }  
  149.    
  150.     /**
  151.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  152.      *
  153.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  154.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  155.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  156.      */
  157.     public Conditions readConditions(byte[] in) throws DeserializerException {
  158.         return (Conditions) this.xmlToObj(in, Conditions.class);
  159.     }  
  160.    
  161.     /**
  162.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  163.      *
  164.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  165.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Conditions}
  166.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  167.      */
  168.     public Conditions readConditionsFromString(String in) throws DeserializerException {
  169.         return (Conditions) this.xmlToObj(in.getBytes(), Conditions.class);
  170.     }  
  171.    
  172.    
  173.    
  174.     /*
  175.      =================================================================================
  176.      Object: subsection
  177.      =================================================================================
  178.     */
  179.    
  180.     /**
  181.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  182.      *
  183.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  184.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  185.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  186.      */
  187.     public Subsection readSubsection(String fileName) throws DeserializerException {
  188.         return (Subsection) this.xmlToObj(fileName, Subsection.class);
  189.     }
  190.    
  191.     /**
  192.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  193.      *
  194.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  195.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  196.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  197.      */
  198.     public Subsection readSubsection(File file) throws DeserializerException {
  199.         return (Subsection) this.xmlToObj(file, Subsection.class);
  200.     }
  201.    
  202.     /**
  203.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  204.      *
  205.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  206.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  207.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  208.      */
  209.     public Subsection readSubsection(InputStream in) throws DeserializerException {
  210.         return (Subsection) this.xmlToObj(in, Subsection.class);
  211.     }  
  212.    
  213.     /**
  214.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  215.      *
  216.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  217.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  218.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  219.      */
  220.     public Subsection readSubsection(byte[] in) throws DeserializerException {
  221.         return (Subsection) this.xmlToObj(in, Subsection.class);
  222.     }  
  223.    
  224.     /**
  225.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  226.      *
  227.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  228.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Subsection}
  229.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  230.      */
  231.     public Subsection readSubsectionFromString(String in) throws DeserializerException {
  232.         return (Subsection) this.xmlToObj(in.getBytes(), Subsection.class);
  233.     }  
  234.    
  235.    
  236.    
  237.     /*
  238.      =================================================================================
  239.      Object: item
  240.      =================================================================================
  241.     */
  242.    
  243.     /**
  244.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Item}
  245.      *
  246.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Item}
  247.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Item}
  248.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  249.      */
  250.     public Item readItem(String fileName) throws DeserializerException {
  251.         return (Item) this.xmlToObj(fileName, Item.class);
  252.     }
  253.    
  254.     /**
  255.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Item}
  256.      *
  257.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Item}
  258.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Item}
  259.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  260.      */
  261.     public Item readItem(File file) throws DeserializerException {
  262.         return (Item) this.xmlToObj(file, Item.class);
  263.     }
  264.    
  265.     /**
  266.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Item}
  267.      *
  268.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Item}
  269.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Item}
  270.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  271.      */
  272.     public Item readItem(InputStream in) throws DeserializerException {
  273.         return (Item) this.xmlToObj(in, Item.class);
  274.     }  
  275.    
  276.     /**
  277.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Item}
  278.      *
  279.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Item}
  280.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Item}
  281.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  282.      */
  283.     public Item readItem(byte[] in) throws DeserializerException {
  284.         return (Item) this.xmlToObj(in, Item.class);
  285.     }  
  286.    
  287.     /**
  288.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Item}
  289.      *
  290.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Item}
  291.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Item}
  292.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  293.      */
  294.     public Item readItemFromString(String in) throws DeserializerException {
  295.         return (Item) this.xmlToObj(in.getBytes(), Item.class);
  296.     }  
  297.    
  298.    
  299.    
  300.     /*
  301.      =================================================================================
  302.      Object: selected
  303.      =================================================================================
  304.     */
  305.    
  306.     /**
  307.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  308.      *
  309.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  310.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Selected}
  311.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  312.      */
  313.     public Selected readSelected(String fileName) throws DeserializerException {
  314.         return (Selected) this.xmlToObj(fileName, Selected.class);
  315.     }
  316.    
  317.     /**
  318.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  319.      *
  320.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  321.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Selected}
  322.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  323.      */
  324.     public Selected readSelected(File file) throws DeserializerException {
  325.         return (Selected) this.xmlToObj(file, Selected.class);
  326.     }
  327.    
  328.     /**
  329.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  330.      *
  331.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  332.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Selected}
  333.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  334.      */
  335.     public Selected readSelected(InputStream in) throws DeserializerException {
  336.         return (Selected) this.xmlToObj(in, Selected.class);
  337.     }  
  338.    
  339.     /**
  340.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  341.      *
  342.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  343.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Selected}
  344.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  345.      */
  346.     public Selected readSelected(byte[] in) throws DeserializerException {
  347.         return (Selected) this.xmlToObj(in, Selected.class);
  348.     }  
  349.    
  350.     /**
  351.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  352.      *
  353.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Selected}
  354.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Selected}
  355.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  356.      */
  357.     public Selected readSelectedFromString(String in) throws DeserializerException {
  358.         return (Selected) this.xmlToObj(in.getBytes(), Selected.class);
  359.     }  
  360.    
  361.    
  362.    
  363.     /*
  364.      =================================================================================
  365.      Object: itemValue
  366.      =================================================================================
  367.     */
  368.    
  369.     /**
  370.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  371.      *
  372.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  373.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  374.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  375.      */
  376.     public ItemValue readItemValue(String fileName) throws DeserializerException {
  377.         return (ItemValue) this.xmlToObj(fileName, ItemValue.class);
  378.     }
  379.    
  380.     /**
  381.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  382.      *
  383.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  384.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  385.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  386.      */
  387.     public ItemValue readItemValue(File file) throws DeserializerException {
  388.         return (ItemValue) this.xmlToObj(file, ItemValue.class);
  389.     }
  390.    
  391.     /**
  392.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  393.      *
  394.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  395.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  396.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  397.      */
  398.     public ItemValue readItemValue(InputStream in) throws DeserializerException {
  399.         return (ItemValue) this.xmlToObj(in, ItemValue.class);
  400.     }  
  401.    
  402.     /**
  403.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  404.      *
  405.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  406.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  407.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  408.      */
  409.     public ItemValue readItemValue(byte[] in) throws DeserializerException {
  410.         return (ItemValue) this.xmlToObj(in, ItemValue.class);
  411.     }  
  412.    
  413.     /**
  414.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  415.      *
  416.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  417.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  418.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  419.      */
  420.     public ItemValue readItemValueFromString(String in) throws DeserializerException {
  421.         return (ItemValue) this.xmlToObj(in.getBytes(), ItemValue.class);
  422.     }  
  423.    
  424.    
  425.    
  426.     /*
  427.      =================================================================================
  428.      Object: itemValues
  429.      =================================================================================
  430.     */
  431.    
  432.     /**
  433.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  434.      *
  435.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  436.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  437.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  438.      */
  439.     public ItemValues readItemValues(String fileName) throws DeserializerException {
  440.         return (ItemValues) this.xmlToObj(fileName, ItemValues.class);
  441.     }
  442.    
  443.     /**
  444.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  445.      *
  446.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  447.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  448.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  449.      */
  450.     public ItemValues readItemValues(File file) throws DeserializerException {
  451.         return (ItemValues) this.xmlToObj(file, ItemValues.class);
  452.     }
  453.    
  454.     /**
  455.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  456.      *
  457.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  458.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  459.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  460.      */
  461.     public ItemValues readItemValues(InputStream in) throws DeserializerException {
  462.         return (ItemValues) this.xmlToObj(in, ItemValues.class);
  463.     }  
  464.    
  465.     /**
  466.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  467.      *
  468.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  469.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  470.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  471.      */
  472.     public ItemValues readItemValues(byte[] in) throws DeserializerException {
  473.         return (ItemValues) this.xmlToObj(in, ItemValues.class);
  474.     }  
  475.    
  476.     /**
  477.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  478.      *
  479.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  480.      * @return Object type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  481.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  482.      */
  483.     public ItemValues readItemValuesFromString(String in) throws DeserializerException {
  484.         return (ItemValues) this.xmlToObj(in.getBytes(), ItemValues.class);
  485.     }  
  486.    
  487.    
  488.    
  489.     /*
  490.      =================================================================================
  491.      Object: equals
  492.      =================================================================================
  493.     */
  494.    
  495.     /**
  496.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  497.      *
  498.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  499.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Equals}
  500.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  501.      */
  502.     public Equals readEquals(String fileName) throws DeserializerException {
  503.         return (Equals) this.xmlToObj(fileName, Equals.class);
  504.     }
  505.    
  506.     /**
  507.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  508.      *
  509.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  510.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Equals}
  511.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  512.      */
  513.     public Equals readEquals(File file) throws DeserializerException {
  514.         return (Equals) this.xmlToObj(file, Equals.class);
  515.     }
  516.    
  517.     /**
  518.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  519.      *
  520.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  521.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Equals}
  522.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  523.      */
  524.     public Equals readEquals(InputStream in) throws DeserializerException {
  525.         return (Equals) this.xmlToObj(in, Equals.class);
  526.     }  
  527.    
  528.     /**
  529.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  530.      *
  531.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  532.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Equals}
  533.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  534.      */
  535.     public Equals readEquals(byte[] in) throws DeserializerException {
  536.         return (Equals) this.xmlToObj(in, Equals.class);
  537.     }  
  538.    
  539.     /**
  540.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  541.      *
  542.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Equals}
  543.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Equals}
  544.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  545.      */
  546.     public Equals readEqualsFromString(String in) throws DeserializerException {
  547.         return (Equals) this.xmlToObj(in.getBytes(), Equals.class);
  548.     }  
  549.    
  550.    
  551.    
  552.     /*
  553.      =================================================================================
  554.      Object: compatibility
  555.      =================================================================================
  556.     */
  557.    
  558.     /**
  559.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  560.      *
  561.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  562.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  563.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  564.      */
  565.     public Compatibility readCompatibility(String fileName) throws DeserializerException {
  566.         return (Compatibility) this.xmlToObj(fileName, Compatibility.class);
  567.     }
  568.    
  569.     /**
  570.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  571.      *
  572.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  573.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  574.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  575.      */
  576.     public Compatibility readCompatibility(File file) throws DeserializerException {
  577.         return (Compatibility) this.xmlToObj(file, Compatibility.class);
  578.     }
  579.    
  580.     /**
  581.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  582.      *
  583.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  584.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  585.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  586.      */
  587.     public Compatibility readCompatibility(InputStream in) throws DeserializerException {
  588.         return (Compatibility) this.xmlToObj(in, Compatibility.class);
  589.     }  
  590.    
  591.     /**
  592.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  593.      *
  594.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  595.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  596.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  597.      */
  598.     public Compatibility readCompatibility(byte[] in) throws DeserializerException {
  599.         return (Compatibility) this.xmlToObj(in, Compatibility.class);
  600.     }  
  601.    
  602.     /**
  603.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  604.      *
  605.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  606.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  607.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  608.      */
  609.     public Compatibility readCompatibilityFromString(String in) throws DeserializerException {
  610.         return (Compatibility) this.xmlToObj(in.getBytes(), Compatibility.class);
  611.     }  
  612.    
  613.    
  614.    
  615.     /*
  616.      =================================================================================
  617.      Object: config
  618.      =================================================================================
  619.     */
  620.    
  621.     /**
  622.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Config}
  623.      *
  624.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Config}
  625.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Config}
  626.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  627.      */
  628.     public Config readConfig(String fileName) throws DeserializerException {
  629.         return (Config) this.xmlToObj(fileName, Config.class);
  630.     }
  631.    
  632.     /**
  633.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Config}
  634.      *
  635.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Config}
  636.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Config}
  637.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  638.      */
  639.     public Config readConfig(File file) throws DeserializerException {
  640.         return (Config) this.xmlToObj(file, Config.class);
  641.     }
  642.    
  643.     /**
  644.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Config}
  645.      *
  646.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Config}
  647.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Config}
  648.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  649.      */
  650.     public Config readConfig(InputStream in) throws DeserializerException {
  651.         return (Config) this.xmlToObj(in, Config.class);
  652.     }  
  653.    
  654.     /**
  655.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Config}
  656.      *
  657.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Config}
  658.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Config}
  659.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  660.      */
  661.     public Config readConfig(byte[] in) throws DeserializerException {
  662.         return (Config) this.xmlToObj(in, Config.class);
  663.     }  
  664.    
  665.     /**
  666.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Config}
  667.      *
  668.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Config}
  669.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Config}
  670.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  671.      */
  672.     public Config readConfigFromString(String in) throws DeserializerException {
  673.         return (Config) this.xmlToObj(in.getBytes(), Config.class);
  674.     }  
  675.    
  676.    
  677.    
  678.     /*
  679.      =================================================================================
  680.      Object: properties
  681.      =================================================================================
  682.     */
  683.    
  684.     /**
  685.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  686.      *
  687.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  688.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Properties}
  689.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  690.      */
  691.     public Properties readProperties(String fileName) throws DeserializerException {
  692.         return (Properties) this.xmlToObj(fileName, Properties.class);
  693.     }
  694.    
  695.     /**
  696.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  697.      *
  698.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  699.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Properties}
  700.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  701.      */
  702.     public Properties readProperties(File file) throws DeserializerException {
  703.         return (Properties) this.xmlToObj(file, Properties.class);
  704.     }
  705.    
  706.     /**
  707.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  708.      *
  709.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  710.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Properties}
  711.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  712.      */
  713.     public Properties readProperties(InputStream in) throws DeserializerException {
  714.         return (Properties) this.xmlToObj(in, Properties.class);
  715.     }  
  716.    
  717.     /**
  718.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  719.      *
  720.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  721.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Properties}
  722.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  723.      */
  724.     public Properties readProperties(byte[] in) throws DeserializerException {
  725.         return (Properties) this.xmlToObj(in, Properties.class);
  726.     }  
  727.    
  728.     /**
  729.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  730.      *
  731.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Properties}
  732.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Properties}
  733.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  734.      */
  735.     public Properties readPropertiesFromString(String in) throws DeserializerException {
  736.         return (Properties) this.xmlToObj(in.getBytes(), Properties.class);
  737.     }  
  738.    
  739.    
  740.    
  741.     /*
  742.      =================================================================================
  743.      Object: section
  744.      =================================================================================
  745.     */
  746.    
  747.     /**
  748.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Section}
  749.      *
  750.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Section}
  751.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Section}
  752.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  753.      */
  754.     public Section readSection(String fileName) throws DeserializerException {
  755.         return (Section) this.xmlToObj(fileName, Section.class);
  756.     }
  757.    
  758.     /**
  759.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Section}
  760.      *
  761.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Section}
  762.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Section}
  763.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  764.      */
  765.     public Section readSection(File file) throws DeserializerException {
  766.         return (Section) this.xmlToObj(file, Section.class);
  767.     }
  768.    
  769.     /**
  770.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Section}
  771.      *
  772.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Section}
  773.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Section}
  774.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  775.      */
  776.     public Section readSection(InputStream in) throws DeserializerException {
  777.         return (Section) this.xmlToObj(in, Section.class);
  778.     }  
  779.    
  780.     /**
  781.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Section}
  782.      *
  783.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Section}
  784.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Section}
  785.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  786.      */
  787.     public Section readSection(byte[] in) throws DeserializerException {
  788.         return (Section) this.xmlToObj(in, Section.class);
  789.     }  
  790.    
  791.     /**
  792.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Section}
  793.      *
  794.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Section}
  795.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Section}
  796.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  797.      */
  798.     public Section readSectionFromString(String in) throws DeserializerException {
  799.         return (Section) this.xmlToObj(in.getBytes(), Section.class);
  800.     }  
  801.    
  802.    
  803.    
  804.     /*
  805.      =================================================================================
  806.      Object: property
  807.      =================================================================================
  808.     */
  809.    
  810.     /**
  811.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Property}
  812.      *
  813.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Property}
  814.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Property}
  815.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  816.      */
  817.     public Property readProperty(String fileName) throws DeserializerException {
  818.         return (Property) this.xmlToObj(fileName, Property.class);
  819.     }
  820.    
  821.     /**
  822.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Property}
  823.      *
  824.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Property}
  825.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Property}
  826.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  827.      */
  828.     public Property readProperty(File file) throws DeserializerException {
  829.         return (Property) this.xmlToObj(file, Property.class);
  830.     }
  831.    
  832.     /**
  833.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Property}
  834.      *
  835.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Property}
  836.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Property}
  837.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  838.      */
  839.     public Property readProperty(InputStream in) throws DeserializerException {
  840.         return (Property) this.xmlToObj(in, Property.class);
  841.     }  
  842.    
  843.     /**
  844.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Property}
  845.      *
  846.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Property}
  847.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Property}
  848.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  849.      */
  850.     public Property readProperty(byte[] in) throws DeserializerException {
  851.         return (Property) this.xmlToObj(in, Property.class);
  852.     }  
  853.    
  854.     /**
  855.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Property}
  856.      *
  857.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Property}
  858.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Property}
  859.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  860.      */
  861.     public Property readPropertyFromString(String in) throws DeserializerException {
  862.         return (Property) this.xmlToObj(in.getBytes(), Property.class);
  863.     }  
  864.    
  865.    
  866.    
  867.     /*
  868.      =================================================================================
  869.      Object: tags
  870.      =================================================================================
  871.     */
  872.    
  873.     /**
  874.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  875.      *
  876.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  877.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Tags}
  878.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  879.      */
  880.     public Tags readTags(String fileName) throws DeserializerException {
  881.         return (Tags) this.xmlToObj(fileName, Tags.class);
  882.     }
  883.    
  884.     /**
  885.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  886.      *
  887.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  888.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Tags}
  889.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  890.      */
  891.     public Tags readTags(File file) throws DeserializerException {
  892.         return (Tags) this.xmlToObj(file, Tags.class);
  893.     }
  894.    
  895.     /**
  896.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  897.      *
  898.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  899.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Tags}
  900.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  901.      */
  902.     public Tags readTags(InputStream in) throws DeserializerException {
  903.         return (Tags) this.xmlToObj(in, Tags.class);
  904.     }  
  905.    
  906.     /**
  907.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  908.      *
  909.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  910.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Tags}
  911.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  912.      */
  913.     public Tags readTags(byte[] in) throws DeserializerException {
  914.         return (Tags) this.xmlToObj(in, Tags.class);
  915.     }  
  916.    
  917.     /**
  918.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  919.      *
  920.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Tags}
  921.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Tags}
  922.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  923.      */
  924.     public Tags readTagsFromString(String in) throws DeserializerException {
  925.         return (Tags) this.xmlToObj(in.getBytes(), Tags.class);
  926.     }  
  927.    
  928.    
  929.    
  930.     /*
  931.      =================================================================================
  932.      Object: collection
  933.      =================================================================================
  934.     */
  935.    
  936.     /**
  937.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  938.      *
  939.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  940.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Collection}
  941.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  942.      */
  943.     public Collection readCollection(String fileName) throws DeserializerException {
  944.         return (Collection) this.xmlToObj(fileName, Collection.class);
  945.     }
  946.    
  947.     /**
  948.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  949.      *
  950.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  951.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Collection}
  952.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  953.      */
  954.     public Collection readCollection(File file) throws DeserializerException {
  955.         return (Collection) this.xmlToObj(file, Collection.class);
  956.     }
  957.    
  958.     /**
  959.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  960.      *
  961.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  962.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Collection}
  963.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  964.      */
  965.     public Collection readCollection(InputStream in) throws DeserializerException {
  966.         return (Collection) this.xmlToObj(in, Collection.class);
  967.     }  
  968.    
  969.     /**
  970.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  971.      *
  972.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  973.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Collection}
  974.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  975.      */
  976.     public Collection readCollection(byte[] in) throws DeserializerException {
  977.         return (Collection) this.xmlToObj(in, Collection.class);
  978.     }  
  979.    
  980.     /**
  981.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  982.      *
  983.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Collection}
  984.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Collection}
  985.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  986.      */
  987.     public Collection readCollectionFromString(String in) throws DeserializerException {
  988.         return (Collection) this.xmlToObj(in.getBytes(), Collection.class);
  989.     }  
  990.    
  991.    
  992.    
  993.     /*
  994.      =================================================================================
  995.      Object: condition
  996.      =================================================================================
  997.     */
  998.    
  999.     /**
  1000.      * Transform the xml in <var>fileName</var> in the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1001.      *
  1002.      * @param fileName Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1003.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1004.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  1005.      */
  1006.     public Condition readCondition(String fileName) throws DeserializerException {
  1007.         return (Condition) this.xmlToObj(fileName, Condition.class);
  1008.     }
  1009.    
  1010.     /**
  1011.      * Transform the xml in <var>file</var> in the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1012.      *
  1013.      * @param file Xml file to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1014.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1015.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  1016.      */
  1017.     public Condition readCondition(File file) throws DeserializerException {
  1018.         return (Condition) this.xmlToObj(file, Condition.class);
  1019.     }
  1020.    
  1021.     /**
  1022.      * Transform the input stream <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1023.      *
  1024.      * @param in InputStream to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1025.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1026.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  1027.      */
  1028.     public Condition readCondition(InputStream in) throws DeserializerException {
  1029.         return (Condition) this.xmlToObj(in, Condition.class);
  1030.     }  
  1031.    
  1032.     /**
  1033.      * Transform the byte array <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1034.      *
  1035.      * @param in Byte array to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1036.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1037.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  1038.      */
  1039.     public Condition readCondition(byte[] in) throws DeserializerException {
  1040.         return (Condition) this.xmlToObj(in, Condition.class);
  1041.     }  
  1042.    
  1043.     /**
  1044.      * Transform the String <var>in</var> in the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1045.      *
  1046.      * @param in String to use for the reconstruction of the object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1047.      * @return Object type {@link org.openspcoop2.core.mvc.properties.Condition}
  1048.      * @throws DeserializerException The exception that is thrown when an error occurs during deserialization
  1049.      */
  1050.     public Condition readConditionFromString(String in) throws DeserializerException {
  1051.         return (Condition) this.xmlToObj(in.getBytes(), Condition.class);
  1052.     }  
  1053.    
  1054.    
  1055.    

  1056. }