AccessoRegistroRegistro.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.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.config.constants.RegistroTipo;
  27. import java.io.Serializable;
  28. import java.util.HashMap;
  29. import java.util.Map;


  30. /** <p>Java class for accesso-registro-registro complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="accesso-registro-registro"&gt;
  36.  *      &lt;attribute name="tipo-database" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  37.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  38.  *      &lt;attribute name="tipo" type="{http://www.openspcoop2.org/core/config}RegistroTipo" use="optional" default="xml"/&gt;
  39.  *      &lt;attribute name="location" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  *      &lt;attribute name="password" 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 = "accesso-registro-registro")

  52. @XmlRootElement(name = "accesso-registro-registro")

  53. public class AccessoRegistroRegistro extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  54.   public AccessoRegistroRegistro() {
  55.     super();
  56.   }

  57.   public void putGenericProperties(java.lang.String key, String value) {
  58.     this.genericProperties.put(key,value);
  59.   }

  60.   public String getGenericProperties(String key) {
  61.     return this.genericProperties.get( key );
  62.   }

  63.   public String removeGenericProperties(String key) {
  64.     return this.genericProperties.remove( key );
  65.   }

  66.   public Map<java.lang.String,String> getGenericPropertiesMap() {
  67.     return this.genericProperties;
  68.   }

  69.   public void setGenericPropertiesMap(Map<java.lang.String,String> genericProperties) {
  70.     this.genericProperties=genericProperties;
  71.   }

  72.   public int sizeGenericPropertiesMap() {
  73.     return this.genericProperties.size();
  74.   }

  75.   public java.lang.String getTipoDatabase() {
  76.     return this.tipoDatabase;
  77.   }

  78.   public void setTipoDatabase(java.lang.String tipoDatabase) {
  79.     this.tipoDatabase = tipoDatabase;
  80.   }

  81.   public java.lang.String getNome() {
  82.     return this.nome;
  83.   }

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

  87.   public void setTipoRawEnumValue(String value) {
  88.     this.tipo = (RegistroTipo) RegistroTipo.toEnumConstantFromString(value);
  89.   }

  90.   public String getTipoRawEnumValue() {
  91.     if(this.tipo == null){
  92.         return null;
  93.     }else{
  94.         return this.tipo.toString();
  95.     }
  96.   }

  97.   public org.openspcoop2.core.config.constants.RegistroTipo getTipo() {
  98.     return this.tipo;
  99.   }

  100.   public void setTipo(org.openspcoop2.core.config.constants.RegistroTipo tipo) {
  101.     this.tipo = tipo;
  102.   }

  103.   public java.lang.String getLocation() {
  104.     return this.location;
  105.   }

  106.   public void setLocation(java.lang.String location) {
  107.     this.location = location;
  108.   }

  109.   public java.lang.String getUser() {
  110.     return this.user;
  111.   }

  112.   public void setUser(java.lang.String user) {
  113.     this.user = user;
  114.   }

  115.   public java.lang.String getPassword() {
  116.     return this.password;
  117.   }

  118.   public void setPassword(java.lang.String password) {
  119.     this.password = password;
  120.   }

  121.   private static final long serialVersionUID = 1L;



  122.   private Map<java.lang.String,String> genericProperties = new HashMap<>();

  123.   /**
  124.    * Use method getGenericPropertiesMap
  125.    * @return Map&lt;java.lang.String,String&gt;
  126.   */
  127.   public Map<java.lang.String,String> getGenericProperties() {
  128.     return this.getGenericPropertiesMap();
  129.   }

  130.   /**
  131.    * Use method setGenericPropertiesMap
  132.    * @param genericProperties Map&lt;java.lang.String,String&gt;
  133.   */
  134.   public void setGenericProperties(Map<java.lang.String,String> genericProperties) {
  135.     this.setGenericPropertiesMap(genericProperties);
  136.   }

  137.   /**
  138.    * Use method sizeGenericPropertiesMap
  139.    * @return lunghezza della mappa
  140.   */
  141.   public int sizeGenericProperties() {
  142.     return this.sizeGenericPropertiesMap();
  143.   }

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

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

  150.   @javax.xml.bind.annotation.XmlTransient
  151.   protected java.lang.String tipoRawEnumValue;

  152.   @XmlAttribute(name="tipo",required=false)
  153.   protected RegistroTipo tipo = (RegistroTipo) RegistroTipo.toEnumConstantFromString("xml");

  154.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  155.   @XmlAttribute(name="location",required=true)
  156.   protected java.lang.String location;

  157.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  158.   @XmlAttribute(name="user",required=false)
  159.   protected java.lang.String user;

  160.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  161.   @XmlAttribute(name="password",required=false)
  162.   protected java.lang.String password;

  163. }