StatisticaInfo.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.statistiche;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.statistiche.constants.TipoIntervalloStatistico;
  27. import java.io.Serializable;


  28. /** <p>Java class for statistica-info complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="statistica-info"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="tipo-statistica" type="{http://www.openspcoop2.org/core/statistiche}tipo-intervallo-statistico" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="data-ultima-generazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  37.  *      &lt;/sequence&gt;
  38.  * &lt;/complexType&gt;
  39.  * </pre>
  40.  *
  41.  * @version $Rev$, $Date$
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author Tommaso Burlon (tommaso.burlon@link.it)
  45.  * @author $Author$
  46.  * */

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "statistica-info",
  49.   propOrder = {
  50.     "tipoStatistica",
  51.     "dataUltimaGenerazione"
  52.   }
  53. )

  54. @XmlRootElement(name = "statistica-info")

  55. public class StatisticaInfo extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  56.   public StatisticaInfo() {
  57.     super();
  58.   }

  59.   public void setTipoStatisticaRawEnumValue(String value) {
  60.     this.tipoStatistica = (TipoIntervalloStatistico) TipoIntervalloStatistico.toEnumConstantFromString(value);
  61.   }

  62.   public String getTipoStatisticaRawEnumValue() {
  63.     if(this.tipoStatistica == null){
  64.         return null;
  65.     }else{
  66.         return this.tipoStatistica.toString();
  67.     }
  68.   }

  69.   public org.openspcoop2.core.statistiche.constants.TipoIntervalloStatistico getTipoStatistica() {
  70.     return this.tipoStatistica;
  71.   }

  72.   public void setTipoStatistica(org.openspcoop2.core.statistiche.constants.TipoIntervalloStatistico tipoStatistica) {
  73.     this.tipoStatistica = tipoStatistica;
  74.   }

  75.   public java.util.Date getDataUltimaGenerazione() {
  76.     return this.dataUltimaGenerazione;
  77.   }

  78.   public void setDataUltimaGenerazione(java.util.Date dataUltimaGenerazione) {
  79.     this.dataUltimaGenerazione = dataUltimaGenerazione;
  80.   }

  81.   private static final long serialVersionUID = 1L;

  82.   private static org.openspcoop2.core.statistiche.model.StatisticaInfoModel modelStaticInstance = null;
  83.   private static synchronized void initModelStaticInstance(){
  84.       if(org.openspcoop2.core.statistiche.StatisticaInfo.modelStaticInstance==null){
  85.             org.openspcoop2.core.statistiche.StatisticaInfo.modelStaticInstance = new org.openspcoop2.core.statistiche.model.StatisticaInfoModel();
  86.       }
  87.   }
  88.   public static org.openspcoop2.core.statistiche.model.StatisticaInfoModel model(){
  89.       if(org.openspcoop2.core.statistiche.StatisticaInfo.modelStaticInstance==null){
  90.             initModelStaticInstance();
  91.       }
  92.       return org.openspcoop2.core.statistiche.StatisticaInfo.modelStaticInstance;
  93.   }


  94.   @javax.xml.bind.annotation.XmlTransient
  95.   protected java.lang.String tipoStatisticaRawEnumValue;

  96.   @XmlElement(name="tipo-statistica",required=true,nillable=false)
  97.   protected TipoIntervalloStatistico tipoStatistica;

  98.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  99.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  100.   @XmlElement(name="data-ultima-generazione",required=true,nillable=false,type=java.lang.String.class)
  101.   protected java.util.Date dataUltimaGenerazione;

  102. }