Requisiti.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.information_missing;

  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 Requisiti complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="Requisiti"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="protocollo" type="{http://www.openspcoop2.org/protocol/information_missing}RequisitoProtocollo" minOccurs="0" maxOccurs="unbounded"/&gt;
  37.  *          &lt;element name="input" type="{http://www.openspcoop2.org/protocol/information_missing}RequisitoInput" minOccurs="0" maxOccurs="1"/&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 = "Requisiti",
  49.   propOrder = {
  50.     "protocollo",
  51.     "input"
  52.   }
  53. )

  54. @XmlRootElement(name = "Requisiti")

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

  59.   public void addProtocollo(RequisitoProtocollo protocollo) {
  60.     this.protocollo.add(protocollo);
  61.   }

  62.   public RequisitoProtocollo getProtocollo(int index) {
  63.     return this.protocollo.get( index );
  64.   }

  65.   public RequisitoProtocollo removeProtocollo(int index) {
  66.     return this.protocollo.remove( index );
  67.   }

  68.   public List<RequisitoProtocollo> getProtocolloList() {
  69.     return this.protocollo;
  70.   }

  71.   public void setProtocolloList(List<RequisitoProtocollo> protocollo) {
  72.     this.protocollo=protocollo;
  73.   }

  74.   public int sizeProtocolloList() {
  75.     return this.protocollo.size();
  76.   }

  77.   public RequisitoInput getInput() {
  78.     return this.input;
  79.   }

  80.   public void setInput(RequisitoInput input) {
  81.     this.input = input;
  82.   }

  83.   private static final long serialVersionUID = 1L;



  84.   @XmlElement(name="protocollo",required=true,nillable=false)
  85.   private List<RequisitoProtocollo> protocollo = new ArrayList<>();

  86.   /**
  87.    * Use method getProtocolloList
  88.    * @return List&lt;RequisitoProtocollo&gt;
  89.   */
  90.   public List<RequisitoProtocollo> getProtocollo() {
  91.     return this.getProtocolloList();
  92.   }

  93.   /**
  94.    * Use method setProtocolloList
  95.    * @param protocollo List&lt;RequisitoProtocollo&gt;
  96.   */
  97.   public void setProtocollo(List<RequisitoProtocollo> protocollo) {
  98.     this.setProtocolloList(protocollo);
  99.   }

  100.   /**
  101.    * Use method sizeProtocolloList
  102.    * @return lunghezza della lista
  103.   */
  104.   public int sizeProtocollo() {
  105.     return this.sizeProtocolloList();
  106.   }

  107.   @XmlElement(name="input",required=false,nillable=false)
  108.   protected RequisitoInput input;

  109. }