OpenspcoopSorgenteDati.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 openspcoop-sorgente-dati complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="openspcoop-sorgente-dati"&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;/sequence&gt;
  39.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="nome-jndi" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  41.  *      &lt;attribute name="tipo-database" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "openspcoop-sorgente-dati",
  52.   propOrder = {
  53.     "property"
  54.   }
  55. )

  56. @XmlRootElement(name = "openspcoop-sorgente-dati")

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

  61.   public void addProperty(Property property) {
  62.     this.property.add(property);
  63.   }

  64.   public Property getProperty(int index) {
  65.     return this.property.get( index );
  66.   }

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

  70.   public List<Property> getPropertyList() {
  71.     return this.property;
  72.   }

  73.   public void setPropertyList(List<Property> property) {
  74.     this.property=property;
  75.   }

  76.   public int sizePropertyList() {
  77.     return this.property.size();
  78.   }

  79.   public java.lang.String getNome() {
  80.     return this.nome;
  81.   }

  82.   public void setNome(java.lang.String nome) {
  83.     this.nome = nome;
  84.   }

  85.   public java.lang.String getNomeJndi() {
  86.     return this.nomeJndi;
  87.   }

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

  91.   public java.lang.String getTipoDatabase() {
  92.     return this.tipoDatabase;
  93.   }

  94.   public void setTipoDatabase(java.lang.String tipoDatabase) {
  95.     this.tipoDatabase = tipoDatabase;
  96.   }

  97.   private static final long serialVersionUID = 1L;



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

  100.   /**
  101.    * Use method getPropertyList
  102.    * @return List&lt;Property&gt;
  103.   */
  104.   public List<Property> getProperty() {
  105.     return this.getPropertyList();
  106.   }

  107.   /**
  108.    * Use method setPropertyList
  109.    * @param property List&lt;Property&gt;
  110.   */
  111.   public void setProperty(List<Property> property) {
  112.     this.setPropertyList(property);
  113.   }

  114.   /**
  115.    * Use method sizePropertyList
  116.    * @return lunghezza della lista
  117.   */
  118.   public int sizeProperty() {
  119.     return this.sizePropertyList();
  120.   }

  121.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  122.   @XmlAttribute(name="nome",required=true)
  123.   protected java.lang.String nome;

  124.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  125.   @XmlAttribute(name="nome-jndi",required=true)
  126.   protected java.lang.String nomeJndi;

  127.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  128.   @XmlAttribute(name="tipo-database",required=false)
  129.   protected java.lang.String tipoDatabase;

  130. }