TrasformazioneRegolaApplicabilitaRisposta.java

/*
 * GovWay - A customizable API Gateway 
 * https://govway.org
 * 
 * Copyright (c) 2005-2024 Link.it srl (https://link.it).
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3, as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package org.openspcoop2.core.config;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/** <p>Java class for trasformazione-regola-applicabilita-risposta complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="trasformazione-regola-applicabilita-risposta"&gt;
 * 		&lt;sequence&gt;
 * 			&lt;element name="return-code-min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0" maxOccurs="1"/&gt;
 * 			&lt;element name="return-code-max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0" maxOccurs="1"/&gt;
 * 			&lt;element name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="unbounded"/&gt;
 * 			&lt;element name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
 * 		&lt;/sequence&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * @version $Rev$, $Date$
 * 
 * @author Poli Andrea (poli@link.it)
 * @author $Author$
 * */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "trasformazione-regola-applicabilita-risposta", 
  propOrder = {
  	"returnCodeMin",
  	"returnCodeMax",
  	"contentType",
  	"pattern"
  }
)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  private static final long serialVersionUID = 1L;



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

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

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

  /**
   * Use method getContentTypeList
   * @return List&lt;java.lang.String&gt;
  */
  public List<java.lang.String> getContentType() {
  	return this.getContentTypeList();
  }

  /**
   * Use method setContentTypeList
   * @param contentType List&lt;java.lang.String&gt;
  */
  public void setContentType(List<java.lang.String> contentType) {
  	this.setContentTypeList(contentType);
  }

  /**
   * Use method sizeContentTypeList
   * @return lunghezza della lista
  */
  public int sizeContentType() {
  	return this.sizeContentTypeList();
  }

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

}