ErroreApplicativo.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.eccezione.errore_applicativo;

  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 errore-applicativo complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="errore-applicativo"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="domain" type="{http://govway.org/integration/fault}dominio" minOccurs="1" maxOccurs="1"/&gt;
  35.  *          &lt;element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="service" type="{http://govway.org/integration/fault}dati-cooperazione" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="exception" type="{http://govway.org/integration/fault}eccezione" minOccurs="1" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  * &lt;/complexType&gt;
  40.  * </pre>
  41.  *
  42.  * @version $Rev$, $Date$
  43.  *
  44.  * @author Poli Andrea (poli@link.it)
  45.  * @author $Author$
  46.  * */

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "errore-applicativo",
  49.   propOrder = {
  50.     "domain",
  51.     "timestamp",
  52.     "service",
  53.     "exception"
  54.   }
  55. )

  56. @XmlRootElement(name = "fault")

  57. public class ErroreApplicativo extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  58.   public ErroreApplicativo() {
  59.     super();
  60.   }

  61.   public Dominio getDomain() {
  62.     return this.domain;
  63.   }

  64.   public void setDomain(Dominio domain) {
  65.     this.domain = domain;
  66.   }

  67.   public java.util.Date getTimestamp() {
  68.     return this.timestamp;
  69.   }

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

  73.   public DatiCooperazione getService() {
  74.     return this.service;
  75.   }

  76.   public void setService(DatiCooperazione service) {
  77.     this.service = service;
  78.   }

  79.   public Eccezione getException() {
  80.     return this.exception;
  81.   }

  82.   public void setException(Eccezione exception) {
  83.     this.exception = exception;
  84.   }

  85.   private static final long serialVersionUID = 1L;

  86.   private static org.openspcoop2.core.eccezione.errore_applicativo.model.ErroreApplicativoModel modelStaticInstance = null;
  87.   private static synchronized void initModelStaticInstance(){
  88.       if(org.openspcoop2.core.eccezione.errore_applicativo.ErroreApplicativo.modelStaticInstance==null){
  89.             org.openspcoop2.core.eccezione.errore_applicativo.ErroreApplicativo.modelStaticInstance = new org.openspcoop2.core.eccezione.errore_applicativo.model.ErroreApplicativoModel();
  90.       }
  91.   }
  92.   public static org.openspcoop2.core.eccezione.errore_applicativo.model.ErroreApplicativoModel model(){
  93.       if(org.openspcoop2.core.eccezione.errore_applicativo.ErroreApplicativo.modelStaticInstance==null){
  94.             initModelStaticInstance();
  95.       }
  96.       return org.openspcoop2.core.eccezione.errore_applicativo.ErroreApplicativo.modelStaticInstance;
  97.   }


  98.   @XmlElement(name="domain",required=true,nillable=false)
  99.   protected Dominio domain;

  100.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  101.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  102.   @XmlElement(name="timestamp",required=true,nillable=false,type=java.lang.String.class)
  103.   protected java.util.Date timestamp;

  104.   @XmlElement(name="service",required=false,nillable=false)
  105.   protected DatiCooperazione service;

  106.   @XmlElement(name="exception",required=true,nillable=false)
  107.   protected Eccezione exception;

  108. }