FiltroModel.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.pdd.monitor.model;

  21. import org.openspcoop2.pdd.monitor.Filtro;

  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 Filtro
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class FiltroModel extends AbstractModel<Filtro> {

  34.     public FiltroModel(){
  35.    
  36.         super();
  37.    
  38.         this.CORRELAZIONE_APPLICATIVA = new Field("correlazione-applicativa",java.lang.String.class,"filtro",Filtro.class);
  39.         this.BUSTA = new org.openspcoop2.pdd.monitor.model.BustaModel(new Field("busta",org.openspcoop2.pdd.monitor.Busta.class,"filtro",Filtro.class));
  40.         this.ID_MESSAGGIO = new Field("id-messaggio",java.lang.String.class,"filtro",Filtro.class);
  41.         this.MESSAGE_PATTERN = new Field("message-pattern",java.lang.String.class,"filtro",Filtro.class);
  42.         this.SOGLIA = new Field("soglia",long.class,"filtro",Filtro.class);
  43.         this.STATO = new Field("stato",java.lang.String.class,"filtro",Filtro.class);
  44.         this.TIPO = new Field("tipo",java.lang.String.class,"filtro",Filtro.class);
  45.         this.SOGGETTO = new org.openspcoop2.pdd.monitor.model.BustaSoggettoModel(new Field("soggetto",org.openspcoop2.pdd.monitor.BustaSoggetto.class,"filtro",Filtro.class));
  46.         this.PROPRIETA = new org.openspcoop2.pdd.monitor.model.ProprietaModel(new Field("proprieta",org.openspcoop2.pdd.monitor.Proprieta.class,"filtro",Filtro.class));
  47.    
  48.     }
  49.    
  50.     public FiltroModel(IField father){
  51.    
  52.         super(father);
  53.    
  54.         this.CORRELAZIONE_APPLICATIVA = new ComplexField(father,"correlazione-applicativa",java.lang.String.class,"filtro",Filtro.class);
  55.         this.BUSTA = new org.openspcoop2.pdd.monitor.model.BustaModel(new ComplexField(father,"busta",org.openspcoop2.pdd.monitor.Busta.class,"filtro",Filtro.class));
  56.         this.ID_MESSAGGIO = new ComplexField(father,"id-messaggio",java.lang.String.class,"filtro",Filtro.class);
  57.         this.MESSAGE_PATTERN = new ComplexField(father,"message-pattern",java.lang.String.class,"filtro",Filtro.class);
  58.         this.SOGLIA = new ComplexField(father,"soglia",long.class,"filtro",Filtro.class);
  59.         this.STATO = new ComplexField(father,"stato",java.lang.String.class,"filtro",Filtro.class);
  60.         this.TIPO = new ComplexField(father,"tipo",java.lang.String.class,"filtro",Filtro.class);
  61.         this.SOGGETTO = new org.openspcoop2.pdd.monitor.model.BustaSoggettoModel(new ComplexField(father,"soggetto",org.openspcoop2.pdd.monitor.BustaSoggetto.class,"filtro",Filtro.class));
  62.         this.PROPRIETA = new org.openspcoop2.pdd.monitor.model.ProprietaModel(new ComplexField(father,"proprieta",org.openspcoop2.pdd.monitor.Proprieta.class,"filtro",Filtro.class));
  63.    
  64.     }
  65.    
  66.    

  67.     public IField CORRELAZIONE_APPLICATIVA = null;
  68.      
  69.     public org.openspcoop2.pdd.monitor.model.BustaModel BUSTA = null;
  70.      
  71.     public IField ID_MESSAGGIO = null;
  72.      
  73.     public IField MESSAGE_PATTERN = null;
  74.      
  75.     public IField SOGLIA = null;
  76.      
  77.     public IField STATO = null;
  78.      
  79.     public IField TIPO = null;
  80.      
  81.     public org.openspcoop2.pdd.monitor.model.BustaSoggettoModel SOGGETTO = null;
  82.      
  83.     public org.openspcoop2.pdd.monitor.model.ProprietaModel PROPRIETA = null;
  84.      

  85.     @Override
  86.     public Class<Filtro> getModeledClass(){
  87.         return Filtro.class;
  88.     }
  89.    
  90.     @Override
  91.     public String toString(){
  92.         if(this.getModeledClass()!=null){
  93.             return this.getModeledClass().getName();
  94.         }else{
  95.             return "N.D.";
  96.         }
  97.     }

  98. }