TrasformazioneRegolaApplicabilitaRisposta.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.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for trasformazione-regola-applicabilita-risposta complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="trasformazione-regola-applicabilita-risposta"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="return-code-min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="return-code-max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *          &lt;element name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "trasformazione-regola-applicabilita-risposta",
  51.   propOrder = {
  52.     "returnCodeMin",
  53.     "returnCodeMax",
  54.     "contentType",
  55.     "pattern"
  56.   }
  57. )

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

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

  63.   public java.lang.Integer getReturnCodeMin() {
  64.     return this.returnCodeMin;
  65.   }

  66.   public void setReturnCodeMin(java.lang.Integer returnCodeMin) {
  67.     this.returnCodeMin = returnCodeMin;
  68.   }

  69.   public java.lang.Integer getReturnCodeMax() {
  70.     return this.returnCodeMax;
  71.   }

  72.   public void setReturnCodeMax(java.lang.Integer returnCodeMax) {
  73.     this.returnCodeMax = returnCodeMax;
  74.   }

  75.   public void addContentType(java.lang.String contentType) {
  76.     this.contentType.add(contentType);
  77.   }

  78.   public java.lang.String getContentType(int index) {
  79.     return this.contentType.get( index );
  80.   }

  81.   public java.lang.String removeContentType(int index) {
  82.     return this.contentType.remove( index );
  83.   }

  84.   public List<java.lang.String> getContentTypeList() {
  85.     return this.contentType;
  86.   }

  87.   public void setContentTypeList(List<java.lang.String> contentType) {
  88.     this.contentType=contentType;
  89.   }

  90.   public int sizeContentTypeList() {
  91.     return this.contentType.size();
  92.   }

  93.   public java.lang.String getPattern() {
  94.     return this.pattern;
  95.   }

  96.   public void setPattern(java.lang.String pattern) {
  97.     this.pattern = pattern;
  98.   }

  99.   private static final long serialVersionUID = 1L;



  100.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedInt")
  101.   @XmlElement(name="return-code-min",required=false,nillable=false)
  102.   protected java.lang.Integer returnCodeMin;

  103.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedInt")
  104.   @XmlElement(name="return-code-max",required=false,nillable=false)
  105.   protected java.lang.Integer returnCodeMax;

  106.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  107.   @XmlElement(name="content-type",required=true,nillable=false)
  108.   private List<java.lang.String> contentType = new ArrayList<>();

  109.   /**
  110.    * Use method getContentTypeList
  111.    * @return List&lt;java.lang.String&gt;
  112.   */
  113.   public List<java.lang.String> getContentType() {
  114.     return this.getContentTypeList();
  115.   }

  116.   /**
  117.    * Use method setContentTypeList
  118.    * @param contentType List&lt;java.lang.String&gt;
  119.   */
  120.   public void setContentType(List<java.lang.String> contentType) {
  121.     this.setContentTypeList(contentType);
  122.   }

  123.   /**
  124.    * Use method sizeContentTypeList
  125.    * @return lunghezza della lista
  126.   */
  127.   public int sizeContentType() {
  128.     return this.sizeContentTypeList();
  129.   }

  130.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  131.   @XmlElement(name="pattern",required=false,nillable=false)
  132.   protected java.lang.String pattern;

  133. }