CorsConfigurazioneMethods.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 cors-configurazione-methods complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="cors-configurazione-methods"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="method" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="unbounded"/&gt;
  37.  *      &lt;/sequence&gt;
  38.  * &lt;/complexType&gt;
  39.  * </pre>
  40.  *
  41.  * @version $Rev$, $Date$
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * */

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "cors-configurazione-methods",
  48.   propOrder = {
  49.     "method"
  50.   }
  51. )

  52. @XmlRootElement(name = "cors-configurazione-methods")

  53. public class CorsConfigurazioneMethods extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  54.   public CorsConfigurazioneMethods() {
  55.     super();
  56.   }

  57.   public void addMethod(java.lang.String method) {
  58.     this.method.add(method);
  59.   }

  60.   public java.lang.String getMethod(int index) {
  61.     return this.method.get( index );
  62.   }

  63.   public java.lang.String removeMethod(int index) {
  64.     return this.method.remove( index );
  65.   }

  66.   public List<java.lang.String> getMethodList() {
  67.     return this.method;
  68.   }

  69.   public void setMethodList(List<java.lang.String> method) {
  70.     this.method=method;
  71.   }

  72.   public int sizeMethodList() {
  73.     return this.method.size();
  74.   }

  75.   private static final long serialVersionUID = 1L;



  76.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  77.   @XmlElement(name="method",required=true,nillable=false)
  78.   private List<java.lang.String> method = new ArrayList<>();

  79.   /**
  80.    * Use method getMethodList
  81.    * @return List&lt;java.lang.String&gt;
  82.   */
  83.   public List<java.lang.String> getMethod() {
  84.     return this.getMethodList();
  85.   }

  86.   /**
  87.    * Use method setMethodList
  88.    * @param method List&lt;java.lang.String&gt;
  89.   */
  90.   public void setMethod(List<java.lang.String> method) {
  91.     this.setMethodList(method);
  92.   }

  93.   /**
  94.    * Use method sizeMethodList
  95.    * @return lunghezza della lista
  96.   */
  97.   public int sizeMethod() {
  98.     return this.sizeMethodList();
  99.   }

  100. }