ConfigurazioneServizioAzione.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.registry;

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

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "configurazione-servizio-azione",
  49.   propOrder = {
  50.     "connettore",
  51.     "azione"
  52.   }
  53. )

  54. @XmlRootElement(name = "configurazione-servizio-azione")

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

  59.   public Connettore getConnettore() {
  60.     return this.connettore;
  61.   }

  62.   public void setConnettore(Connettore connettore) {
  63.     this.connettore = connettore;
  64.   }

  65.   public void addAzione(java.lang.String azione) {
  66.     this.azione.add(azione);
  67.   }

  68.   public java.lang.String getAzione(int index) {
  69.     return this.azione.get( index );
  70.   }

  71.   public java.lang.String removeAzione(int index) {
  72.     return this.azione.remove( index );
  73.   }

  74.   public List<java.lang.String> getAzioneList() {
  75.     return this.azione;
  76.   }

  77.   public void setAzioneList(List<java.lang.String> azione) {
  78.     this.azione=azione;
  79.   }

  80.   public int sizeAzioneList() {
  81.     return this.azione.size();
  82.   }

  83.   private static final long serialVersionUID = 1L;



  84.   @XmlElement(name="connettore",required=true,nillable=false)
  85.   protected Connettore connettore;

  86.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  87.   @XmlElement(name="azione",required=true,nillable=false)
  88.   private List<java.lang.String> azione = new ArrayList<>();

  89.   /**
  90.    * Use method getAzioneList
  91.    * @return List&lt;java.lang.String&gt;
  92.   */
  93.   public List<java.lang.String> getAzione() {
  94.     return this.getAzioneList();
  95.   }

  96.   /**
  97.    * Use method setAzioneList
  98.    * @param azione List&lt;java.lang.String&gt;
  99.   */
  100.   public void setAzione(List<java.lang.String> azione) {
  101.     this.setAzioneList(azione);
  102.   }

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

  110. }