TrasformazioneRegolaRisposta.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 java.io.Serializable;
  28. import java.util.ArrayList;
  29. import java.util.List;


  30. /** <p>Java class for trasformazione-regola-risposta complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="trasformazione-regola-risposta"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="conversione-template" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="applicabilita" type="{http://www.openspcoop2.org/core/config}trasformazione-regola-applicabilita-risposta" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="header" type="{http://www.openspcoop2.org/core/config}trasformazione-regola-parametro" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="trasformazione-soap" type="{http://www.openspcoop2.org/core/config}trasformazione-soap-risposta" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  43.  *      &lt;attribute name="posizione" type="{http://www.w3.org/2001/XMLSchema}int" use="required"/&gt;
  44.  *      &lt;attribute name="conversione" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  45.  *      &lt;attribute name="conversione-tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  *      &lt;attribute name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  47.  *      &lt;attribute name="return-code" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  48.  * &lt;/complexType&gt;
  49.  * </pre>
  50.  *
  51.  * @version $Rev$, $Date$
  52.  *
  53.  * @author Poli Andrea (poli@link.it)
  54.  * @author $Author$
  55.  * */

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "trasformazione-regola-risposta",
  58.   propOrder = {
  59.     "conversioneTemplate",
  60.     "applicabilita",
  61.     "header",
  62.     "trasformazioneSoap"
  63.   }
  64. )

  65. @XmlRootElement(name = "trasformazione-regola-risposta")

  66. public class TrasformazioneRegolaRisposta extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  67.   public TrasformazioneRegolaRisposta() {
  68.     super();
  69.   }

  70.   public byte[] getConversioneTemplate() {
  71.     return this.conversioneTemplate;
  72.   }

  73.   public void setConversioneTemplate(byte[] conversioneTemplate) {
  74.     this.conversioneTemplate = conversioneTemplate;
  75.   }

  76.   public TrasformazioneRegolaApplicabilitaRisposta getApplicabilita() {
  77.     return this.applicabilita;
  78.   }

  79.   public void setApplicabilita(TrasformazioneRegolaApplicabilitaRisposta applicabilita) {
  80.     this.applicabilita = applicabilita;
  81.   }

  82.   public void addHeader(TrasformazioneRegolaParametro header) {
  83.     this.header.add(header);
  84.   }

  85.   public TrasformazioneRegolaParametro getHeader(int index) {
  86.     return this.header.get( index );
  87.   }

  88.   public TrasformazioneRegolaParametro removeHeader(int index) {
  89.     return this.header.remove( index );
  90.   }

  91.   public List<TrasformazioneRegolaParametro> getHeaderList() {
  92.     return this.header;
  93.   }

  94.   public void setHeaderList(List<TrasformazioneRegolaParametro> header) {
  95.     this.header=header;
  96.   }

  97.   public int sizeHeaderList() {
  98.     return this.header.size();
  99.   }

  100.   public TrasformazioneSoapRisposta getTrasformazioneSoap() {
  101.     return this.trasformazioneSoap;
  102.   }

  103.   public void setTrasformazioneSoap(TrasformazioneSoapRisposta trasformazioneSoap) {
  104.     this.trasformazioneSoap = trasformazioneSoap;
  105.   }

  106.   public java.lang.String getNome() {
  107.     return this.nome;
  108.   }

  109.   public void setNome(java.lang.String nome) {
  110.     this.nome = nome;
  111.   }

  112.   public int getPosizione() {
  113.     return this.posizione;
  114.   }

  115.   public void setPosizione(int posizione) {
  116.     this.posizione = posizione;
  117.   }

  118.   public boolean isConversione() {
  119.     return this.conversione;
  120.   }

  121.   public boolean getConversione() {
  122.     return this.conversione;
  123.   }

  124.   public void setConversione(boolean conversione) {
  125.     this.conversione = conversione;
  126.   }

  127.   public java.lang.String getConversioneTipo() {
  128.     return this.conversioneTipo;
  129.   }

  130.   public void setConversioneTipo(java.lang.String conversioneTipo) {
  131.     this.conversioneTipo = conversioneTipo;
  132.   }

  133.   public java.lang.String getContentType() {
  134.     return this.contentType;
  135.   }

  136.   public void setContentType(java.lang.String contentType) {
  137.     this.contentType = contentType;
  138.   }

  139.   public java.lang.String getReturnCode() {
  140.     return this.returnCode;
  141.   }

  142.   public void setReturnCode(java.lang.String returnCode) {
  143.     this.returnCode = returnCode;
  144.   }

  145.   private static final long serialVersionUID = 1L;



  146.   @javax.xml.bind.annotation.XmlSchemaType(name="base64Binary")
  147.   @XmlElement(name="conversione-template",required=false,nillable=false)
  148.   protected byte[] conversioneTemplate;

  149.   @XmlElement(name="applicabilita",required=false,nillable=false)
  150.   protected TrasformazioneRegolaApplicabilitaRisposta applicabilita;

  151.   @XmlElement(name="header",required=true,nillable=false)
  152.   private List<TrasformazioneRegolaParametro> header = new ArrayList<>();

  153.   /**
  154.    * Use method getHeaderList
  155.    * @return List&lt;TrasformazioneRegolaParametro&gt;
  156.   */
  157.   public List<TrasformazioneRegolaParametro> getHeader() {
  158.     return this.getHeaderList();
  159.   }

  160.   /**
  161.    * Use method setHeaderList
  162.    * @param header List&lt;TrasformazioneRegolaParametro&gt;
  163.   */
  164.   public void setHeader(List<TrasformazioneRegolaParametro> header) {
  165.     this.setHeaderList(header);
  166.   }

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

  174.   @XmlElement(name="trasformazione-soap",required=false,nillable=false)
  175.   protected TrasformazioneSoapRisposta trasformazioneSoap;

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

  179.   @javax.xml.bind.annotation.XmlSchemaType(name="int")
  180.   @XmlAttribute(name="posizione",required=true)
  181.   protected int posizione;

  182.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  183.   @XmlAttribute(name="conversione",required=false)
  184.   protected boolean conversione = false;

  185.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  186.   @XmlAttribute(name="conversione-tipo",required=false)
  187.   protected java.lang.String conversioneTipo;

  188.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  189.   @XmlAttribute(name="content-type",required=false)
  190.   protected java.lang.String contentType;

  191.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  192.   @XmlAttribute(name="return-code",required=false)
  193.   protected java.lang.String returnCode;

  194. }