PortaDominio.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.commons.search;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.commons.search.constants.TipoPdD;
  27. import java.io.Serializable;


  28. /** <p>Java class for porta-dominio complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="porta-dominio"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="tipo" type="{http://www.openspcoop2.org/core/commons/search}TipoPdD" minOccurs="0" maxOccurs="1"/&gt;
  37.  *      &lt;/sequence&gt;
  38.  * &lt;/complexType&gt;
  39.  * </pre>
  40.  *
  41.  * @version $Rev$, $Date$
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * */

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "porta-dominio",
  48.   propOrder = {
  49.     "nome",
  50.     "tipo"
  51.   }
  52. )

  53. @XmlRootElement(name = "porta-dominio")

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

  58.   public java.lang.String getNome() {
  59.     return this.nome;
  60.   }

  61.   public void setNome(java.lang.String nome) {
  62.     this.nome = nome;
  63.   }

  64.   public void setTipoRawEnumValue(String value) {
  65.     this.tipo = (TipoPdD) TipoPdD.toEnumConstantFromString(value);
  66.   }

  67.   public String getTipoRawEnumValue() {
  68.     if(this.tipo == null){
  69.         return null;
  70.     }else{
  71.         return this.tipo.toString();
  72.     }
  73.   }

  74.   public org.openspcoop2.core.commons.search.constants.TipoPdD getTipo() {
  75.     return this.tipo;
  76.   }

  77.   public void setTipo(org.openspcoop2.core.commons.search.constants.TipoPdD tipo) {
  78.     this.tipo = tipo;
  79.   }

  80.   private static final long serialVersionUID = 1L;

  81.   private static org.openspcoop2.core.commons.search.model.PortaDominioModel modelStaticInstance = null;
  82.   private static synchronized void initModelStaticInstance(){
  83.       if(org.openspcoop2.core.commons.search.PortaDominio.modelStaticInstance==null){
  84.             org.openspcoop2.core.commons.search.PortaDominio.modelStaticInstance = new org.openspcoop2.core.commons.search.model.PortaDominioModel();
  85.       }
  86.   }
  87.   public static org.openspcoop2.core.commons.search.model.PortaDominioModel model(){
  88.       if(org.openspcoop2.core.commons.search.PortaDominio.modelStaticInstance==null){
  89.             initModelStaticInstance();
  90.       }
  91.       return org.openspcoop2.core.commons.search.PortaDominio.modelStaticInstance;
  92.   }


  93.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  94.   @XmlElement(name="nome",required=true,nillable=false)
  95.   protected java.lang.String nome;

  96.   @javax.xml.bind.annotation.XmlTransient
  97.   protected java.lang.String tipoRawEnumValue;

  98.   @XmlElement(name="tipo",required=false,nillable=false)
  99.   protected TipoPdD tipo;

  100. }