CodiceEccezione.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.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;


  27. /** <p>Java class for CodiceEccezione complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="CodiceEccezione"&gt;
  33.  *      &lt;xsd:simpleContent&gt;
  34.  *          &lt;xsd:extension base="{http://www.w3.org/2001/XMLSchema}string"&gt;
  35.  *              &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}integer" use="required"/&gt;
  36.  *              &lt;attribute name="subtype" type="{http://www.w3.org/2001/XMLSchema}integer" use="optional"/&gt;
  37.  *          &lt;/xsd:extension&gt;
  38.  *      &lt;/xsd:simpleContent&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 = "CodiceEccezione")

  49. @XmlRootElement(name = "CodiceEccezione")

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

  54.   public String getBase() {
  55.     if(this.base!=null && ("".equals(this.base)==false)){
  56.         return this.base.trim();
  57.     }else{
  58.         return null;
  59.     }

  60.   }

  61.   public void setBase(String base) {
  62.     this.base=base;
  63.   }

  64.   public java.lang.Integer getType() {
  65.     return this.type;
  66.   }

  67.   public void setType(java.lang.Integer type) {
  68.     this.type = type;
  69.   }

  70.   public java.lang.Integer getSubtype() {
  71.     return this.subtype;
  72.   }

  73.   public void setSubtype(java.lang.Integer subtype) {
  74.     this.subtype = subtype;
  75.   }

  76.   private static final long serialVersionUID = 1L;



  77.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  78.   @javax.xml.bind.annotation.XmlValue()
  79.   public String base;

  80.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  81.   @XmlAttribute(name="type",required=true)
  82.   protected java.lang.Integer type;

  83.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  84.   @XmlAttribute(name="subtype",required=false)
  85.   protected java.lang.Integer subtype;

  86. }