Dominio.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.eccezione.details;

  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 org.openspcoop2.core.eccezione.details.constants.TipoPdD;
  28. import java.io.Serializable;


  29. /** <p>Java class for dominio complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="dominio"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="organization" type="{http://govway.org/integration/fault/details}dominio-soggetto" minOccurs="1" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="role" type="{http://govway.org/integration/fault/details}TipoPdD" use="optional"/&gt;
  40.  *      &lt;attribute name="module" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "dominio",
  51.   propOrder = {
  52.     "id",
  53.     "organization"
  54.   }
  55. )

  56. @XmlRootElement(name = "dominio")

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

  61.   public java.lang.String getId() {
  62.     return this.id;
  63.   }

  64.   public void setId(java.lang.String id) {
  65.     this.id = id;
  66.   }

  67.   public DominioSoggetto getOrganization() {
  68.     return this.organization;
  69.   }

  70.   public void setOrganization(DominioSoggetto organization) {
  71.     this.organization = organization;
  72.   }

  73.   public void setRoleRawEnumValue(String value) {
  74.     this.role = (TipoPdD) TipoPdD.toEnumConstantFromString(value);
  75.   }

  76.   public String getRoleRawEnumValue() {
  77.     if(this.role == null){
  78.         return null;
  79.     }else{
  80.         return this.role.toString();
  81.     }
  82.   }

  83.   public org.openspcoop2.core.eccezione.details.constants.TipoPdD getRole() {
  84.     return this.role;
  85.   }

  86.   public void setRole(org.openspcoop2.core.eccezione.details.constants.TipoPdD role) {
  87.     this.role = role;
  88.   }

  89.   public java.lang.String getModule() {
  90.     return this.module;
  91.   }

  92.   public void setModule(java.lang.String module) {
  93.     this.module = module;
  94.   }

  95.   private static final long serialVersionUID = 1L;



  96.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  97.   @XmlElement(name="id",required=true,nillable=false)
  98.   protected java.lang.String id;

  99.   @XmlElement(name="organization",required=true,nillable=false)
  100.   protected DominioSoggetto organization;

  101.   @javax.xml.bind.annotation.XmlTransient
  102.   protected java.lang.String roleRawEnumValue;

  103.   @XmlAttribute(name="role",required=false)
  104.   protected TipoPdD role;

  105.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  106.   @XmlAttribute(name="module",required=false)
  107.   protected java.lang.String module;

  108. }