IntegrationConfigurationName.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.protocol.manifest;

  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 IntegrationConfigurationName complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="IntegrationConfigurationName"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="param" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationConfigurationElementName" minOccurs="1" maxOccurs="unbounded"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="useInUrl" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="true"/&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "IntegrationConfigurationName",
  50.   propOrder = {
  51.     "param"
  52.   }
  53. )

  54. @XmlRootElement(name = "IntegrationConfigurationName")

  55. public class IntegrationConfigurationName extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  56.   public IntegrationConfigurationName() {
  57.     super();
  58.   }

  59.   public void addParam(IntegrationConfigurationElementName param) {
  60.     this.param.add(param);
  61.   }

  62.   public IntegrationConfigurationElementName getParam(int index) {
  63.     return this.param.get( index );
  64.   }

  65.   public IntegrationConfigurationElementName removeParam(int index) {
  66.     return this.param.remove( index );
  67.   }

  68.   public List<IntegrationConfigurationElementName> getParamList() {
  69.     return this.param;
  70.   }

  71.   public void setParamList(List<IntegrationConfigurationElementName> param) {
  72.     this.param=param;
  73.   }

  74.   public int sizeParamList() {
  75.     return this.param.size();
  76.   }

  77.   public boolean isUseInUrl() {
  78.     return this.useInUrl;
  79.   }

  80.   public boolean getUseInUrl() {
  81.     return this.useInUrl;
  82.   }

  83.   public void setUseInUrl(boolean useInUrl) {
  84.     this.useInUrl = useInUrl;
  85.   }

  86.   private static final long serialVersionUID = 1L;



  87.   @XmlElement(name="param",required=true,nillable=false)
  88.   private List<IntegrationConfigurationElementName> param = new ArrayList<>();

  89.   /**
  90.    * Use method getParamList
  91.    * @return List&lt;IntegrationConfigurationElementName&gt;
  92.   */
  93.   public List<IntegrationConfigurationElementName> getParam() {
  94.     return this.getParamList();
  95.   }

  96.   /**
  97.    * Use method setParamList
  98.    * @param param List&lt;IntegrationConfigurationElementName&gt;
  99.   */
  100.   public void setParam(List<IntegrationConfigurationElementName> param) {
  101.     this.setParamList(param);
  102.   }

  103.   /**
  104.    * Use method sizeParamList
  105.    * @return lunghezza della lista
  106.   */
  107.   public int sizeParam() {
  108.     return this.sizeParamList();
  109.   }

  110.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  111.   @XmlAttribute(name="useInUrl",required=false)
  112.   protected boolean useInUrl = true;

  113. }