Evento.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.eventi;

  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 evento complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="evento"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  35.  *          &lt;element name="codice" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="severita" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="id-transazione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="id-configurazione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="configurazione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="cluster-id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  43.  *      &lt;/sequence&gt;
  44.  * &lt;/complexType&gt;
  45.  * </pre>
  46.  *
  47.  * @version $Rev$, $Date$
  48.  *
  49.  * @author Poli Andrea (poli@link.it)
  50.  * @author $Author$
  51.  * */

  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "evento",
  54.   propOrder = {
  55.     "tipo",
  56.     "codice",
  57.     "severita",
  58.     "oraRegistrazione",
  59.     "descrizione",
  60.     "idTransazione",
  61.     "idConfigurazione",
  62.     "configurazione",
  63.     "clusterId"
  64.   }
  65. )

  66. @XmlRootElement(name = "evento")

  67. public class Evento extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  68.   public Evento() {
  69.     super();
  70.   }

  71.   public java.lang.String getTipo() {
  72.     return this.tipo;
  73.   }

  74.   public void setTipo(java.lang.String tipo) {
  75.     this.tipo = tipo;
  76.   }

  77.   public java.lang.String getCodice() {
  78.     return this.codice;
  79.   }

  80.   public void setCodice(java.lang.String codice) {
  81.     this.codice = codice;
  82.   }

  83.   public int getSeverita() {
  84.     return this.severita;
  85.   }

  86.   public void setSeverita(int severita) {
  87.     this.severita = severita;
  88.   }

  89.   public java.util.Date getOraRegistrazione() {
  90.     return this.oraRegistrazione;
  91.   }

  92.   public void setOraRegistrazione(java.util.Date oraRegistrazione) {
  93.     this.oraRegistrazione = oraRegistrazione;
  94.   }

  95.   public java.lang.String getDescrizione() {
  96.     return this.descrizione;
  97.   }

  98.   public void setDescrizione(java.lang.String descrizione) {
  99.     this.descrizione = descrizione;
  100.   }

  101.   public java.lang.String getIdTransazione() {
  102.     return this.idTransazione;
  103.   }

  104.   public void setIdTransazione(java.lang.String idTransazione) {
  105.     this.idTransazione = idTransazione;
  106.   }

  107.   public java.lang.String getIdConfigurazione() {
  108.     return this.idConfigurazione;
  109.   }

  110.   public void setIdConfigurazione(java.lang.String idConfigurazione) {
  111.     this.idConfigurazione = idConfigurazione;
  112.   }

  113.   public java.lang.String getConfigurazione() {
  114.     return this.configurazione;
  115.   }

  116.   public void setConfigurazione(java.lang.String configurazione) {
  117.     this.configurazione = configurazione;
  118.   }

  119.   public java.lang.String getClusterId() {
  120.     return this.clusterId;
  121.   }

  122.   public void setClusterId(java.lang.String clusterId) {
  123.     this.clusterId = clusterId;
  124.   }

  125.   private static final long serialVersionUID = 1L;

  126.   private static org.openspcoop2.core.eventi.model.EventoModel modelStaticInstance = null;
  127.   private static synchronized void initModelStaticInstance(){
  128.       if(org.openspcoop2.core.eventi.Evento.modelStaticInstance==null){
  129.             org.openspcoop2.core.eventi.Evento.modelStaticInstance = new org.openspcoop2.core.eventi.model.EventoModel();
  130.       }
  131.   }
  132.   public static org.openspcoop2.core.eventi.model.EventoModel model(){
  133.       if(org.openspcoop2.core.eventi.Evento.modelStaticInstance==null){
  134.             initModelStaticInstance();
  135.       }
  136.       return org.openspcoop2.core.eventi.Evento.modelStaticInstance;
  137.   }


  138.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  139.   @XmlElement(name="tipo",required=true,nillable=false)
  140.   protected java.lang.String tipo;

  141.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  142.   @XmlElement(name="codice",required=true,nillable=false)
  143.   protected java.lang.String codice;

  144.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  145.   @XmlElement(name="severita",required=true,nillable=false)
  146.   protected int severita;

  147.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  148.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  149.   @XmlElement(name="ora-registrazione",required=true,nillable=false,type=java.lang.String.class)
  150.   protected java.util.Date oraRegistrazione;

  151.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  152.   @XmlElement(name="descrizione",required=false,nillable=false)
  153.   protected java.lang.String descrizione;

  154.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  155.   @XmlElement(name="id-transazione",required=false,nillable=false)
  156.   protected java.lang.String idTransazione;

  157.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  158.   @XmlElement(name="id-configurazione",required=false,nillable=false)
  159.   protected java.lang.String idConfigurazione;

  160.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  161.   @XmlElement(name="configurazione",required=false,nillable=false)
  162.   protected java.lang.String configurazione;

  163.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  164.   @XmlElement(name="cluster-id",required=false,nillable=false)
  165.   protected java.lang.String clusterId;

  166. }