GenericProperties.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.config;

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

  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "generic-properties",
  54.   propOrder = {
  55.     "property",
  56.     "proprietaOggetto"
  57.   }
  58. )

  59. @XmlRootElement(name = "generic-properties")

  60. public class GenericProperties extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  61.   public GenericProperties() {
  62.     super();
  63.   }

  64.   public void addProperty(Property property) {
  65.     this.property.add(property);
  66.   }

  67.   public Property getProperty(int index) {
  68.     return this.property.get( index );
  69.   }

  70.   public Property removeProperty(int index) {
  71.     return this.property.remove( index );
  72.   }

  73.   public List<Property> getPropertyList() {
  74.     return this.property;
  75.   }

  76.   public void setPropertyList(List<Property> property) {
  77.     this.property=property;
  78.   }

  79.   public int sizePropertyList() {
  80.     return this.property.size();
  81.   }

  82.   public ProprietaOggetto getProprietaOggetto() {
  83.     return this.proprietaOggetto;
  84.   }

  85.   public void setProprietaOggetto(ProprietaOggetto proprietaOggetto) {
  86.     this.proprietaOggetto = proprietaOggetto;
  87.   }

  88.   public java.lang.String getNome() {
  89.     return this.nome;
  90.   }

  91.   public void setNome(java.lang.String nome) {
  92.     this.nome = nome;
  93.   }

  94.   public java.lang.String getDescrizione() {
  95.     return this.descrizione;
  96.   }

  97.   public void setDescrizione(java.lang.String descrizione) {
  98.     this.descrizione = descrizione;
  99.   }

  100.   public java.lang.String getTipologia() {
  101.     return this.tipologia;
  102.   }

  103.   public void setTipologia(java.lang.String tipologia) {
  104.     this.tipologia = tipologia;
  105.   }

  106.   public java.lang.String getTipo() {
  107.     return this.tipo;
  108.   }

  109.   public void setTipo(java.lang.String tipo) {
  110.     this.tipo = tipo;
  111.   }

  112.   private static final long serialVersionUID = 1L;



  113.   @XmlElement(name="property",required=true,nillable=false)
  114.   private List<Property> property = new ArrayList<>();

  115.   /**
  116.    * Use method getPropertyList
  117.    * @return List&lt;Property&gt;
  118.   */
  119.   public List<Property> getProperty() {
  120.     return this.getPropertyList();
  121.   }

  122.   /**
  123.    * Use method setPropertyList
  124.    * @param property List&lt;Property&gt;
  125.   */
  126.   public void setProperty(List<Property> property) {
  127.     this.setPropertyList(property);
  128.   }

  129.   /**
  130.    * Use method sizePropertyList
  131.    * @return lunghezza della lista
  132.   */
  133.   public int sizeProperty() {
  134.     return this.sizePropertyList();
  135.   }

  136.   @XmlElement(name="proprieta-oggetto",required=false,nillable=false)
  137.   protected ProprietaOggetto proprietaOggetto;

  138.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  139.   @XmlAttribute(name="nome",required=true)
  140.   protected java.lang.String nome;

  141.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  142.   @XmlAttribute(name="descrizione",required=false)
  143.   protected java.lang.String descrizione;

  144.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  145.   @XmlAttribute(name="tipologia",required=true)
  146.   protected java.lang.String tipologia;

  147.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  148.   @XmlAttribute(name="tipo",required=true)
  149.   protected java.lang.String tipo;

  150. }