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 $Author$
  45.  * */

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

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

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

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

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

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

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

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

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

  80.   private static final long serialVersionUID = 1L;

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


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

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

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

  101. }