TrasformazioneRegolaRichiesta.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-richiesta 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-richiesta"&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="header" type="{http://www.openspcoop2.org/core/config}trasformazione-regola-parametro" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="parametro-url" type="{http://www.openspcoop2.org/core/config}trasformazione-regola-parametro" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="trasformazione-rest" type="{http://www.openspcoop2.org/core/config}trasformazione-rest" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="trasformazione-soap" type="{http://www.openspcoop2.org/core/config}trasformazione-soap" minOccurs="0" maxOccurs="1"/&gt;
  42.  *      &lt;/sequence&gt;
  43.  *      &lt;attribute name="conversione" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  44.  *      &lt;attribute name="conversione-tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  45.  *      &lt;attribute name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "trasformazione-regola-richiesta",
  56.   propOrder = {
  57.     "conversioneTemplate",
  58.     "header",
  59.     "parametroUrl",
  60.     "trasformazioneRest",
  61.     "trasformazioneSoap"
  62.   }
  63. )

  64. @XmlRootElement(name = "trasformazione-regola-richiesta")

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

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

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

  75.   public void addHeader(TrasformazioneRegolaParametro header) {
  76.     this.header.add(header);
  77.   }

  78.   public TrasformazioneRegolaParametro getHeader(int index) {
  79.     return this.header.get( index );
  80.   }

  81.   public TrasformazioneRegolaParametro removeHeader(int index) {
  82.     return this.header.remove( index );
  83.   }

  84.   public List<TrasformazioneRegolaParametro> getHeaderList() {
  85.     return this.header;
  86.   }

  87.   public void setHeaderList(List<TrasformazioneRegolaParametro> header) {
  88.     this.header=header;
  89.   }

  90.   public int sizeHeaderList() {
  91.     return this.header.size();
  92.   }

  93.   public void addParametroUrl(TrasformazioneRegolaParametro parametroUrl) {
  94.     this.parametroUrl.add(parametroUrl);
  95.   }

  96.   public TrasformazioneRegolaParametro getParametroUrl(int index) {
  97.     return this.parametroUrl.get( index );
  98.   }

  99.   public TrasformazioneRegolaParametro removeParametroUrl(int index) {
  100.     return this.parametroUrl.remove( index );
  101.   }

  102.   public List<TrasformazioneRegolaParametro> getParametroUrlList() {
  103.     return this.parametroUrl;
  104.   }

  105.   public void setParametroUrlList(List<TrasformazioneRegolaParametro> parametroUrl) {
  106.     this.parametroUrl=parametroUrl;
  107.   }

  108.   public int sizeParametroUrlList() {
  109.     return this.parametroUrl.size();
  110.   }

  111.   public TrasformazioneRest getTrasformazioneRest() {
  112.     return this.trasformazioneRest;
  113.   }

  114.   public void setTrasformazioneRest(TrasformazioneRest trasformazioneRest) {
  115.     this.trasformazioneRest = trasformazioneRest;
  116.   }

  117.   public TrasformazioneSoap getTrasformazioneSoap() {
  118.     return this.trasformazioneSoap;
  119.   }

  120.   public void setTrasformazioneSoap(TrasformazioneSoap trasformazioneSoap) {
  121.     this.trasformazioneSoap = trasformazioneSoap;
  122.   }

  123.   public boolean isConversione() {
  124.     return this.conversione;
  125.   }

  126.   public boolean getConversione() {
  127.     return this.conversione;
  128.   }

  129.   public void setConversione(boolean conversione) {
  130.     this.conversione = conversione;
  131.   }

  132.   public java.lang.String getConversioneTipo() {
  133.     return this.conversioneTipo;
  134.   }

  135.   public void setConversioneTipo(java.lang.String conversioneTipo) {
  136.     this.conversioneTipo = conversioneTipo;
  137.   }

  138.   public java.lang.String getContentType() {
  139.     return this.contentType;
  140.   }

  141.   public void setContentType(java.lang.String contentType) {
  142.     this.contentType = contentType;
  143.   }

  144.   private static final long serialVersionUID = 1L;



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

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

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

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

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

  171.   @XmlElement(name="parametro-url",required=true,nillable=false)
  172.   private List<TrasformazioneRegolaParametro> parametroUrl = new ArrayList<>();

  173.   /**
  174.    * Use method getParametroUrlList
  175.    * @return List&lt;TrasformazioneRegolaParametro&gt;
  176.   */
  177.   public List<TrasformazioneRegolaParametro> getParametroUrl() {
  178.     return this.getParametroUrlList();
  179.   }

  180.   /**
  181.    * Use method setParametroUrlList
  182.    * @param parametroUrl List&lt;TrasformazioneRegolaParametro&gt;
  183.   */
  184.   public void setParametroUrl(List<TrasformazioneRegolaParametro> parametroUrl) {
  185.     this.setParametroUrlList(parametroUrl);
  186.   }

  187.   /**
  188.    * Use method sizeParametroUrlList
  189.    * @return lunghezza della lista
  190.   */
  191.   public int sizeParametroUrl() {
  192.     return this.sizeParametroUrlList();
  193.   }

  194.   @XmlElement(name="trasformazione-rest",required=false,nillable=false)
  195.   protected TrasformazioneRest trasformazioneRest;

  196.   @XmlElement(name="trasformazione-soap",required=false,nillable=false)
  197.   protected TrasformazioneSoap trasformazioneSoap;

  198.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  199.   @XmlAttribute(name="conversione",required=false)
  200.   protected boolean conversione = false;

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

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

  207. }