GestioneErrore.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.config;

  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.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.core.config.constants.GestioneErroreComportamento;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for gestione-errore complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="gestione-errore"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="codice-trasporto" type="{http://www.openspcoop2.org/core/config}gestione-errore-codice-trasporto" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="soap-fault" type="{http://www.openspcoop2.org/core/config}gestione-errore-soap-fault" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  *      &lt;attribute name="comportamento" type="{http://www.openspcoop2.org/core/config}GestioneErroreComportamento" use="required"/&gt;
  43.  *      &lt;attribute name="cadenza-rispedizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&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 = "gestione-errore",
  54.   propOrder = {
  55.     "codiceTrasporto",
  56.     "soapFault"
  57.   }
  58. )

  59. @XmlRootElement(name = "gestione-errore")

  60. public class GestioneErrore extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  61.   public GestioneErrore() {
  62.     super();
  63.   }

  64.   public void addCodiceTrasporto(GestioneErroreCodiceTrasporto codiceTrasporto) {
  65.     this.codiceTrasporto.add(codiceTrasporto);
  66.   }

  67.   public GestioneErroreCodiceTrasporto getCodiceTrasporto(int index) {
  68.     return this.codiceTrasporto.get( index );
  69.   }

  70.   public GestioneErroreCodiceTrasporto removeCodiceTrasporto(int index) {
  71.     return this.codiceTrasporto.remove( index );
  72.   }

  73.   public List<GestioneErroreCodiceTrasporto> getCodiceTrasportoList() {
  74.     return this.codiceTrasporto;
  75.   }

  76.   public void setCodiceTrasportoList(List<GestioneErroreCodiceTrasporto> codiceTrasporto) {
  77.     this.codiceTrasporto=codiceTrasporto;
  78.   }

  79.   public int sizeCodiceTrasportoList() {
  80.     return this.codiceTrasporto.size();
  81.   }

  82.   public void addSoapFault(GestioneErroreSoapFault soapFault) {
  83.     this.soapFault.add(soapFault);
  84.   }

  85.   public GestioneErroreSoapFault getSoapFault(int index) {
  86.     return this.soapFault.get( index );
  87.   }

  88.   public GestioneErroreSoapFault removeSoapFault(int index) {
  89.     return this.soapFault.remove( index );
  90.   }

  91.   public List<GestioneErroreSoapFault> getSoapFaultList() {
  92.     return this.soapFault;
  93.   }

  94.   public void setSoapFaultList(List<GestioneErroreSoapFault> soapFault) {
  95.     this.soapFault=soapFault;
  96.   }

  97.   public int sizeSoapFaultList() {
  98.     return this.soapFault.size();
  99.   }

  100.   public java.lang.String getNome() {
  101.     return this.nome;
  102.   }

  103.   public void setNome(java.lang.String nome) {
  104.     this.nome = nome;
  105.   }

  106.   public void setComportamentoRawEnumValue(String value) {
  107.     this.comportamento = (GestioneErroreComportamento) GestioneErroreComportamento.toEnumConstantFromString(value);
  108.   }

  109.   public String getComportamentoRawEnumValue() {
  110.     if(this.comportamento == null){
  111.         return null;
  112.     }else{
  113.         return this.comportamento.toString();
  114.     }
  115.   }

  116.   public org.openspcoop2.core.config.constants.GestioneErroreComportamento getComportamento() {
  117.     return this.comportamento;
  118.   }

  119.   public void setComportamento(org.openspcoop2.core.config.constants.GestioneErroreComportamento comportamento) {
  120.     this.comportamento = comportamento;
  121.   }

  122.   public java.lang.String getCadenzaRispedizione() {
  123.     return this.cadenzaRispedizione;
  124.   }

  125.   public void setCadenzaRispedizione(java.lang.String cadenzaRispedizione) {
  126.     this.cadenzaRispedizione = cadenzaRispedizione;
  127.   }

  128.   private static final long serialVersionUID = 1L;



  129.   @XmlElement(name="codice-trasporto",required=true,nillable=false)
  130.   private List<GestioneErroreCodiceTrasporto> codiceTrasporto = new ArrayList<>();

  131.   /**
  132.    * Use method getCodiceTrasportoList
  133.    * @return List&lt;GestioneErroreCodiceTrasporto&gt;
  134.   */
  135.   public List<GestioneErroreCodiceTrasporto> getCodiceTrasporto() {
  136.     return this.getCodiceTrasportoList();
  137.   }

  138.   /**
  139.    * Use method setCodiceTrasportoList
  140.    * @param codiceTrasporto List&lt;GestioneErroreCodiceTrasporto&gt;
  141.   */
  142.   public void setCodiceTrasporto(List<GestioneErroreCodiceTrasporto> codiceTrasporto) {
  143.     this.setCodiceTrasportoList(codiceTrasporto);
  144.   }

  145.   /**
  146.    * Use method sizeCodiceTrasportoList
  147.    * @return lunghezza della lista
  148.   */
  149.   public int sizeCodiceTrasporto() {
  150.     return this.sizeCodiceTrasportoList();
  151.   }

  152.   @XmlElement(name="soap-fault",required=true,nillable=false)
  153.   private List<GestioneErroreSoapFault> soapFault = new ArrayList<>();

  154.   /**
  155.    * Use method getSoapFaultList
  156.    * @return List&lt;GestioneErroreSoapFault&gt;
  157.   */
  158.   public List<GestioneErroreSoapFault> getSoapFault() {
  159.     return this.getSoapFaultList();
  160.   }

  161.   /**
  162.    * Use method setSoapFaultList
  163.    * @param soapFault List&lt;GestioneErroreSoapFault&gt;
  164.   */
  165.   public void setSoapFault(List<GestioneErroreSoapFault> soapFault) {
  166.     this.setSoapFaultList(soapFault);
  167.   }

  168.   /**
  169.    * Use method sizeSoapFaultList
  170.    * @return lunghezza della lista
  171.   */
  172.   public int sizeSoapFault() {
  173.     return this.sizeSoapFaultList();
  174.   }

  175.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  176.   @XmlAttribute(name="nome",required=false)
  177.   protected java.lang.String nome;

  178.   @javax.xml.bind.annotation.XmlTransient
  179.   protected java.lang.String comportamentoRawEnumValue;

  180.   @XmlAttribute(name="comportamento",required=true)
  181.   protected GestioneErroreComportamento comportamento;

  182.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  183.   @XmlAttribute(name="cadenza-rispedizione",required=false)
  184.   protected java.lang.String cadenzaRispedizione;

  185. }