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

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "Input",
  51.   propOrder = {
  52.     "conditions",
  53.     "proprieta"
  54.   }
  55. )

  56. @XmlRootElement(name = "Input")

  57. public class Input extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  58.   public Input() {
  59.     super();
  60.   }

  61.   public ConditionsType getConditions() {
  62.     return this.conditions;
  63.   }

  64.   public void setConditions(ConditionsType conditions) {
  65.     this.conditions = conditions;
  66.   }

  67.   public void addProprieta(Proprieta proprieta) {
  68.     this.proprieta.add(proprieta);
  69.   }

  70.   public Proprieta getProprieta(int index) {
  71.     return this.proprieta.get( index );
  72.   }

  73.   public Proprieta removeProprieta(int index) {
  74.     return this.proprieta.remove( index );
  75.   }

  76.   public List<Proprieta> getProprietaList() {
  77.     return this.proprieta;
  78.   }

  79.   public void setProprietaList(List<Proprieta> proprieta) {
  80.     this.proprieta=proprieta;
  81.   }

  82.   public int sizeProprietaList() {
  83.     return this.proprieta.size();
  84.   }

  85.   public java.lang.String getDescrizione() {
  86.     return this.descrizione;
  87.   }

  88.   public void setDescrizione(java.lang.String descrizione) {
  89.     this.descrizione = descrizione;
  90.   }

  91.   private static final long serialVersionUID = 1L;



  92.   @XmlElement(name="conditions",required=false,nillable=false)
  93.   protected ConditionsType conditions;

  94.   @XmlElement(name="proprieta",required=true,nillable=false)
  95.   private List<Proprieta> proprieta = new ArrayList<>();

  96.   /**
  97.    * Use method getProprietaList
  98.    * @return List&lt;Proprieta&gt;
  99.   */
  100.   public List<Proprieta> getProprieta() {
  101.     return this.getProprietaList();
  102.   }

  103.   /**
  104.    * Use method setProprietaList
  105.    * @param proprieta List&lt;Proprieta&gt;
  106.   */
  107.   public void setProprieta(List<Proprieta> proprieta) {
  108.     this.setProprietaList(proprieta);
  109.   }

  110.   /**
  111.    * Use method sizeProprietaList
  112.    * @return lunghezza della lista
  113.   */
  114.   public int sizeProprieta() {
  115.     return this.sizeProprietaList();
  116.   }

  117.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  118.   @XmlAttribute(name="descrizione",required=true)
  119.   protected java.lang.String descrizione;

  120. }