Messaggio.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.pdd.monitor;

  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.pdd.monitor.constants.StatoMessaggio;
  27. import java.io.Serializable;


  28. /** <p>Java class for messaggio complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="messaggio"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="dettaglio" type="{http://www.openspcoop2.org/pdd/monitor}dettaglio" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="busta-info" type="{http://www.openspcoop2.org/pdd/monitor}busta" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="id-messaggio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="ora-attuale" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="ora-registrazione" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="stato" type="{http://www.openspcoop2.org/pdd/monitor}StatoMessaggio" minOccurs="1" 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 = "messaggio",
  52.   propOrder = {
  53.     "dettaglio",
  54.     "bustaInfo",
  55.     "idMessaggio",
  56.     "oraAttuale",
  57.     "oraRegistrazione",
  58.     "stato"
  59.   }
  60. )

  61. @XmlRootElement(name = "messaggio")

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

  66.   public Dettaglio getDettaglio() {
  67.     return this.dettaglio;
  68.   }

  69.   public void setDettaglio(Dettaglio dettaglio) {
  70.     this.dettaglio = dettaglio;
  71.   }

  72.   public Busta getBustaInfo() {
  73.     return this.bustaInfo;
  74.   }

  75.   public void setBustaInfo(Busta bustaInfo) {
  76.     this.bustaInfo = bustaInfo;
  77.   }

  78.   public java.lang.String getIdMessaggio() {
  79.     return this.idMessaggio;
  80.   }

  81.   public void setIdMessaggio(java.lang.String idMessaggio) {
  82.     this.idMessaggio = idMessaggio;
  83.   }

  84.   public java.util.Date getOraAttuale() {
  85.     return this.oraAttuale;
  86.   }

  87.   public void setOraAttuale(java.util.Date oraAttuale) {
  88.     this.oraAttuale = oraAttuale;
  89.   }

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

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

  96.   public void setStatoRawEnumValue(String value) {
  97.     this.stato = (StatoMessaggio) StatoMessaggio.toEnumConstantFromString(value);
  98.   }

  99.   public String getStatoRawEnumValue() {
  100.     if(this.stato == null){
  101.         return null;
  102.     }else{
  103.         return this.stato.toString();
  104.     }
  105.   }

  106.   public org.openspcoop2.pdd.monitor.constants.StatoMessaggio getStato() {
  107.     return this.stato;
  108.   }

  109.   public void setStato(org.openspcoop2.pdd.monitor.constants.StatoMessaggio stato) {
  110.     this.stato = stato;
  111.   }

  112.   public Filtro getFiltro() {
  113.     return this.filtro;
  114.   }

  115.   public void setFiltro(Filtro filtro) {
  116.     this.filtro = filtro;
  117.   }

  118.   private static final long serialVersionUID = 1L;

  119.   private static org.openspcoop2.pdd.monitor.model.MessaggioModel modelStaticInstance = null;
  120.   private static synchronized void initModelStaticInstance(){
  121.       if(org.openspcoop2.pdd.monitor.Messaggio.modelStaticInstance==null){
  122.             org.openspcoop2.pdd.monitor.Messaggio.modelStaticInstance = new org.openspcoop2.pdd.monitor.model.MessaggioModel();
  123.       }
  124.   }
  125.   public static org.openspcoop2.pdd.monitor.model.MessaggioModel model(){
  126.       if(org.openspcoop2.pdd.monitor.Messaggio.modelStaticInstance==null){
  127.             initModelStaticInstance();
  128.       }
  129.       return org.openspcoop2.pdd.monitor.Messaggio.modelStaticInstance;
  130.   }


  131.   @XmlElement(name="dettaglio",required=true,nillable=false)
  132.   protected Dettaglio dettaglio;

  133.   @XmlElement(name="busta-info",required=true,nillable=false)
  134.   protected Busta bustaInfo;

  135.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  136.   @XmlElement(name="id-messaggio",required=true,nillable=false)
  137.   protected java.lang.String idMessaggio;

  138.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  139.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  140.   @XmlElement(name="ora-attuale",required=true,nillable=false,type=java.lang.String.class)
  141.   protected java.util.Date oraAttuale;

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

  146.   @javax.xml.bind.annotation.XmlTransient
  147.   protected java.lang.String statoRawEnumValue;

  148.   @XmlElement(name="stato",required=true,nillable=false)
  149.   protected StatoMessaggio stato;

  150.   @javax.xml.bind.annotation.XmlTransient
  151.   protected Filtro filtro;

  152. }