Erogazione.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.protocol.abstraction;

  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.protocol.abstraction.constants.Tipologia;
  28. import java.io.Serializable;


  29. /** <p>Java class for erogazione complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="erogazione"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="accordo-servizio-parte-comune" type="{http://www.openspcoop2.org/protocol/abstraction}RiferimentoAccordoServizioParteComune" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="soggetto-erogatore" type="{http://www.openspcoop2.org/protocol/abstraction}RiferimentoSoggetto" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="servizio" type="{http://www.openspcoop2.org/protocol/abstraction}DatiServizio" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="servizio-applicativo" type="{http://www.openspcoop2.org/protocol/abstraction}RiferimentoServizioApplicativoErogatore" minOccurs="0" maxOccurs="1"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="tipologia" type="{http://www.openspcoop2.org/protocol/abstraction}Tipologia" use="required"/&gt;
  42.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  43.  * &lt;/complexType&gt;
  44.  * </pre>
  45.  *
  46.  * @version $Rev$, $Date$
  47.  *
  48.  * @author Poli Andrea (poli@link.it)
  49.  * @author $Author$
  50.  * */

  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "erogazione",
  53.   propOrder = {
  54.     "accordoServizioParteComune",
  55.     "soggettoErogatore",
  56.     "servizio",
  57.     "servizioApplicativo"
  58.   }
  59. )

  60. @XmlRootElement(name = "erogazione")

  61. public class Erogazione extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  62.   public Erogazione() {
  63.     super();
  64.   }

  65.   public RiferimentoAccordoServizioParteComune getAccordoServizioParteComune() {
  66.     return this.accordoServizioParteComune;
  67.   }

  68.   public void setAccordoServizioParteComune(RiferimentoAccordoServizioParteComune accordoServizioParteComune) {
  69.     this.accordoServizioParteComune = accordoServizioParteComune;
  70.   }

  71.   public RiferimentoSoggetto getSoggettoErogatore() {
  72.     return this.soggettoErogatore;
  73.   }

  74.   public void setSoggettoErogatore(RiferimentoSoggetto soggettoErogatore) {
  75.     this.soggettoErogatore = soggettoErogatore;
  76.   }

  77.   public DatiServizio getServizio() {
  78.     return this.servizio;
  79.   }

  80.   public void setServizio(DatiServizio servizio) {
  81.     this.servizio = servizio;
  82.   }

  83.   public RiferimentoServizioApplicativoErogatore getServizioApplicativo() {
  84.     return this.servizioApplicativo;
  85.   }

  86.   public void setServizioApplicativo(RiferimentoServizioApplicativoErogatore servizioApplicativo) {
  87.     this.servizioApplicativo = servizioApplicativo;
  88.   }

  89.   public void setTipologiaRawEnumValue(String value) {
  90.     this.tipologia = (Tipologia) Tipologia.toEnumConstantFromString(value);
  91.   }

  92.   public String getTipologiaRawEnumValue() {
  93.     if(this.tipologia == null){
  94.         return null;
  95.     }else{
  96.         return this.tipologia.toString();
  97.     }
  98.   }

  99.   public org.openspcoop2.protocol.abstraction.constants.Tipologia getTipologia() {
  100.     return this.tipologia;
  101.   }

  102.   public void setTipologia(org.openspcoop2.protocol.abstraction.constants.Tipologia tipologia) {
  103.     this.tipologia = tipologia;
  104.   }

  105.   public java.lang.String getDescrizione() {
  106.     return this.descrizione;
  107.   }

  108.   public void setDescrizione(java.lang.String descrizione) {
  109.     this.descrizione = descrizione;
  110.   }

  111.   private static final long serialVersionUID = 1L;

  112.   private static org.openspcoop2.protocol.abstraction.model.ErogazioneModel modelStaticInstance = null;
  113.   private static synchronized void initModelStaticInstance(){
  114.       if(org.openspcoop2.protocol.abstraction.Erogazione.modelStaticInstance==null){
  115.             org.openspcoop2.protocol.abstraction.Erogazione.modelStaticInstance = new org.openspcoop2.protocol.abstraction.model.ErogazioneModel();
  116.       }
  117.   }
  118.   public static org.openspcoop2.protocol.abstraction.model.ErogazioneModel model(){
  119.       if(org.openspcoop2.protocol.abstraction.Erogazione.modelStaticInstance==null){
  120.             initModelStaticInstance();
  121.       }
  122.       return org.openspcoop2.protocol.abstraction.Erogazione.modelStaticInstance;
  123.   }


  124.   @XmlElement(name="accordo-servizio-parte-comune",required=true,nillable=false)
  125.   protected RiferimentoAccordoServizioParteComune accordoServizioParteComune;

  126.   @XmlElement(name="soggetto-erogatore",required=true,nillable=false)
  127.   protected RiferimentoSoggetto soggettoErogatore;

  128.   @XmlElement(name="servizio",required=false,nillable=false)
  129.   protected DatiServizio servizio;

  130.   @XmlElement(name="servizio-applicativo",required=false,nillable=false)
  131.   protected RiferimentoServizioApplicativoErogatore servizioApplicativo;

  132.   @javax.xml.bind.annotation.XmlTransient
  133.   protected java.lang.String tipologiaRawEnumValue;

  134.   @XmlAttribute(name="tipologia",required=true)
  135.   protected Tipologia tipologia;

  136.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  137.   @XmlAttribute(name="descrizione",required=false)
  138.   protected java.lang.String descrizione;

  139. }