AllarmeNotifica.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.allarmi;

  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 java.io.Serializable;


  27. /** <p>Java class for allarme-notifica complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="allarme-notifica"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="data-notifica" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  35.  *          &lt;element name="id-allarme" type="{http://www.openspcoop2.org/core/allarmi}id-allarme" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="old-stato" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="old-dettaglio-stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="nuovo-stato" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="nuovo-dettaglio-stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="history-entry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "allarme-notifica",
  52.   propOrder = {
  53.     "dataNotifica",
  54.     "idAllarme",
  55.     "oldStato",
  56.     "oldDettaglioStato",
  57.     "nuovoStato",
  58.     "nuovoDettaglioStato",
  59.     "historyEntry"
  60.   }
  61. )

  62. @XmlRootElement(name = "allarme-notifica")

  63. public class AllarmeNotifica extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  64.   public AllarmeNotifica() {
  65.     super();
  66.   }

  67.   public java.util.Date getDataNotifica() {
  68.     return this.dataNotifica;
  69.   }

  70.   public void setDataNotifica(java.util.Date dataNotifica) {
  71.     this.dataNotifica = dataNotifica;
  72.   }

  73.   public IdAllarme getIdAllarme() {
  74.     return this.idAllarme;
  75.   }

  76.   public void setIdAllarme(IdAllarme idAllarme) {
  77.     this.idAllarme = idAllarme;
  78.   }

  79.   public java.lang.Integer getOldStato() {
  80.     return this.oldStato;
  81.   }

  82.   public void setOldStato(java.lang.Integer oldStato) {
  83.     this.oldStato = oldStato;
  84.   }

  85.   public java.lang.String getOldDettaglioStato() {
  86.     return this.oldDettaglioStato;
  87.   }

  88.   public void setOldDettaglioStato(java.lang.String oldDettaglioStato) {
  89.     this.oldDettaglioStato = oldDettaglioStato;
  90.   }

  91.   public java.lang.Integer getNuovoStato() {
  92.     return this.nuovoStato;
  93.   }

  94.   public void setNuovoStato(java.lang.Integer nuovoStato) {
  95.     this.nuovoStato = nuovoStato;
  96.   }

  97.   public java.lang.String getNuovoDettaglioStato() {
  98.     return this.nuovoDettaglioStato;
  99.   }

  100.   public void setNuovoDettaglioStato(java.lang.String nuovoDettaglioStato) {
  101.     this.nuovoDettaglioStato = nuovoDettaglioStato;
  102.   }

  103.   public java.lang.String getHistoryEntry() {
  104.     return this.historyEntry;
  105.   }

  106.   public void setHistoryEntry(java.lang.String historyEntry) {
  107.     this.historyEntry = historyEntry;
  108.   }

  109.   private static final long serialVersionUID = 1L;

  110.   private static org.openspcoop2.core.allarmi.model.AllarmeNotificaModel modelStaticInstance = null;
  111.   private static synchronized void initModelStaticInstance(){
  112.       if(org.openspcoop2.core.allarmi.AllarmeNotifica.modelStaticInstance==null){
  113.             org.openspcoop2.core.allarmi.AllarmeNotifica.modelStaticInstance = new org.openspcoop2.core.allarmi.model.AllarmeNotificaModel();
  114.       }
  115.   }
  116.   public static org.openspcoop2.core.allarmi.model.AllarmeNotificaModel model(){
  117.       if(org.openspcoop2.core.allarmi.AllarmeNotifica.modelStaticInstance==null){
  118.             initModelStaticInstance();
  119.       }
  120.       return org.openspcoop2.core.allarmi.AllarmeNotifica.modelStaticInstance;
  121.   }


  122.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  123.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  124.   @XmlElement(name="data-notifica",required=true,nillable=false,type=java.lang.String.class)
  125.   protected java.util.Date dataNotifica;

  126.   @XmlElement(name="id-allarme",required=true,nillable=false)
  127.   protected IdAllarme idAllarme;

  128.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  129.   @XmlElement(name="old-stato",required=true,nillable=false)
  130.   protected java.lang.Integer oldStato;

  131.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  132.   @XmlElement(name="old-dettaglio-stato",required=false,nillable=false)
  133.   protected java.lang.String oldDettaglioStato;

  134.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  135.   @XmlElement(name="nuovo-stato",required=true,nillable=false)
  136.   protected java.lang.Integer nuovoStato;

  137.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  138.   @XmlElement(name="nuovo-dettaglio-stato",required=false,nillable=false)
  139.   protected java.lang.String nuovoDettaglioStato;

  140.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  141.   @XmlElement(name="history-entry",required=false,nillable=false)
  142.   protected java.lang.String historyEntry;

  143. }