BustaModel.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.tracciamento.model;

  21. import org.openspcoop2.core.tracciamento.Busta;

  22. import org.openspcoop2.generic_project.beans.AbstractModel;
  23. import org.openspcoop2.generic_project.beans.IField;
  24. import org.openspcoop2.generic_project.beans.Field;
  25. import org.openspcoop2.generic_project.beans.ComplexField;


  26. /**    
  27.  * Model Busta
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class BustaModel extends AbstractModel<Busta> {

  34.     public BustaModel(){
  35.    
  36.         super();
  37.    
  38.         this.MITTENTE = new org.openspcoop2.core.tracciamento.model.SoggettoModel(new Field("mittente",org.openspcoop2.core.tracciamento.Soggetto.class,"busta",Busta.class));
  39.         this.DESTINATARIO = new org.openspcoop2.core.tracciamento.model.SoggettoModel(new Field("destinatario",org.openspcoop2.core.tracciamento.Soggetto.class,"busta",Busta.class));
  40.         this.PROFILO_COLLABORAZIONE = new org.openspcoop2.core.tracciamento.model.ProfiloCollaborazioneModel(new Field("profilo-collaborazione",org.openspcoop2.core.tracciamento.ProfiloCollaborazione.class,"busta",Busta.class));
  41.         this.SERVIZIO = new org.openspcoop2.core.tracciamento.model.ServizioModel(new Field("servizio",org.openspcoop2.core.tracciamento.Servizio.class,"busta",Busta.class));
  42.         this.AZIONE = new Field("azione",java.lang.String.class,"busta",Busta.class);
  43.         this.SERVIZIO_CORRELATO = new org.openspcoop2.core.tracciamento.model.ServizioModel(new Field("servizio-correlato",org.openspcoop2.core.tracciamento.Servizio.class,"busta",Busta.class));
  44.         this.COLLABORAZIONE = new Field("collaborazione",java.lang.String.class,"busta",Busta.class);
  45.         this.IDENTIFICATIVO = new Field("identificativo",java.lang.String.class,"busta",Busta.class);
  46.         this.RIFERIMENTO_MESSAGGIO = new Field("riferimento-messaggio",java.lang.String.class,"busta",Busta.class);
  47.         this.ORA_REGISTRAZIONE = new org.openspcoop2.core.tracciamento.model.DataModel(new Field("ora-registrazione",org.openspcoop2.core.tracciamento.Data.class,"busta",Busta.class));
  48.         this.SCADENZA = new Field("scadenza",java.util.Date.class,"busta",Busta.class);
  49.         this.PROFILO_TRASMISSIONE = new org.openspcoop2.core.tracciamento.model.ProfiloTrasmissioneModel(new Field("profilo-trasmissione",org.openspcoop2.core.tracciamento.ProfiloTrasmissione.class,"busta",Busta.class));
  50.         this.SERVIZIO_APPLICATIVO_FRUITORE = new Field("servizio-applicativo-fruitore",java.lang.String.class,"busta",Busta.class);
  51.         this.SERVIZIO_APPLICATIVO_EROGATORE = new Field("servizio-applicativo-erogatore",java.lang.String.class,"busta",Busta.class);
  52.         this.DIGEST = new Field("digest",java.lang.String.class,"busta",Busta.class);
  53.         this.TRASMISSIONI = new org.openspcoop2.core.tracciamento.model.TrasmissioniModel(new Field("trasmissioni",org.openspcoop2.core.tracciamento.Trasmissioni.class,"busta",Busta.class));
  54.         this.RISCONTRI = new org.openspcoop2.core.tracciamento.model.RiscontriModel(new Field("riscontri",org.openspcoop2.core.tracciamento.Riscontri.class,"busta",Busta.class));
  55.         this.ECCEZIONI = new org.openspcoop2.core.tracciamento.model.EccezioniModel(new Field("eccezioni",org.openspcoop2.core.tracciamento.Eccezioni.class,"busta",Busta.class));
  56.         this.PROTOCOLLO = new org.openspcoop2.core.tracciamento.model.ProtocolloModel(new Field("protocollo",org.openspcoop2.core.tracciamento.Protocollo.class,"busta",Busta.class));
  57.    
  58.     }
  59.    
  60.     public BustaModel(IField father){
  61.    
  62.         super(father);
  63.    
  64.         this.MITTENTE = new org.openspcoop2.core.tracciamento.model.SoggettoModel(new ComplexField(father,"mittente",org.openspcoop2.core.tracciamento.Soggetto.class,"busta",Busta.class));
  65.         this.DESTINATARIO = new org.openspcoop2.core.tracciamento.model.SoggettoModel(new ComplexField(father,"destinatario",org.openspcoop2.core.tracciamento.Soggetto.class,"busta",Busta.class));
  66.         this.PROFILO_COLLABORAZIONE = new org.openspcoop2.core.tracciamento.model.ProfiloCollaborazioneModel(new ComplexField(father,"profilo-collaborazione",org.openspcoop2.core.tracciamento.ProfiloCollaborazione.class,"busta",Busta.class));
  67.         this.SERVIZIO = new org.openspcoop2.core.tracciamento.model.ServizioModel(new ComplexField(father,"servizio",org.openspcoop2.core.tracciamento.Servizio.class,"busta",Busta.class));
  68.         this.AZIONE = new ComplexField(father,"azione",java.lang.String.class,"busta",Busta.class);
  69.         this.SERVIZIO_CORRELATO = new org.openspcoop2.core.tracciamento.model.ServizioModel(new ComplexField(father,"servizio-correlato",org.openspcoop2.core.tracciamento.Servizio.class,"busta",Busta.class));
  70.         this.COLLABORAZIONE = new ComplexField(father,"collaborazione",java.lang.String.class,"busta",Busta.class);
  71.         this.IDENTIFICATIVO = new ComplexField(father,"identificativo",java.lang.String.class,"busta",Busta.class);
  72.         this.RIFERIMENTO_MESSAGGIO = new ComplexField(father,"riferimento-messaggio",java.lang.String.class,"busta",Busta.class);
  73.         this.ORA_REGISTRAZIONE = new org.openspcoop2.core.tracciamento.model.DataModel(new ComplexField(father,"ora-registrazione",org.openspcoop2.core.tracciamento.Data.class,"busta",Busta.class));
  74.         this.SCADENZA = new ComplexField(father,"scadenza",java.util.Date.class,"busta",Busta.class);
  75.         this.PROFILO_TRASMISSIONE = new org.openspcoop2.core.tracciamento.model.ProfiloTrasmissioneModel(new ComplexField(father,"profilo-trasmissione",org.openspcoop2.core.tracciamento.ProfiloTrasmissione.class,"busta",Busta.class));
  76.         this.SERVIZIO_APPLICATIVO_FRUITORE = new ComplexField(father,"servizio-applicativo-fruitore",java.lang.String.class,"busta",Busta.class);
  77.         this.SERVIZIO_APPLICATIVO_EROGATORE = new ComplexField(father,"servizio-applicativo-erogatore",java.lang.String.class,"busta",Busta.class);
  78.         this.DIGEST = new ComplexField(father,"digest",java.lang.String.class,"busta",Busta.class);
  79.         this.TRASMISSIONI = new org.openspcoop2.core.tracciamento.model.TrasmissioniModel(new ComplexField(father,"trasmissioni",org.openspcoop2.core.tracciamento.Trasmissioni.class,"busta",Busta.class));
  80.         this.RISCONTRI = new org.openspcoop2.core.tracciamento.model.RiscontriModel(new ComplexField(father,"riscontri",org.openspcoop2.core.tracciamento.Riscontri.class,"busta",Busta.class));
  81.         this.ECCEZIONI = new org.openspcoop2.core.tracciamento.model.EccezioniModel(new ComplexField(father,"eccezioni",org.openspcoop2.core.tracciamento.Eccezioni.class,"busta",Busta.class));
  82.         this.PROTOCOLLO = new org.openspcoop2.core.tracciamento.model.ProtocolloModel(new ComplexField(father,"protocollo",org.openspcoop2.core.tracciamento.Protocollo.class,"busta",Busta.class));
  83.    
  84.     }
  85.    
  86.    

  87.     public org.openspcoop2.core.tracciamento.model.SoggettoModel MITTENTE = null;
  88.      
  89.     public org.openspcoop2.core.tracciamento.model.SoggettoModel DESTINATARIO = null;
  90.      
  91.     public org.openspcoop2.core.tracciamento.model.ProfiloCollaborazioneModel PROFILO_COLLABORAZIONE = null;
  92.      
  93.     public org.openspcoop2.core.tracciamento.model.ServizioModel SERVIZIO = null;
  94.      
  95.     public IField AZIONE = null;
  96.      
  97.     public org.openspcoop2.core.tracciamento.model.ServizioModel SERVIZIO_CORRELATO = null;
  98.      
  99.     public IField COLLABORAZIONE = null;
  100.      
  101.     public IField IDENTIFICATIVO = null;
  102.      
  103.     public IField RIFERIMENTO_MESSAGGIO = null;
  104.      
  105.     public org.openspcoop2.core.tracciamento.model.DataModel ORA_REGISTRAZIONE = null;
  106.      
  107.     public IField SCADENZA = null;
  108.      
  109.     public org.openspcoop2.core.tracciamento.model.ProfiloTrasmissioneModel PROFILO_TRASMISSIONE = null;
  110.      
  111.     public IField SERVIZIO_APPLICATIVO_FRUITORE = null;
  112.      
  113.     public IField SERVIZIO_APPLICATIVO_EROGATORE = null;
  114.      
  115.     public IField DIGEST = null;
  116.      
  117.     public org.openspcoop2.core.tracciamento.model.TrasmissioniModel TRASMISSIONI = null;
  118.      
  119.     public org.openspcoop2.core.tracciamento.model.RiscontriModel RISCONTRI = null;
  120.      
  121.     public org.openspcoop2.core.tracciamento.model.EccezioniModel ECCEZIONI = null;
  122.      
  123.     public org.openspcoop2.core.tracciamento.model.ProtocolloModel PROTOCOLLO = null;
  124.      

  125.     @Override
  126.     public Class<Busta> getModeledClass(){
  127.         return Busta.class;
  128.     }
  129.    
  130.     @Override
  131.     public String toString(){
  132.         if(this.getModeledClass()!=null){
  133.             return this.getModeledClass().getName();
  134.         }else{
  135.             return "N.D.";
  136.         }
  137.     }

  138. }