Default.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 Default complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="Default"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="proprieta" type="{http://www.openspcoop2.org/protocol/information_missing}ProprietaDefault" minOccurs="1" maxOccurs="unbounded"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="valore" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&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 = "Default",
  50.   propOrder = {
  51.     "proprieta"
  52.   }
  53. )

  54. @XmlRootElement(name = "Default")

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

  59.   public void addProprieta(ProprietaDefault proprieta) {
  60.     this.proprieta.add(proprieta);
  61.   }

  62.   public ProprietaDefault getProprieta(int index) {
  63.     return this.proprieta.get( index );
  64.   }

  65.   public ProprietaDefault removeProprieta(int index) {
  66.     return this.proprieta.remove( index );
  67.   }

  68.   public List<ProprietaDefault> getProprietaList() {
  69.     return this.proprieta;
  70.   }

  71.   public void setProprietaList(List<ProprietaDefault> proprieta) {
  72.     this.proprieta=proprieta;
  73.   }

  74.   public int sizeProprietaList() {
  75.     return this.proprieta.size();
  76.   }

  77.   public java.lang.String getValore() {
  78.     return this.valore;
  79.   }

  80.   public void setValore(java.lang.String valore) {
  81.     this.valore = valore;
  82.   }

  83.   private static final long serialVersionUID = 1L;



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

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

  93.   /**
  94.    * Use method setProprietaList
  95.    * @param proprieta List&lt;ProprietaDefault&gt;
  96.   */
  97.   public void setProprieta(List<ProprietaDefault> proprieta) {
  98.     this.setProprietaList(proprieta);
  99.   }

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

  107.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  108.   @XmlAttribute(name="valore",required=false)
  109.   protected java.lang.String valore;

  110. }