Eccezione.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.details;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.eccezione.details.constants.TipoEccezione;
  27. import java.io.Serializable;


  28. /** <p>Java class for eccezione complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="eccezione"&gt;
  34.  *      &lt;attribute name="code" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  35.  *      &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  36.  *      &lt;attribute name="severity" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  37.  *      &lt;attribute name="context" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  38.  *      &lt;attribute name="type" type="{http://govway.org/integration/fault/details}TipoEccezione" use="required"/&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 = "eccezione")

  49. @XmlRootElement(name = "eccezione")

  50. public class Eccezione extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  51.   public Eccezione() {
  52.     super();
  53.   }

  54.   public java.lang.String getCode() {
  55.     return this.code;
  56.   }

  57.   public void setCode(java.lang.String code) {
  58.     this.code = code;
  59.   }

  60.   public java.lang.String getDescription() {
  61.     return this.description;
  62.   }

  63.   public void setDescription(java.lang.String description) {
  64.     this.description = description;
  65.   }

  66.   public java.lang.String getSeverity() {
  67.     return this.severity;
  68.   }

  69.   public void setSeverity(java.lang.String severity) {
  70.     this.severity = severity;
  71.   }

  72.   public java.lang.String getContext() {
  73.     return this.context;
  74.   }

  75.   public void setContext(java.lang.String context) {
  76.     this.context = context;
  77.   }

  78.   public void setTypeRawEnumValue(String value) {
  79.     this.type = (TipoEccezione) TipoEccezione.toEnumConstantFromString(value);
  80.   }

  81.   public String getTypeRawEnumValue() {
  82.     if(this.type == null){
  83.         return null;
  84.     }else{
  85.         return this.type.toString();
  86.     }
  87.   }

  88.   public org.openspcoop2.core.eccezione.details.constants.TipoEccezione getType() {
  89.     return this.type;
  90.   }

  91.   public void setType(org.openspcoop2.core.eccezione.details.constants.TipoEccezione type) {
  92.     this.type = type;
  93.   }

  94.   private static final long serialVersionUID = 1L;



  95.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  96.   @XmlAttribute(name="code",required=true)
  97.   protected java.lang.String code;

  98.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  99.   @XmlAttribute(name="description",required=true)
  100.   protected java.lang.String description;

  101.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  102.   @XmlAttribute(name="severity",required=false)
  103.   protected java.lang.String severity;

  104.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  105.   @XmlAttribute(name="context",required=false)
  106.   protected java.lang.String context;

  107.   @javax.xml.bind.annotation.XmlTransient
  108.   protected java.lang.String typeRawEnumValue;

  109.   @XmlAttribute(name="type",required=true)
  110.   protected TipoEccezione type;

  111. }