AbstractSerializer.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.SerializerException;
  22. import org.openspcoop2.utils.beans.WriteToSerializerType;
  23. import org.openspcoop2.utils.xml.JaxbUtils;

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

  40. import java.io.ByteArrayOutputStream;
  41. import java.io.FileOutputStream;
  42. import java.io.OutputStream;
  43. import java.io.File;
  44. import java.lang.reflect.Method;

  45. import javax.xml.bind.JAXBElement;

  46. /**    
  47.  * XML Serializer of beans
  48.  *
  49.  * @author Poli Andrea (poli@link.it)
  50.  * @author $Author$
  51.  * @version $Rev$, $Date$
  52.  */
  53. public abstract class AbstractSerializer {


  54.     protected abstract WriteToSerializerType getType();
  55.    
  56.     protected void _objToXml(OutputStream out, Class<?> c, Object object,
  57.             boolean prettyPrint) throws Exception {
  58.         if(object instanceof JAXBElement){
  59.             // solo per il tipo WriteToSerializerType.JAXB
  60.             JaxbUtils.objToXml(out, c, object, prettyPrint);
  61.         }else{
  62.             Method m = c.getMethod("writeTo", OutputStream.class, WriteToSerializerType.class);
  63.             m.invoke(object, out, this.getType());
  64.         }
  65.     }
  66.    
  67.     protected void objToXml(OutputStream out,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  68.         try{
  69.             this._objToXml(out, c, object, prettyPrint);
  70.         }catch(Exception e){
  71.             throw new SerializerException(e.getMessage(), e);
  72.         }
  73.         finally{
  74.             try{
  75.                 out.flush();
  76.             }catch(Exception e){
  77.                 // ignore
  78.             }
  79.         }
  80.     }
  81.     protected void objToXml(String fileName,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  82.         try{
  83.             this.objToXml(new File(fileName), c, object, prettyPrint);
  84.         }catch(Exception e){
  85.             throw new SerializerException(e.getMessage(), e);
  86.         }
  87.     }
  88.     protected void objToXml(File file,Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  89.         FileOutputStream fout = null;
  90.         try{
  91.             fout = new FileOutputStream(file);
  92.             this._objToXml(fout, c, object, prettyPrint);
  93.         }catch(Exception e){
  94.             throw new SerializerException(e.getMessage(), e);
  95.         }
  96.         finally{
  97.             try{
  98.                 if(fout!=null){
  99.                     fout.flush();
  100.                 }
  101.             }catch(Exception e){
  102.                 // ignore
  103.             }
  104.             try{
  105.                 if(fout!=null){
  106.                     fout.close();
  107.                 }
  108.             }catch(Exception e){
  109.                 // ignore
  110.             }
  111.         }
  112.     }
  113.     protected ByteArrayOutputStream objToXml(Class<?> c,Object object,boolean prettyPrint) throws SerializerException{
  114.         ByteArrayOutputStream bout = null;
  115.         try{
  116.             bout = new ByteArrayOutputStream();
  117.             this._objToXml(bout, c, object, prettyPrint);
  118.         }catch(Exception e){
  119.             throw new SerializerException(e.getMessage(), e);
  120.         }
  121.         finally{
  122.             try{
  123.                 if(bout!=null){
  124.                     bout.flush();
  125.                 }
  126.             }catch(Exception e){
  127.                 // ignore
  128.             }
  129.             try{
  130.                 if(bout!=null){
  131.                     bout.close();
  132.                 }
  133.             }catch(Exception e){
  134.                 // ignore
  135.             }
  136.         }
  137.         return bout;
  138.     }




  139.     /*
  140.      =================================================================================
  141.      Object: defined
  142.      =================================================================================
  143.     */
  144.    
  145.     /**
  146.      * Serialize to file system in <var>fileName</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  147.      *
  148.      * @param fileName Xml file to serialize the object <var>defined</var>
  149.      * @param defined Object to be serialized in xml file <var>fileName</var>
  150.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  151.      */
  152.     public void write(String fileName,Defined defined) throws SerializerException {
  153.         this.objToXml(fileName, Defined.class, defined, false);
  154.     }
  155.     /**
  156.      * Serialize to file system in <var>fileName</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  157.      *
  158.      * @param fileName Xml file to serialize the object <var>defined</var>
  159.      * @param defined Object to be serialized in xml file <var>fileName</var>
  160.      * @param prettyPrint if true output the XML with indenting
  161.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  162.      */
  163.     public void write(String fileName,Defined defined,boolean prettyPrint) throws SerializerException {
  164.         this.objToXml(fileName, Defined.class, defined, prettyPrint);
  165.     }
  166.    
  167.     /**
  168.      * Serialize to file system in <var>file</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  169.      *
  170.      * @param file Xml file to serialize the object <var>defined</var>
  171.      * @param defined Object to be serialized in xml file <var>fileName</var>
  172.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  173.      */
  174.     public void write(File file,Defined defined) throws SerializerException {
  175.         this.objToXml(file, Defined.class, defined, false);
  176.     }
  177.     /**
  178.      * Serialize to file system in <var>file</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  179.      *
  180.      * @param file Xml file to serialize the object <var>defined</var>
  181.      * @param defined Object to be serialized in xml file <var>fileName</var>
  182.      * @param prettyPrint if true output the XML with indenting
  183.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  184.      */
  185.     public void write(File file,Defined defined,boolean prettyPrint) throws SerializerException {
  186.         this.objToXml(file, Defined.class, defined, prettyPrint);
  187.     }
  188.    
  189.     /**
  190.      * Serialize to output stream <var>out</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  191.      *
  192.      * @param out OutputStream to serialize the object <var>defined</var>
  193.      * @param defined Object to be serialized in xml file <var>fileName</var>
  194.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  195.      */
  196.     public void write(OutputStream out,Defined defined) throws SerializerException {
  197.         this.objToXml(out, Defined.class, defined, false);
  198.     }
  199.     /**
  200.      * Serialize to output stream <var>out</var> the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  201.      *
  202.      * @param out OutputStream to serialize the object <var>defined</var>
  203.      * @param defined Object to be serialized in xml file <var>fileName</var>
  204.      * @param prettyPrint if true output the XML with indenting
  205.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  206.      */
  207.     public void write(OutputStream out,Defined defined,boolean prettyPrint) throws SerializerException {
  208.         this.objToXml(out, Defined.class, defined, prettyPrint);
  209.     }
  210.            
  211.     /**
  212.      * Serialize to byte array the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  213.      *
  214.      * @param defined Object to be serialized
  215.      * @return Object to be serialized in byte array
  216.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  217.      */
  218.     public byte[] toByteArray(Defined defined) throws SerializerException {
  219.         return this.objToXml(Defined.class, defined, false).toByteArray();
  220.     }
  221.     /**
  222.      * Serialize to byte array the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  223.      *
  224.      * @param defined Object to be serialized
  225.      * @param prettyPrint if true output the XML with indenting
  226.      * @return Object to be serialized in byte array
  227.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  228.      */
  229.     public byte[] toByteArray(Defined defined,boolean prettyPrint) throws SerializerException {
  230.         return this.objToXml(Defined.class, defined, prettyPrint).toByteArray();
  231.     }
  232.    
  233.     /**
  234.      * Serialize to String the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  235.      *
  236.      * @param defined Object to be serialized
  237.      * @return Object to be serialized as String
  238.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  239.      */
  240.     public String toString(Defined defined) throws SerializerException {
  241.         return this.objToXml(Defined.class, defined, false).toString();
  242.     }
  243.     /**
  244.      * Serialize to String the object <var>defined</var> of type {@link org.openspcoop2.core.mvc.properties.Defined}
  245.      *
  246.      * @param defined Object to be serialized
  247.      * @param prettyPrint if true output the XML with indenting
  248.      * @return Object to be serialized as String
  249.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  250.      */
  251.     public String toString(Defined defined,boolean prettyPrint) throws SerializerException {
  252.         return this.objToXml(Defined.class, defined, prettyPrint).toString();
  253.     }
  254.    
  255.    
  256.    
  257.     /*
  258.      =================================================================================
  259.      Object: conditions
  260.      =================================================================================
  261.     */
  262.    
  263.     /**
  264.      * Serialize to file system in <var>fileName</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  265.      *
  266.      * @param fileName Xml file to serialize the object <var>conditions</var>
  267.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  268.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  269.      */
  270.     public void write(String fileName,Conditions conditions) throws SerializerException {
  271.         this.objToXml(fileName, Conditions.class, conditions, false);
  272.     }
  273.     /**
  274.      * Serialize to file system in <var>fileName</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  275.      *
  276.      * @param fileName Xml file to serialize the object <var>conditions</var>
  277.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  278.      * @param prettyPrint if true output the XML with indenting
  279.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  280.      */
  281.     public void write(String fileName,Conditions conditions,boolean prettyPrint) throws SerializerException {
  282.         this.objToXml(fileName, Conditions.class, conditions, prettyPrint);
  283.     }
  284.    
  285.     /**
  286.      * Serialize to file system in <var>file</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  287.      *
  288.      * @param file Xml file to serialize the object <var>conditions</var>
  289.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  290.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  291.      */
  292.     public void write(File file,Conditions conditions) throws SerializerException {
  293.         this.objToXml(file, Conditions.class, conditions, false);
  294.     }
  295.     /**
  296.      * Serialize to file system in <var>file</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  297.      *
  298.      * @param file Xml file to serialize the object <var>conditions</var>
  299.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  300.      * @param prettyPrint if true output the XML with indenting
  301.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  302.      */
  303.     public void write(File file,Conditions conditions,boolean prettyPrint) throws SerializerException {
  304.         this.objToXml(file, Conditions.class, conditions, prettyPrint);
  305.     }
  306.    
  307.     /**
  308.      * Serialize to output stream <var>out</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  309.      *
  310.      * @param out OutputStream to serialize the object <var>conditions</var>
  311.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  312.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  313.      */
  314.     public void write(OutputStream out,Conditions conditions) throws SerializerException {
  315.         this.objToXml(out, Conditions.class, conditions, false);
  316.     }
  317.     /**
  318.      * Serialize to output stream <var>out</var> the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  319.      *
  320.      * @param out OutputStream to serialize the object <var>conditions</var>
  321.      * @param conditions Object to be serialized in xml file <var>fileName</var>
  322.      * @param prettyPrint if true output the XML with indenting
  323.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  324.      */
  325.     public void write(OutputStream out,Conditions conditions,boolean prettyPrint) throws SerializerException {
  326.         this.objToXml(out, Conditions.class, conditions, prettyPrint);
  327.     }
  328.            
  329.     /**
  330.      * Serialize to byte array the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  331.      *
  332.      * @param conditions Object to be serialized
  333.      * @return Object to be serialized in byte array
  334.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  335.      */
  336.     public byte[] toByteArray(Conditions conditions) throws SerializerException {
  337.         return this.objToXml(Conditions.class, conditions, false).toByteArray();
  338.     }
  339.     /**
  340.      * Serialize to byte array the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  341.      *
  342.      * @param conditions Object to be serialized
  343.      * @param prettyPrint if true output the XML with indenting
  344.      * @return Object to be serialized in byte array
  345.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  346.      */
  347.     public byte[] toByteArray(Conditions conditions,boolean prettyPrint) throws SerializerException {
  348.         return this.objToXml(Conditions.class, conditions, prettyPrint).toByteArray();
  349.     }
  350.    
  351.     /**
  352.      * Serialize to String the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  353.      *
  354.      * @param conditions Object to be serialized
  355.      * @return Object to be serialized as String
  356.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  357.      */
  358.     public String toString(Conditions conditions) throws SerializerException {
  359.         return this.objToXml(Conditions.class, conditions, false).toString();
  360.     }
  361.     /**
  362.      * Serialize to String the object <var>conditions</var> of type {@link org.openspcoop2.core.mvc.properties.Conditions}
  363.      *
  364.      * @param conditions Object to be serialized
  365.      * @param prettyPrint if true output the XML with indenting
  366.      * @return Object to be serialized as String
  367.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  368.      */
  369.     public String toString(Conditions conditions,boolean prettyPrint) throws SerializerException {
  370.         return this.objToXml(Conditions.class, conditions, prettyPrint).toString();
  371.     }
  372.    
  373.    
  374.    
  375.     /*
  376.      =================================================================================
  377.      Object: subsection
  378.      =================================================================================
  379.     */
  380.    
  381.     /**
  382.      * Serialize to file system in <var>fileName</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  383.      *
  384.      * @param fileName Xml file to serialize the object <var>subsection</var>
  385.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  386.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  387.      */
  388.     public void write(String fileName,Subsection subsection) throws SerializerException {
  389.         this.objToXml(fileName, Subsection.class, subsection, false);
  390.     }
  391.     /**
  392.      * Serialize to file system in <var>fileName</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  393.      *
  394.      * @param fileName Xml file to serialize the object <var>subsection</var>
  395.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  396.      * @param prettyPrint if true output the XML with indenting
  397.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  398.      */
  399.     public void write(String fileName,Subsection subsection,boolean prettyPrint) throws SerializerException {
  400.         this.objToXml(fileName, Subsection.class, subsection, prettyPrint);
  401.     }
  402.    
  403.     /**
  404.      * Serialize to file system in <var>file</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  405.      *
  406.      * @param file Xml file to serialize the object <var>subsection</var>
  407.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  408.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  409.      */
  410.     public void write(File file,Subsection subsection) throws SerializerException {
  411.         this.objToXml(file, Subsection.class, subsection, false);
  412.     }
  413.     /**
  414.      * Serialize to file system in <var>file</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  415.      *
  416.      * @param file Xml file to serialize the object <var>subsection</var>
  417.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  418.      * @param prettyPrint if true output the XML with indenting
  419.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  420.      */
  421.     public void write(File file,Subsection subsection,boolean prettyPrint) throws SerializerException {
  422.         this.objToXml(file, Subsection.class, subsection, prettyPrint);
  423.     }
  424.    
  425.     /**
  426.      * Serialize to output stream <var>out</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  427.      *
  428.      * @param out OutputStream to serialize the object <var>subsection</var>
  429.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  430.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  431.      */
  432.     public void write(OutputStream out,Subsection subsection) throws SerializerException {
  433.         this.objToXml(out, Subsection.class, subsection, false);
  434.     }
  435.     /**
  436.      * Serialize to output stream <var>out</var> the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  437.      *
  438.      * @param out OutputStream to serialize the object <var>subsection</var>
  439.      * @param subsection Object to be serialized in xml file <var>fileName</var>
  440.      * @param prettyPrint if true output the XML with indenting
  441.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  442.      */
  443.     public void write(OutputStream out,Subsection subsection,boolean prettyPrint) throws SerializerException {
  444.         this.objToXml(out, Subsection.class, subsection, prettyPrint);
  445.     }
  446.            
  447.     /**
  448.      * Serialize to byte array the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  449.      *
  450.      * @param subsection Object to be serialized
  451.      * @return Object to be serialized in byte array
  452.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  453.      */
  454.     public byte[] toByteArray(Subsection subsection) throws SerializerException {
  455.         return this.objToXml(Subsection.class, subsection, false).toByteArray();
  456.     }
  457.     /**
  458.      * Serialize to byte array the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  459.      *
  460.      * @param subsection Object to be serialized
  461.      * @param prettyPrint if true output the XML with indenting
  462.      * @return Object to be serialized in byte array
  463.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  464.      */
  465.     public byte[] toByteArray(Subsection subsection,boolean prettyPrint) throws SerializerException {
  466.         return this.objToXml(Subsection.class, subsection, prettyPrint).toByteArray();
  467.     }
  468.    
  469.     /**
  470.      * Serialize to String the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  471.      *
  472.      * @param subsection Object to be serialized
  473.      * @return Object to be serialized as String
  474.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  475.      */
  476.     public String toString(Subsection subsection) throws SerializerException {
  477.         return this.objToXml(Subsection.class, subsection, false).toString();
  478.     }
  479.     /**
  480.      * Serialize to String the object <var>subsection</var> of type {@link org.openspcoop2.core.mvc.properties.Subsection}
  481.      *
  482.      * @param subsection Object to be serialized
  483.      * @param prettyPrint if true output the XML with indenting
  484.      * @return Object to be serialized as String
  485.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  486.      */
  487.     public String toString(Subsection subsection,boolean prettyPrint) throws SerializerException {
  488.         return this.objToXml(Subsection.class, subsection, prettyPrint).toString();
  489.     }
  490.    
  491.    
  492.    
  493.     /*
  494.      =================================================================================
  495.      Object: item
  496.      =================================================================================
  497.     */
  498.    
  499.     /**
  500.      * Serialize to file system in <var>fileName</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  501.      *
  502.      * @param fileName Xml file to serialize the object <var>item</var>
  503.      * @param item Object to be serialized in xml file <var>fileName</var>
  504.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  505.      */
  506.     public void write(String fileName,Item item) throws SerializerException {
  507.         this.objToXml(fileName, Item.class, item, false);
  508.     }
  509.     /**
  510.      * Serialize to file system in <var>fileName</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  511.      *
  512.      * @param fileName Xml file to serialize the object <var>item</var>
  513.      * @param item Object to be serialized in xml file <var>fileName</var>
  514.      * @param prettyPrint if true output the XML with indenting
  515.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  516.      */
  517.     public void write(String fileName,Item item,boolean prettyPrint) throws SerializerException {
  518.         this.objToXml(fileName, Item.class, item, prettyPrint);
  519.     }
  520.    
  521.     /**
  522.      * Serialize to file system in <var>file</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  523.      *
  524.      * @param file Xml file to serialize the object <var>item</var>
  525.      * @param item Object to be serialized in xml file <var>fileName</var>
  526.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  527.      */
  528.     public void write(File file,Item item) throws SerializerException {
  529.         this.objToXml(file, Item.class, item, false);
  530.     }
  531.     /**
  532.      * Serialize to file system in <var>file</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  533.      *
  534.      * @param file Xml file to serialize the object <var>item</var>
  535.      * @param item Object to be serialized in xml file <var>fileName</var>
  536.      * @param prettyPrint if true output the XML with indenting
  537.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  538.      */
  539.     public void write(File file,Item item,boolean prettyPrint) throws SerializerException {
  540.         this.objToXml(file, Item.class, item, prettyPrint);
  541.     }
  542.    
  543.     /**
  544.      * Serialize to output stream <var>out</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  545.      *
  546.      * @param out OutputStream to serialize the object <var>item</var>
  547.      * @param item Object to be serialized in xml file <var>fileName</var>
  548.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  549.      */
  550.     public void write(OutputStream out,Item item) throws SerializerException {
  551.         this.objToXml(out, Item.class, item, false);
  552.     }
  553.     /**
  554.      * Serialize to output stream <var>out</var> the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  555.      *
  556.      * @param out OutputStream to serialize the object <var>item</var>
  557.      * @param item Object to be serialized in xml file <var>fileName</var>
  558.      * @param prettyPrint if true output the XML with indenting
  559.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  560.      */
  561.     public void write(OutputStream out,Item item,boolean prettyPrint) throws SerializerException {
  562.         this.objToXml(out, Item.class, item, prettyPrint);
  563.     }
  564.            
  565.     /**
  566.      * Serialize to byte array the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  567.      *
  568.      * @param item Object to be serialized
  569.      * @return Object to be serialized in byte array
  570.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  571.      */
  572.     public byte[] toByteArray(Item item) throws SerializerException {
  573.         return this.objToXml(Item.class, item, false).toByteArray();
  574.     }
  575.     /**
  576.      * Serialize to byte array the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  577.      *
  578.      * @param item Object to be serialized
  579.      * @param prettyPrint if true output the XML with indenting
  580.      * @return Object to be serialized in byte array
  581.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  582.      */
  583.     public byte[] toByteArray(Item item,boolean prettyPrint) throws SerializerException {
  584.         return this.objToXml(Item.class, item, prettyPrint).toByteArray();
  585.     }
  586.    
  587.     /**
  588.      * Serialize to String the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  589.      *
  590.      * @param item Object to be serialized
  591.      * @return Object to be serialized as String
  592.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  593.      */
  594.     public String toString(Item item) throws SerializerException {
  595.         return this.objToXml(Item.class, item, false).toString();
  596.     }
  597.     /**
  598.      * Serialize to String the object <var>item</var> of type {@link org.openspcoop2.core.mvc.properties.Item}
  599.      *
  600.      * @param item Object to be serialized
  601.      * @param prettyPrint if true output the XML with indenting
  602.      * @return Object to be serialized as String
  603.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  604.      */
  605.     public String toString(Item item,boolean prettyPrint) throws SerializerException {
  606.         return this.objToXml(Item.class, item, prettyPrint).toString();
  607.     }
  608.    
  609.    
  610.    
  611.     /*
  612.      =================================================================================
  613.      Object: selected
  614.      =================================================================================
  615.     */
  616.    
  617.     /**
  618.      * Serialize to file system in <var>fileName</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  619.      *
  620.      * @param fileName Xml file to serialize the object <var>selected</var>
  621.      * @param selected Object to be serialized in xml file <var>fileName</var>
  622.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  623.      */
  624.     public void write(String fileName,Selected selected) throws SerializerException {
  625.         this.objToXml(fileName, Selected.class, selected, false);
  626.     }
  627.     /**
  628.      * Serialize to file system in <var>fileName</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  629.      *
  630.      * @param fileName Xml file to serialize the object <var>selected</var>
  631.      * @param selected Object to be serialized in xml file <var>fileName</var>
  632.      * @param prettyPrint if true output the XML with indenting
  633.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  634.      */
  635.     public void write(String fileName,Selected selected,boolean prettyPrint) throws SerializerException {
  636.         this.objToXml(fileName, Selected.class, selected, prettyPrint);
  637.     }
  638.    
  639.     /**
  640.      * Serialize to file system in <var>file</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  641.      *
  642.      * @param file Xml file to serialize the object <var>selected</var>
  643.      * @param selected Object to be serialized in xml file <var>fileName</var>
  644.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  645.      */
  646.     public void write(File file,Selected selected) throws SerializerException {
  647.         this.objToXml(file, Selected.class, selected, false);
  648.     }
  649.     /**
  650.      * Serialize to file system in <var>file</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  651.      *
  652.      * @param file Xml file to serialize the object <var>selected</var>
  653.      * @param selected Object to be serialized in xml file <var>fileName</var>
  654.      * @param prettyPrint if true output the XML with indenting
  655.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  656.      */
  657.     public void write(File file,Selected selected,boolean prettyPrint) throws SerializerException {
  658.         this.objToXml(file, Selected.class, selected, prettyPrint);
  659.     }
  660.    
  661.     /**
  662.      * Serialize to output stream <var>out</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  663.      *
  664.      * @param out OutputStream to serialize the object <var>selected</var>
  665.      * @param selected Object to be serialized in xml file <var>fileName</var>
  666.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  667.      */
  668.     public void write(OutputStream out,Selected selected) throws SerializerException {
  669.         this.objToXml(out, Selected.class, selected, false);
  670.     }
  671.     /**
  672.      * Serialize to output stream <var>out</var> the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  673.      *
  674.      * @param out OutputStream to serialize the object <var>selected</var>
  675.      * @param selected Object to be serialized in xml file <var>fileName</var>
  676.      * @param prettyPrint if true output the XML with indenting
  677.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  678.      */
  679.     public void write(OutputStream out,Selected selected,boolean prettyPrint) throws SerializerException {
  680.         this.objToXml(out, Selected.class, selected, prettyPrint);
  681.     }
  682.            
  683.     /**
  684.      * Serialize to byte array the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  685.      *
  686.      * @param selected Object to be serialized
  687.      * @return Object to be serialized in byte array
  688.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  689.      */
  690.     public byte[] toByteArray(Selected selected) throws SerializerException {
  691.         return this.objToXml(Selected.class, selected, false).toByteArray();
  692.     }
  693.     /**
  694.      * Serialize to byte array the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  695.      *
  696.      * @param selected Object to be serialized
  697.      * @param prettyPrint if true output the XML with indenting
  698.      * @return Object to be serialized in byte array
  699.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  700.      */
  701.     public byte[] toByteArray(Selected selected,boolean prettyPrint) throws SerializerException {
  702.         return this.objToXml(Selected.class, selected, prettyPrint).toByteArray();
  703.     }
  704.    
  705.     /**
  706.      * Serialize to String the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  707.      *
  708.      * @param selected Object to be serialized
  709.      * @return Object to be serialized as String
  710.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  711.      */
  712.     public String toString(Selected selected) throws SerializerException {
  713.         return this.objToXml(Selected.class, selected, false).toString();
  714.     }
  715.     /**
  716.      * Serialize to String the object <var>selected</var> of type {@link org.openspcoop2.core.mvc.properties.Selected}
  717.      *
  718.      * @param selected Object to be serialized
  719.      * @param prettyPrint if true output the XML with indenting
  720.      * @return Object to be serialized as String
  721.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  722.      */
  723.     public String toString(Selected selected,boolean prettyPrint) throws SerializerException {
  724.         return this.objToXml(Selected.class, selected, prettyPrint).toString();
  725.     }
  726.    
  727.    
  728.    
  729.     /*
  730.      =================================================================================
  731.      Object: itemValue
  732.      =================================================================================
  733.     */
  734.    
  735.     /**
  736.      * Serialize to file system in <var>fileName</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  737.      *
  738.      * @param fileName Xml file to serialize the object <var>itemValue</var>
  739.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  740.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  741.      */
  742.     public void write(String fileName,ItemValue itemValue) throws SerializerException {
  743.         this.objToXml(fileName, ItemValue.class, itemValue, false);
  744.     }
  745.     /**
  746.      * Serialize to file system in <var>fileName</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  747.      *
  748.      * @param fileName Xml file to serialize the object <var>itemValue</var>
  749.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  750.      * @param prettyPrint if true output the XML with indenting
  751.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  752.      */
  753.     public void write(String fileName,ItemValue itemValue,boolean prettyPrint) throws SerializerException {
  754.         this.objToXml(fileName, ItemValue.class, itemValue, prettyPrint);
  755.     }
  756.    
  757.     /**
  758.      * Serialize to file system in <var>file</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  759.      *
  760.      * @param file Xml file to serialize the object <var>itemValue</var>
  761.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  762.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  763.      */
  764.     public void write(File file,ItemValue itemValue) throws SerializerException {
  765.         this.objToXml(file, ItemValue.class, itemValue, false);
  766.     }
  767.     /**
  768.      * Serialize to file system in <var>file</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  769.      *
  770.      * @param file Xml file to serialize the object <var>itemValue</var>
  771.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  772.      * @param prettyPrint if true output the XML with indenting
  773.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  774.      */
  775.     public void write(File file,ItemValue itemValue,boolean prettyPrint) throws SerializerException {
  776.         this.objToXml(file, ItemValue.class, itemValue, prettyPrint);
  777.     }
  778.    
  779.     /**
  780.      * Serialize to output stream <var>out</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  781.      *
  782.      * @param out OutputStream to serialize the object <var>itemValue</var>
  783.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  784.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  785.      */
  786.     public void write(OutputStream out,ItemValue itemValue) throws SerializerException {
  787.         this.objToXml(out, ItemValue.class, itemValue, false);
  788.     }
  789.     /**
  790.      * Serialize to output stream <var>out</var> the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  791.      *
  792.      * @param out OutputStream to serialize the object <var>itemValue</var>
  793.      * @param itemValue Object to be serialized in xml file <var>fileName</var>
  794.      * @param prettyPrint if true output the XML with indenting
  795.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  796.      */
  797.     public void write(OutputStream out,ItemValue itemValue,boolean prettyPrint) throws SerializerException {
  798.         this.objToXml(out, ItemValue.class, itemValue, prettyPrint);
  799.     }
  800.            
  801.     /**
  802.      * Serialize to byte array the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  803.      *
  804.      * @param itemValue Object to be serialized
  805.      * @return Object to be serialized in byte array
  806.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  807.      */
  808.     public byte[] toByteArray(ItemValue itemValue) throws SerializerException {
  809.         return this.objToXml(ItemValue.class, itemValue, false).toByteArray();
  810.     }
  811.     /**
  812.      * Serialize to byte array the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  813.      *
  814.      * @param itemValue Object to be serialized
  815.      * @param prettyPrint if true output the XML with indenting
  816.      * @return Object to be serialized in byte array
  817.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  818.      */
  819.     public byte[] toByteArray(ItemValue itemValue,boolean prettyPrint) throws SerializerException {
  820.         return this.objToXml(ItemValue.class, itemValue, prettyPrint).toByteArray();
  821.     }
  822.    
  823.     /**
  824.      * Serialize to String the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  825.      *
  826.      * @param itemValue Object to be serialized
  827.      * @return Object to be serialized as String
  828.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  829.      */
  830.     public String toString(ItemValue itemValue) throws SerializerException {
  831.         return this.objToXml(ItemValue.class, itemValue, false).toString();
  832.     }
  833.     /**
  834.      * Serialize to String the object <var>itemValue</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValue}
  835.      *
  836.      * @param itemValue Object to be serialized
  837.      * @param prettyPrint if true output the XML with indenting
  838.      * @return Object to be serialized as String
  839.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  840.      */
  841.     public String toString(ItemValue itemValue,boolean prettyPrint) throws SerializerException {
  842.         return this.objToXml(ItemValue.class, itemValue, prettyPrint).toString();
  843.     }
  844.    
  845.    
  846.    
  847.     /*
  848.      =================================================================================
  849.      Object: itemValues
  850.      =================================================================================
  851.     */
  852.    
  853.     /**
  854.      * Serialize to file system in <var>fileName</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  855.      *
  856.      * @param fileName Xml file to serialize the object <var>itemValues</var>
  857.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  858.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  859.      */
  860.     public void write(String fileName,ItemValues itemValues) throws SerializerException {
  861.         this.objToXml(fileName, ItemValues.class, itemValues, false);
  862.     }
  863.     /**
  864.      * Serialize to file system in <var>fileName</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  865.      *
  866.      * @param fileName Xml file to serialize the object <var>itemValues</var>
  867.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  868.      * @param prettyPrint if true output the XML with indenting
  869.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  870.      */
  871.     public void write(String fileName,ItemValues itemValues,boolean prettyPrint) throws SerializerException {
  872.         this.objToXml(fileName, ItemValues.class, itemValues, prettyPrint);
  873.     }
  874.    
  875.     /**
  876.      * Serialize to file system in <var>file</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  877.      *
  878.      * @param file Xml file to serialize the object <var>itemValues</var>
  879.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  880.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  881.      */
  882.     public void write(File file,ItemValues itemValues) throws SerializerException {
  883.         this.objToXml(file, ItemValues.class, itemValues, false);
  884.     }
  885.     /**
  886.      * Serialize to file system in <var>file</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  887.      *
  888.      * @param file Xml file to serialize the object <var>itemValues</var>
  889.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  890.      * @param prettyPrint if true output the XML with indenting
  891.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  892.      */
  893.     public void write(File file,ItemValues itemValues,boolean prettyPrint) throws SerializerException {
  894.         this.objToXml(file, ItemValues.class, itemValues, prettyPrint);
  895.     }
  896.    
  897.     /**
  898.      * Serialize to output stream <var>out</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  899.      *
  900.      * @param out OutputStream to serialize the object <var>itemValues</var>
  901.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  902.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  903.      */
  904.     public void write(OutputStream out,ItemValues itemValues) throws SerializerException {
  905.         this.objToXml(out, ItemValues.class, itemValues, false);
  906.     }
  907.     /**
  908.      * Serialize to output stream <var>out</var> the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  909.      *
  910.      * @param out OutputStream to serialize the object <var>itemValues</var>
  911.      * @param itemValues Object to be serialized in xml file <var>fileName</var>
  912.      * @param prettyPrint if true output the XML with indenting
  913.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  914.      */
  915.     public void write(OutputStream out,ItemValues itemValues,boolean prettyPrint) throws SerializerException {
  916.         this.objToXml(out, ItemValues.class, itemValues, prettyPrint);
  917.     }
  918.            
  919.     /**
  920.      * Serialize to byte array the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  921.      *
  922.      * @param itemValues Object to be serialized
  923.      * @return Object to be serialized in byte array
  924.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  925.      */
  926.     public byte[] toByteArray(ItemValues itemValues) throws SerializerException {
  927.         return this.objToXml(ItemValues.class, itemValues, false).toByteArray();
  928.     }
  929.     /**
  930.      * Serialize to byte array the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  931.      *
  932.      * @param itemValues Object to be serialized
  933.      * @param prettyPrint if true output the XML with indenting
  934.      * @return Object to be serialized in byte array
  935.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  936.      */
  937.     public byte[] toByteArray(ItemValues itemValues,boolean prettyPrint) throws SerializerException {
  938.         return this.objToXml(ItemValues.class, itemValues, prettyPrint).toByteArray();
  939.     }
  940.    
  941.     /**
  942.      * Serialize to String the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  943.      *
  944.      * @param itemValues Object to be serialized
  945.      * @return Object to be serialized as String
  946.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  947.      */
  948.     public String toString(ItemValues itemValues) throws SerializerException {
  949.         return this.objToXml(ItemValues.class, itemValues, false).toString();
  950.     }
  951.     /**
  952.      * Serialize to String the object <var>itemValues</var> of type {@link org.openspcoop2.core.mvc.properties.ItemValues}
  953.      *
  954.      * @param itemValues Object to be serialized
  955.      * @param prettyPrint if true output the XML with indenting
  956.      * @return Object to be serialized as String
  957.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  958.      */
  959.     public String toString(ItemValues itemValues,boolean prettyPrint) throws SerializerException {
  960.         return this.objToXml(ItemValues.class, itemValues, prettyPrint).toString();
  961.     }
  962.    
  963.    
  964.    
  965.     /*
  966.      =================================================================================
  967.      Object: equals
  968.      =================================================================================
  969.     */
  970.    
  971.     /**
  972.      * Serialize to file system in <var>fileName</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  973.      *
  974.      * @param fileName Xml file to serialize the object <var>equals</var>
  975.      * @param equals Object to be serialized in xml file <var>fileName</var>
  976.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  977.      */
  978.     public void write(String fileName,Equals equals) throws SerializerException {
  979.         this.objToXml(fileName, Equals.class, equals, false);
  980.     }
  981.     /**
  982.      * Serialize to file system in <var>fileName</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  983.      *
  984.      * @param fileName Xml file to serialize the object <var>equals</var>
  985.      * @param equals Object to be serialized in xml file <var>fileName</var>
  986.      * @param prettyPrint if true output the XML with indenting
  987.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  988.      */
  989.     public void write(String fileName,Equals equals,boolean prettyPrint) throws SerializerException {
  990.         this.objToXml(fileName, Equals.class, equals, prettyPrint);
  991.     }
  992.    
  993.     /**
  994.      * Serialize to file system in <var>file</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  995.      *
  996.      * @param file Xml file to serialize the object <var>equals</var>
  997.      * @param equals Object to be serialized in xml file <var>fileName</var>
  998.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  999.      */
  1000.     public void write(File file,Equals equals) throws SerializerException {
  1001.         this.objToXml(file, Equals.class, equals, false);
  1002.     }
  1003.     /**
  1004.      * Serialize to file system in <var>file</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1005.      *
  1006.      * @param file Xml file to serialize the object <var>equals</var>
  1007.      * @param equals Object to be serialized in xml file <var>fileName</var>
  1008.      * @param prettyPrint if true output the XML with indenting
  1009.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1010.      */
  1011.     public void write(File file,Equals equals,boolean prettyPrint) throws SerializerException {
  1012.         this.objToXml(file, Equals.class, equals, prettyPrint);
  1013.     }
  1014.    
  1015.     /**
  1016.      * Serialize to output stream <var>out</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1017.      *
  1018.      * @param out OutputStream to serialize the object <var>equals</var>
  1019.      * @param equals Object to be serialized in xml file <var>fileName</var>
  1020.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1021.      */
  1022.     public void write(OutputStream out,Equals equals) throws SerializerException {
  1023.         this.objToXml(out, Equals.class, equals, false);
  1024.     }
  1025.     /**
  1026.      * Serialize to output stream <var>out</var> the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1027.      *
  1028.      * @param out OutputStream to serialize the object <var>equals</var>
  1029.      * @param equals Object to be serialized in xml file <var>fileName</var>
  1030.      * @param prettyPrint if true output the XML with indenting
  1031.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1032.      */
  1033.     public void write(OutputStream out,Equals equals,boolean prettyPrint) throws SerializerException {
  1034.         this.objToXml(out, Equals.class, equals, prettyPrint);
  1035.     }
  1036.            
  1037.     /**
  1038.      * Serialize to byte array the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1039.      *
  1040.      * @param equals Object to be serialized
  1041.      * @return Object to be serialized in byte array
  1042.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1043.      */
  1044.     public byte[] toByteArray(Equals equals) throws SerializerException {
  1045.         return this.objToXml(Equals.class, equals, false).toByteArray();
  1046.     }
  1047.     /**
  1048.      * Serialize to byte array the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1049.      *
  1050.      * @param equals Object to be serialized
  1051.      * @param prettyPrint if true output the XML with indenting
  1052.      * @return Object to be serialized in byte array
  1053.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1054.      */
  1055.     public byte[] toByteArray(Equals equals,boolean prettyPrint) throws SerializerException {
  1056.         return this.objToXml(Equals.class, equals, prettyPrint).toByteArray();
  1057.     }
  1058.    
  1059.     /**
  1060.      * Serialize to String the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1061.      *
  1062.      * @param equals Object to be serialized
  1063.      * @return Object to be serialized as String
  1064.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1065.      */
  1066.     public String toString(Equals equals) throws SerializerException {
  1067.         return this.objToXml(Equals.class, equals, false).toString();
  1068.     }
  1069.     /**
  1070.      * Serialize to String the object <var>equals</var> of type {@link org.openspcoop2.core.mvc.properties.Equals}
  1071.      *
  1072.      * @param equals Object to be serialized
  1073.      * @param prettyPrint if true output the XML with indenting
  1074.      * @return Object to be serialized as String
  1075.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1076.      */
  1077.     public String toString(Equals equals,boolean prettyPrint) throws SerializerException {
  1078.         return this.objToXml(Equals.class, equals, prettyPrint).toString();
  1079.     }
  1080.    
  1081.    
  1082.    
  1083.     /*
  1084.      =================================================================================
  1085.      Object: compatibility
  1086.      =================================================================================
  1087.     */
  1088.    
  1089.     /**
  1090.      * Serialize to file system in <var>fileName</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1091.      *
  1092.      * @param fileName Xml file to serialize the object <var>compatibility</var>
  1093.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1094.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1095.      */
  1096.     public void write(String fileName,Compatibility compatibility) throws SerializerException {
  1097.         this.objToXml(fileName, Compatibility.class, compatibility, false);
  1098.     }
  1099.     /**
  1100.      * Serialize to file system in <var>fileName</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1101.      *
  1102.      * @param fileName Xml file to serialize the object <var>compatibility</var>
  1103.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1104.      * @param prettyPrint if true output the XML with indenting
  1105.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1106.      */
  1107.     public void write(String fileName,Compatibility compatibility,boolean prettyPrint) throws SerializerException {
  1108.         this.objToXml(fileName, Compatibility.class, compatibility, prettyPrint);
  1109.     }
  1110.    
  1111.     /**
  1112.      * Serialize to file system in <var>file</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1113.      *
  1114.      * @param file Xml file to serialize the object <var>compatibility</var>
  1115.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1116.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1117.      */
  1118.     public void write(File file,Compatibility compatibility) throws SerializerException {
  1119.         this.objToXml(file, Compatibility.class, compatibility, false);
  1120.     }
  1121.     /**
  1122.      * Serialize to file system in <var>file</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1123.      *
  1124.      * @param file Xml file to serialize the object <var>compatibility</var>
  1125.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1126.      * @param prettyPrint if true output the XML with indenting
  1127.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1128.      */
  1129.     public void write(File file,Compatibility compatibility,boolean prettyPrint) throws SerializerException {
  1130.         this.objToXml(file, Compatibility.class, compatibility, prettyPrint);
  1131.     }
  1132.    
  1133.     /**
  1134.      * Serialize to output stream <var>out</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1135.      *
  1136.      * @param out OutputStream to serialize the object <var>compatibility</var>
  1137.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1138.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1139.      */
  1140.     public void write(OutputStream out,Compatibility compatibility) throws SerializerException {
  1141.         this.objToXml(out, Compatibility.class, compatibility, false);
  1142.     }
  1143.     /**
  1144.      * Serialize to output stream <var>out</var> the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1145.      *
  1146.      * @param out OutputStream to serialize the object <var>compatibility</var>
  1147.      * @param compatibility Object to be serialized in xml file <var>fileName</var>
  1148.      * @param prettyPrint if true output the XML with indenting
  1149.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1150.      */
  1151.     public void write(OutputStream out,Compatibility compatibility,boolean prettyPrint) throws SerializerException {
  1152.         this.objToXml(out, Compatibility.class, compatibility, prettyPrint);
  1153.     }
  1154.            
  1155.     /**
  1156.      * Serialize to byte array the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1157.      *
  1158.      * @param compatibility Object to be serialized
  1159.      * @return Object to be serialized in byte array
  1160.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1161.      */
  1162.     public byte[] toByteArray(Compatibility compatibility) throws SerializerException {
  1163.         return this.objToXml(Compatibility.class, compatibility, false).toByteArray();
  1164.     }
  1165.     /**
  1166.      * Serialize to byte array the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1167.      *
  1168.      * @param compatibility Object to be serialized
  1169.      * @param prettyPrint if true output the XML with indenting
  1170.      * @return Object to be serialized in byte array
  1171.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1172.      */
  1173.     public byte[] toByteArray(Compatibility compatibility,boolean prettyPrint) throws SerializerException {
  1174.         return this.objToXml(Compatibility.class, compatibility, prettyPrint).toByteArray();
  1175.     }
  1176.    
  1177.     /**
  1178.      * Serialize to String the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1179.      *
  1180.      * @param compatibility Object to be serialized
  1181.      * @return Object to be serialized as String
  1182.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1183.      */
  1184.     public String toString(Compatibility compatibility) throws SerializerException {
  1185.         return this.objToXml(Compatibility.class, compatibility, false).toString();
  1186.     }
  1187.     /**
  1188.      * Serialize to String the object <var>compatibility</var> of type {@link org.openspcoop2.core.mvc.properties.Compatibility}
  1189.      *
  1190.      * @param compatibility Object to be serialized
  1191.      * @param prettyPrint if true output the XML with indenting
  1192.      * @return Object to be serialized as String
  1193.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1194.      */
  1195.     public String toString(Compatibility compatibility,boolean prettyPrint) throws SerializerException {
  1196.         return this.objToXml(Compatibility.class, compatibility, prettyPrint).toString();
  1197.     }
  1198.    
  1199.    
  1200.    
  1201.     /*
  1202.      =================================================================================
  1203.      Object: config
  1204.      =================================================================================
  1205.     */
  1206.    
  1207.     /**
  1208.      * Serialize to file system in <var>fileName</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1209.      *
  1210.      * @param fileName Xml file to serialize the object <var>config</var>
  1211.      * @param config Object to be serialized in xml file <var>fileName</var>
  1212.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1213.      */
  1214.     public void write(String fileName,Config config) throws SerializerException {
  1215.         this.objToXml(fileName, Config.class, config, false);
  1216.     }
  1217.     /**
  1218.      * Serialize to file system in <var>fileName</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1219.      *
  1220.      * @param fileName Xml file to serialize the object <var>config</var>
  1221.      * @param config Object to be serialized in xml file <var>fileName</var>
  1222.      * @param prettyPrint if true output the XML with indenting
  1223.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1224.      */
  1225.     public void write(String fileName,Config config,boolean prettyPrint) throws SerializerException {
  1226.         this.objToXml(fileName, Config.class, config, prettyPrint);
  1227.     }
  1228.    
  1229.     /**
  1230.      * Serialize to file system in <var>file</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1231.      *
  1232.      * @param file Xml file to serialize the object <var>config</var>
  1233.      * @param config Object to be serialized in xml file <var>fileName</var>
  1234.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1235.      */
  1236.     public void write(File file,Config config) throws SerializerException {
  1237.         this.objToXml(file, Config.class, config, false);
  1238.     }
  1239.     /**
  1240.      * Serialize to file system in <var>file</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1241.      *
  1242.      * @param file Xml file to serialize the object <var>config</var>
  1243.      * @param config Object to be serialized in xml file <var>fileName</var>
  1244.      * @param prettyPrint if true output the XML with indenting
  1245.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1246.      */
  1247.     public void write(File file,Config config,boolean prettyPrint) throws SerializerException {
  1248.         this.objToXml(file, Config.class, config, prettyPrint);
  1249.     }
  1250.    
  1251.     /**
  1252.      * Serialize to output stream <var>out</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1253.      *
  1254.      * @param out OutputStream to serialize the object <var>config</var>
  1255.      * @param config Object to be serialized in xml file <var>fileName</var>
  1256.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1257.      */
  1258.     public void write(OutputStream out,Config config) throws SerializerException {
  1259.         this.objToXml(out, Config.class, config, false);
  1260.     }
  1261.     /**
  1262.      * Serialize to output stream <var>out</var> the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1263.      *
  1264.      * @param out OutputStream to serialize the object <var>config</var>
  1265.      * @param config Object to be serialized in xml file <var>fileName</var>
  1266.      * @param prettyPrint if true output the XML with indenting
  1267.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1268.      */
  1269.     public void write(OutputStream out,Config config,boolean prettyPrint) throws SerializerException {
  1270.         this.objToXml(out, Config.class, config, prettyPrint);
  1271.     }
  1272.            
  1273.     /**
  1274.      * Serialize to byte array the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1275.      *
  1276.      * @param config Object to be serialized
  1277.      * @return Object to be serialized in byte array
  1278.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1279.      */
  1280.     public byte[] toByteArray(Config config) throws SerializerException {
  1281.         return this.objToXml(Config.class, config, false).toByteArray();
  1282.     }
  1283.     /**
  1284.      * Serialize to byte array the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1285.      *
  1286.      * @param config Object to be serialized
  1287.      * @param prettyPrint if true output the XML with indenting
  1288.      * @return Object to be serialized in byte array
  1289.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1290.      */
  1291.     public byte[] toByteArray(Config config,boolean prettyPrint) throws SerializerException {
  1292.         return this.objToXml(Config.class, config, prettyPrint).toByteArray();
  1293.     }
  1294.    
  1295.     /**
  1296.      * Serialize to String the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1297.      *
  1298.      * @param config Object to be serialized
  1299.      * @return Object to be serialized as String
  1300.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1301.      */
  1302.     public String toString(Config config) throws SerializerException {
  1303.         return this.objToXml(Config.class, config, false).toString();
  1304.     }
  1305.     /**
  1306.      * Serialize to String the object <var>config</var> of type {@link org.openspcoop2.core.mvc.properties.Config}
  1307.      *
  1308.      * @param config Object to be serialized
  1309.      * @param prettyPrint if true output the XML with indenting
  1310.      * @return Object to be serialized as String
  1311.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1312.      */
  1313.     public String toString(Config config,boolean prettyPrint) throws SerializerException {
  1314.         return this.objToXml(Config.class, config, prettyPrint).toString();
  1315.     }
  1316.    
  1317.    
  1318.    
  1319.     /*
  1320.      =================================================================================
  1321.      Object: properties
  1322.      =================================================================================
  1323.     */
  1324.    
  1325.     /**
  1326.      * Serialize to file system in <var>fileName</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1327.      *
  1328.      * @param fileName Xml file to serialize the object <var>properties</var>
  1329.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1330.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1331.      */
  1332.     public void write(String fileName,Properties properties) throws SerializerException {
  1333.         this.objToXml(fileName, Properties.class, properties, false);
  1334.     }
  1335.     /**
  1336.      * Serialize to file system in <var>fileName</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1337.      *
  1338.      * @param fileName Xml file to serialize the object <var>properties</var>
  1339.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1340.      * @param prettyPrint if true output the XML with indenting
  1341.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1342.      */
  1343.     public void write(String fileName,Properties properties,boolean prettyPrint) throws SerializerException {
  1344.         this.objToXml(fileName, Properties.class, properties, prettyPrint);
  1345.     }
  1346.    
  1347.     /**
  1348.      * Serialize to file system in <var>file</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1349.      *
  1350.      * @param file Xml file to serialize the object <var>properties</var>
  1351.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1352.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1353.      */
  1354.     public void write(File file,Properties properties) throws SerializerException {
  1355.         this.objToXml(file, Properties.class, properties, false);
  1356.     }
  1357.     /**
  1358.      * Serialize to file system in <var>file</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1359.      *
  1360.      * @param file Xml file to serialize the object <var>properties</var>
  1361.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1362.      * @param prettyPrint if true output the XML with indenting
  1363.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1364.      */
  1365.     public void write(File file,Properties properties,boolean prettyPrint) throws SerializerException {
  1366.         this.objToXml(file, Properties.class, properties, prettyPrint);
  1367.     }
  1368.    
  1369.     /**
  1370.      * Serialize to output stream <var>out</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1371.      *
  1372.      * @param out OutputStream to serialize the object <var>properties</var>
  1373.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1374.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1375.      */
  1376.     public void write(OutputStream out,Properties properties) throws SerializerException {
  1377.         this.objToXml(out, Properties.class, properties, false);
  1378.     }
  1379.     /**
  1380.      * Serialize to output stream <var>out</var> the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1381.      *
  1382.      * @param out OutputStream to serialize the object <var>properties</var>
  1383.      * @param properties Object to be serialized in xml file <var>fileName</var>
  1384.      * @param prettyPrint if true output the XML with indenting
  1385.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1386.      */
  1387.     public void write(OutputStream out,Properties properties,boolean prettyPrint) throws SerializerException {
  1388.         this.objToXml(out, Properties.class, properties, prettyPrint);
  1389.     }
  1390.            
  1391.     /**
  1392.      * Serialize to byte array the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1393.      *
  1394.      * @param properties Object to be serialized
  1395.      * @return Object to be serialized in byte array
  1396.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1397.      */
  1398.     public byte[] toByteArray(Properties properties) throws SerializerException {
  1399.         return this.objToXml(Properties.class, properties, false).toByteArray();
  1400.     }
  1401.     /**
  1402.      * Serialize to byte array the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1403.      *
  1404.      * @param properties Object to be serialized
  1405.      * @param prettyPrint if true output the XML with indenting
  1406.      * @return Object to be serialized in byte array
  1407.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1408.      */
  1409.     public byte[] toByteArray(Properties properties,boolean prettyPrint) throws SerializerException {
  1410.         return this.objToXml(Properties.class, properties, prettyPrint).toByteArray();
  1411.     }
  1412.    
  1413.     /**
  1414.      * Serialize to String the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1415.      *
  1416.      * @param properties Object to be serialized
  1417.      * @return Object to be serialized as String
  1418.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1419.      */
  1420.     public String toString(Properties properties) throws SerializerException {
  1421.         return this.objToXml(Properties.class, properties, false).toString();
  1422.     }
  1423.     /**
  1424.      * Serialize to String the object <var>properties</var> of type {@link org.openspcoop2.core.mvc.properties.Properties}
  1425.      *
  1426.      * @param properties Object to be serialized
  1427.      * @param prettyPrint if true output the XML with indenting
  1428.      * @return Object to be serialized as String
  1429.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1430.      */
  1431.     public String toString(Properties properties,boolean prettyPrint) throws SerializerException {
  1432.         return this.objToXml(Properties.class, properties, prettyPrint).toString();
  1433.     }
  1434.    
  1435.    
  1436.    
  1437.     /*
  1438.      =================================================================================
  1439.      Object: section
  1440.      =================================================================================
  1441.     */
  1442.    
  1443.     /**
  1444.      * Serialize to file system in <var>fileName</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1445.      *
  1446.      * @param fileName Xml file to serialize the object <var>section</var>
  1447.      * @param section Object to be serialized in xml file <var>fileName</var>
  1448.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1449.      */
  1450.     public void write(String fileName,Section section) throws SerializerException {
  1451.         this.objToXml(fileName, Section.class, section, false);
  1452.     }
  1453.     /**
  1454.      * Serialize to file system in <var>fileName</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1455.      *
  1456.      * @param fileName Xml file to serialize the object <var>section</var>
  1457.      * @param section Object to be serialized in xml file <var>fileName</var>
  1458.      * @param prettyPrint if true output the XML with indenting
  1459.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1460.      */
  1461.     public void write(String fileName,Section section,boolean prettyPrint) throws SerializerException {
  1462.         this.objToXml(fileName, Section.class, section, prettyPrint);
  1463.     }
  1464.    
  1465.     /**
  1466.      * Serialize to file system in <var>file</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1467.      *
  1468.      * @param file Xml file to serialize the object <var>section</var>
  1469.      * @param section Object to be serialized in xml file <var>fileName</var>
  1470.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1471.      */
  1472.     public void write(File file,Section section) throws SerializerException {
  1473.         this.objToXml(file, Section.class, section, false);
  1474.     }
  1475.     /**
  1476.      * Serialize to file system in <var>file</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1477.      *
  1478.      * @param file Xml file to serialize the object <var>section</var>
  1479.      * @param section Object to be serialized in xml file <var>fileName</var>
  1480.      * @param prettyPrint if true output the XML with indenting
  1481.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1482.      */
  1483.     public void write(File file,Section section,boolean prettyPrint) throws SerializerException {
  1484.         this.objToXml(file, Section.class, section, prettyPrint);
  1485.     }
  1486.    
  1487.     /**
  1488.      * Serialize to output stream <var>out</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1489.      *
  1490.      * @param out OutputStream to serialize the object <var>section</var>
  1491.      * @param section Object to be serialized in xml file <var>fileName</var>
  1492.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1493.      */
  1494.     public void write(OutputStream out,Section section) throws SerializerException {
  1495.         this.objToXml(out, Section.class, section, false);
  1496.     }
  1497.     /**
  1498.      * Serialize to output stream <var>out</var> the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1499.      *
  1500.      * @param out OutputStream to serialize the object <var>section</var>
  1501.      * @param section Object to be serialized in xml file <var>fileName</var>
  1502.      * @param prettyPrint if true output the XML with indenting
  1503.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1504.      */
  1505.     public void write(OutputStream out,Section section,boolean prettyPrint) throws SerializerException {
  1506.         this.objToXml(out, Section.class, section, prettyPrint);
  1507.     }
  1508.            
  1509.     /**
  1510.      * Serialize to byte array the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1511.      *
  1512.      * @param section Object to be serialized
  1513.      * @return Object to be serialized in byte array
  1514.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1515.      */
  1516.     public byte[] toByteArray(Section section) throws SerializerException {
  1517.         return this.objToXml(Section.class, section, false).toByteArray();
  1518.     }
  1519.     /**
  1520.      * Serialize to byte array the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1521.      *
  1522.      * @param section Object to be serialized
  1523.      * @param prettyPrint if true output the XML with indenting
  1524.      * @return Object to be serialized in byte array
  1525.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1526.      */
  1527.     public byte[] toByteArray(Section section,boolean prettyPrint) throws SerializerException {
  1528.         return this.objToXml(Section.class, section, prettyPrint).toByteArray();
  1529.     }
  1530.    
  1531.     /**
  1532.      * Serialize to String the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1533.      *
  1534.      * @param section Object to be serialized
  1535.      * @return Object to be serialized as String
  1536.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1537.      */
  1538.     public String toString(Section section) throws SerializerException {
  1539.         return this.objToXml(Section.class, section, false).toString();
  1540.     }
  1541.     /**
  1542.      * Serialize to String the object <var>section</var> of type {@link org.openspcoop2.core.mvc.properties.Section}
  1543.      *
  1544.      * @param section Object to be serialized
  1545.      * @param prettyPrint if true output the XML with indenting
  1546.      * @return Object to be serialized as String
  1547.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1548.      */
  1549.     public String toString(Section section,boolean prettyPrint) throws SerializerException {
  1550.         return this.objToXml(Section.class, section, prettyPrint).toString();
  1551.     }
  1552.    
  1553.    
  1554.    
  1555.     /*
  1556.      =================================================================================
  1557.      Object: property
  1558.      =================================================================================
  1559.     */
  1560.    
  1561.     /**
  1562.      * Serialize to file system in <var>fileName</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1563.      *
  1564.      * @param fileName Xml file to serialize the object <var>property</var>
  1565.      * @param property Object to be serialized in xml file <var>fileName</var>
  1566.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1567.      */
  1568.     public void write(String fileName,Property property) throws SerializerException {
  1569.         this.objToXml(fileName, Property.class, property, false);
  1570.     }
  1571.     /**
  1572.      * Serialize to file system in <var>fileName</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1573.      *
  1574.      * @param fileName Xml file to serialize the object <var>property</var>
  1575.      * @param property Object to be serialized in xml file <var>fileName</var>
  1576.      * @param prettyPrint if true output the XML with indenting
  1577.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1578.      */
  1579.     public void write(String fileName,Property property,boolean prettyPrint) throws SerializerException {
  1580.         this.objToXml(fileName, Property.class, property, prettyPrint);
  1581.     }
  1582.    
  1583.     /**
  1584.      * Serialize to file system in <var>file</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1585.      *
  1586.      * @param file Xml file to serialize the object <var>property</var>
  1587.      * @param property Object to be serialized in xml file <var>fileName</var>
  1588.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1589.      */
  1590.     public void write(File file,Property property) throws SerializerException {
  1591.         this.objToXml(file, Property.class, property, false);
  1592.     }
  1593.     /**
  1594.      * Serialize to file system in <var>file</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1595.      *
  1596.      * @param file Xml file to serialize the object <var>property</var>
  1597.      * @param property Object to be serialized in xml file <var>fileName</var>
  1598.      * @param prettyPrint if true output the XML with indenting
  1599.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1600.      */
  1601.     public void write(File file,Property property,boolean prettyPrint) throws SerializerException {
  1602.         this.objToXml(file, Property.class, property, prettyPrint);
  1603.     }
  1604.    
  1605.     /**
  1606.      * Serialize to output stream <var>out</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1607.      *
  1608.      * @param out OutputStream to serialize the object <var>property</var>
  1609.      * @param property Object to be serialized in xml file <var>fileName</var>
  1610.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1611.      */
  1612.     public void write(OutputStream out,Property property) throws SerializerException {
  1613.         this.objToXml(out, Property.class, property, false);
  1614.     }
  1615.     /**
  1616.      * Serialize to output stream <var>out</var> the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1617.      *
  1618.      * @param out OutputStream to serialize the object <var>property</var>
  1619.      * @param property Object to be serialized in xml file <var>fileName</var>
  1620.      * @param prettyPrint if true output the XML with indenting
  1621.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1622.      */
  1623.     public void write(OutputStream out,Property property,boolean prettyPrint) throws SerializerException {
  1624.         this.objToXml(out, Property.class, property, prettyPrint);
  1625.     }
  1626.            
  1627.     /**
  1628.      * Serialize to byte array the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1629.      *
  1630.      * @param property Object to be serialized
  1631.      * @return Object to be serialized in byte array
  1632.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1633.      */
  1634.     public byte[] toByteArray(Property property) throws SerializerException {
  1635.         return this.objToXml(Property.class, property, false).toByteArray();
  1636.     }
  1637.     /**
  1638.      * Serialize to byte array the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1639.      *
  1640.      * @param property Object to be serialized
  1641.      * @param prettyPrint if true output the XML with indenting
  1642.      * @return Object to be serialized in byte array
  1643.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1644.      */
  1645.     public byte[] toByteArray(Property property,boolean prettyPrint) throws SerializerException {
  1646.         return this.objToXml(Property.class, property, prettyPrint).toByteArray();
  1647.     }
  1648.    
  1649.     /**
  1650.      * Serialize to String the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1651.      *
  1652.      * @param property Object to be serialized
  1653.      * @return Object to be serialized as String
  1654.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1655.      */
  1656.     public String toString(Property property) throws SerializerException {
  1657.         return this.objToXml(Property.class, property, false).toString();
  1658.     }
  1659.     /**
  1660.      * Serialize to String the object <var>property</var> of type {@link org.openspcoop2.core.mvc.properties.Property}
  1661.      *
  1662.      * @param property Object to be serialized
  1663.      * @param prettyPrint if true output the XML with indenting
  1664.      * @return Object to be serialized as String
  1665.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1666.      */
  1667.     public String toString(Property property,boolean prettyPrint) throws SerializerException {
  1668.         return this.objToXml(Property.class, property, prettyPrint).toString();
  1669.     }
  1670.    
  1671.    
  1672.    
  1673.     /*
  1674.      =================================================================================
  1675.      Object: tags
  1676.      =================================================================================
  1677.     */
  1678.    
  1679.     /**
  1680.      * Serialize to file system in <var>fileName</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1681.      *
  1682.      * @param fileName Xml file to serialize the object <var>tags</var>
  1683.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1684.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1685.      */
  1686.     public void write(String fileName,Tags tags) throws SerializerException {
  1687.         this.objToXml(fileName, Tags.class, tags, false);
  1688.     }
  1689.     /**
  1690.      * Serialize to file system in <var>fileName</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1691.      *
  1692.      * @param fileName Xml file to serialize the object <var>tags</var>
  1693.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1694.      * @param prettyPrint if true output the XML with indenting
  1695.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1696.      */
  1697.     public void write(String fileName,Tags tags,boolean prettyPrint) throws SerializerException {
  1698.         this.objToXml(fileName, Tags.class, tags, prettyPrint);
  1699.     }
  1700.    
  1701.     /**
  1702.      * Serialize to file system in <var>file</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1703.      *
  1704.      * @param file Xml file to serialize the object <var>tags</var>
  1705.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1706.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1707.      */
  1708.     public void write(File file,Tags tags) throws SerializerException {
  1709.         this.objToXml(file, Tags.class, tags, false);
  1710.     }
  1711.     /**
  1712.      * Serialize to file system in <var>file</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1713.      *
  1714.      * @param file Xml file to serialize the object <var>tags</var>
  1715.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1716.      * @param prettyPrint if true output the XML with indenting
  1717.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1718.      */
  1719.     public void write(File file,Tags tags,boolean prettyPrint) throws SerializerException {
  1720.         this.objToXml(file, Tags.class, tags, prettyPrint);
  1721.     }
  1722.    
  1723.     /**
  1724.      * Serialize to output stream <var>out</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1725.      *
  1726.      * @param out OutputStream to serialize the object <var>tags</var>
  1727.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1728.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1729.      */
  1730.     public void write(OutputStream out,Tags tags) throws SerializerException {
  1731.         this.objToXml(out, Tags.class, tags, false);
  1732.     }
  1733.     /**
  1734.      * Serialize to output stream <var>out</var> the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1735.      *
  1736.      * @param out OutputStream to serialize the object <var>tags</var>
  1737.      * @param tags Object to be serialized in xml file <var>fileName</var>
  1738.      * @param prettyPrint if true output the XML with indenting
  1739.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1740.      */
  1741.     public void write(OutputStream out,Tags tags,boolean prettyPrint) throws SerializerException {
  1742.         this.objToXml(out, Tags.class, tags, prettyPrint);
  1743.     }
  1744.            
  1745.     /**
  1746.      * Serialize to byte array the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1747.      *
  1748.      * @param tags Object to be serialized
  1749.      * @return Object to be serialized in byte array
  1750.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1751.      */
  1752.     public byte[] toByteArray(Tags tags) throws SerializerException {
  1753.         return this.objToXml(Tags.class, tags, false).toByteArray();
  1754.     }
  1755.     /**
  1756.      * Serialize to byte array the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1757.      *
  1758.      * @param tags Object to be serialized
  1759.      * @param prettyPrint if true output the XML with indenting
  1760.      * @return Object to be serialized in byte array
  1761.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1762.      */
  1763.     public byte[] toByteArray(Tags tags,boolean prettyPrint) throws SerializerException {
  1764.         return this.objToXml(Tags.class, tags, prettyPrint).toByteArray();
  1765.     }
  1766.    
  1767.     /**
  1768.      * Serialize to String the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1769.      *
  1770.      * @param tags Object to be serialized
  1771.      * @return Object to be serialized as String
  1772.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1773.      */
  1774.     public String toString(Tags tags) throws SerializerException {
  1775.         return this.objToXml(Tags.class, tags, false).toString();
  1776.     }
  1777.     /**
  1778.      * Serialize to String the object <var>tags</var> of type {@link org.openspcoop2.core.mvc.properties.Tags}
  1779.      *
  1780.      * @param tags Object to be serialized
  1781.      * @param prettyPrint if true output the XML with indenting
  1782.      * @return Object to be serialized as String
  1783.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1784.      */
  1785.     public String toString(Tags tags,boolean prettyPrint) throws SerializerException {
  1786.         return this.objToXml(Tags.class, tags, prettyPrint).toString();
  1787.     }
  1788.    
  1789.    
  1790.    
  1791.     /*
  1792.      =================================================================================
  1793.      Object: collection
  1794.      =================================================================================
  1795.     */
  1796.    
  1797.     /**
  1798.      * Serialize to file system in <var>fileName</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1799.      *
  1800.      * @param fileName Xml file to serialize the object <var>collection</var>
  1801.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1802.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1803.      */
  1804.     public void write(String fileName,Collection collection) throws SerializerException {
  1805.         this.objToXml(fileName, Collection.class, collection, false);
  1806.     }
  1807.     /**
  1808.      * Serialize to file system in <var>fileName</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1809.      *
  1810.      * @param fileName Xml file to serialize the object <var>collection</var>
  1811.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1812.      * @param prettyPrint if true output the XML with indenting
  1813.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1814.      */
  1815.     public void write(String fileName,Collection collection,boolean prettyPrint) throws SerializerException {
  1816.         this.objToXml(fileName, Collection.class, collection, prettyPrint);
  1817.     }
  1818.    
  1819.     /**
  1820.      * Serialize to file system in <var>file</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1821.      *
  1822.      * @param file Xml file to serialize the object <var>collection</var>
  1823.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1824.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1825.      */
  1826.     public void write(File file,Collection collection) throws SerializerException {
  1827.         this.objToXml(file, Collection.class, collection, false);
  1828.     }
  1829.     /**
  1830.      * Serialize to file system in <var>file</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1831.      *
  1832.      * @param file Xml file to serialize the object <var>collection</var>
  1833.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1834.      * @param prettyPrint if true output the XML with indenting
  1835.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1836.      */
  1837.     public void write(File file,Collection collection,boolean prettyPrint) throws SerializerException {
  1838.         this.objToXml(file, Collection.class, collection, prettyPrint);
  1839.     }
  1840.    
  1841.     /**
  1842.      * Serialize to output stream <var>out</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1843.      *
  1844.      * @param out OutputStream to serialize the object <var>collection</var>
  1845.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1846.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1847.      */
  1848.     public void write(OutputStream out,Collection collection) throws SerializerException {
  1849.         this.objToXml(out, Collection.class, collection, false);
  1850.     }
  1851.     /**
  1852.      * Serialize to output stream <var>out</var> the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1853.      *
  1854.      * @param out OutputStream to serialize the object <var>collection</var>
  1855.      * @param collection Object to be serialized in xml file <var>fileName</var>
  1856.      * @param prettyPrint if true output the XML with indenting
  1857.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1858.      */
  1859.     public void write(OutputStream out,Collection collection,boolean prettyPrint) throws SerializerException {
  1860.         this.objToXml(out, Collection.class, collection, prettyPrint);
  1861.     }
  1862.            
  1863.     /**
  1864.      * Serialize to byte array the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1865.      *
  1866.      * @param collection Object to be serialized
  1867.      * @return Object to be serialized in byte array
  1868.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1869.      */
  1870.     public byte[] toByteArray(Collection collection) throws SerializerException {
  1871.         return this.objToXml(Collection.class, collection, false).toByteArray();
  1872.     }
  1873.     /**
  1874.      * Serialize to byte array the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1875.      *
  1876.      * @param collection Object to be serialized
  1877.      * @param prettyPrint if true output the XML with indenting
  1878.      * @return Object to be serialized in byte array
  1879.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1880.      */
  1881.     public byte[] toByteArray(Collection collection,boolean prettyPrint) throws SerializerException {
  1882.         return this.objToXml(Collection.class, collection, prettyPrint).toByteArray();
  1883.     }
  1884.    
  1885.     /**
  1886.      * Serialize to String the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1887.      *
  1888.      * @param collection Object to be serialized
  1889.      * @return Object to be serialized as String
  1890.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1891.      */
  1892.     public String toString(Collection collection) throws SerializerException {
  1893.         return this.objToXml(Collection.class, collection, false).toString();
  1894.     }
  1895.     /**
  1896.      * Serialize to String the object <var>collection</var> of type {@link org.openspcoop2.core.mvc.properties.Collection}
  1897.      *
  1898.      * @param collection Object to be serialized
  1899.      * @param prettyPrint if true output the XML with indenting
  1900.      * @return Object to be serialized as String
  1901.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1902.      */
  1903.     public String toString(Collection collection,boolean prettyPrint) throws SerializerException {
  1904.         return this.objToXml(Collection.class, collection, prettyPrint).toString();
  1905.     }
  1906.    
  1907.    
  1908.    
  1909.     /*
  1910.      =================================================================================
  1911.      Object: condition
  1912.      =================================================================================
  1913.     */
  1914.    
  1915.     /**
  1916.      * Serialize to file system in <var>fileName</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1917.      *
  1918.      * @param fileName Xml file to serialize the object <var>condition</var>
  1919.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1920.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1921.      */
  1922.     public void write(String fileName,Condition condition) throws SerializerException {
  1923.         this.objToXml(fileName, Condition.class, condition, false);
  1924.     }
  1925.     /**
  1926.      * Serialize to file system in <var>fileName</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1927.      *
  1928.      * @param fileName Xml file to serialize the object <var>condition</var>
  1929.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1930.      * @param prettyPrint if true output the XML with indenting
  1931.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1932.      */
  1933.     public void write(String fileName,Condition condition,boolean prettyPrint) throws SerializerException {
  1934.         this.objToXml(fileName, Condition.class, condition, prettyPrint);
  1935.     }
  1936.    
  1937.     /**
  1938.      * Serialize to file system in <var>file</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1939.      *
  1940.      * @param file Xml file to serialize the object <var>condition</var>
  1941.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1942.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1943.      */
  1944.     public void write(File file,Condition condition) throws SerializerException {
  1945.         this.objToXml(file, Condition.class, condition, false);
  1946.     }
  1947.     /**
  1948.      * Serialize to file system in <var>file</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1949.      *
  1950.      * @param file Xml file to serialize the object <var>condition</var>
  1951.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1952.      * @param prettyPrint if true output the XML with indenting
  1953.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1954.      */
  1955.     public void write(File file,Condition condition,boolean prettyPrint) throws SerializerException {
  1956.         this.objToXml(file, Condition.class, condition, prettyPrint);
  1957.     }
  1958.    
  1959.     /**
  1960.      * Serialize to output stream <var>out</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1961.      *
  1962.      * @param out OutputStream to serialize the object <var>condition</var>
  1963.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1964.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1965.      */
  1966.     public void write(OutputStream out,Condition condition) throws SerializerException {
  1967.         this.objToXml(out, Condition.class, condition, false);
  1968.     }
  1969.     /**
  1970.      * Serialize to output stream <var>out</var> the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1971.      *
  1972.      * @param out OutputStream to serialize the object <var>condition</var>
  1973.      * @param condition Object to be serialized in xml file <var>fileName</var>
  1974.      * @param prettyPrint if true output the XML with indenting
  1975.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1976.      */
  1977.     public void write(OutputStream out,Condition condition,boolean prettyPrint) throws SerializerException {
  1978.         this.objToXml(out, Condition.class, condition, prettyPrint);
  1979.     }
  1980.            
  1981.     /**
  1982.      * Serialize to byte array the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1983.      *
  1984.      * @param condition Object to be serialized
  1985.      * @return Object to be serialized in byte array
  1986.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1987.      */
  1988.     public byte[] toByteArray(Condition condition) throws SerializerException {
  1989.         return this.objToXml(Condition.class, condition, false).toByteArray();
  1990.     }
  1991.     /**
  1992.      * Serialize to byte array the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  1993.      *
  1994.      * @param condition Object to be serialized
  1995.      * @param prettyPrint if true output the XML with indenting
  1996.      * @return Object to be serialized in byte array
  1997.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  1998.      */
  1999.     public byte[] toByteArray(Condition condition,boolean prettyPrint) throws SerializerException {
  2000.         return this.objToXml(Condition.class, condition, prettyPrint).toByteArray();
  2001.     }
  2002.    
  2003.     /**
  2004.      * Serialize to String the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  2005.      *
  2006.      * @param condition Object to be serialized
  2007.      * @return Object to be serialized as String
  2008.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  2009.      */
  2010.     public String toString(Condition condition) throws SerializerException {
  2011.         return this.objToXml(Condition.class, condition, false).toString();
  2012.     }
  2013.     /**
  2014.      * Serialize to String the object <var>condition</var> of type {@link org.openspcoop2.core.mvc.properties.Condition}
  2015.      *
  2016.      * @param condition Object to be serialized
  2017.      * @param prettyPrint if true output the XML with indenting
  2018.      * @return Object to be serialized as String
  2019.      * @throws SerializerException The exception that is thrown when an error occurs during serialization
  2020.      */
  2021.     public String toString(Condition condition,boolean prettyPrint) throws SerializerException {
  2022.         return this.objToXml(Condition.class, condition, prettyPrint).toString();
  2023.     }
  2024.    
  2025.    
  2026.    

  2027. }