AllarmeFiltroModel.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.allarmi.model;

  21. import org.openspcoop2.core.allarmi.AllarmeFiltro;

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

  34.     public AllarmeFiltroModel(){
  35.    
  36.         super();
  37.    
  38.         this.ENABLED = new Field("enabled",boolean.class,"allarme-filtro",AllarmeFiltro.class);
  39.         this.PROTOCOLLO = new Field("protocollo",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  40.         this.RUOLO_PORTA = new Field("ruolo-porta",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  41.         this.NOME_PORTA = new Field("nome-porta",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  42.         this.TIPO_FRUITORE = new Field("tipo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  43.         this.NOME_FRUITORE = new Field("nome-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  44.         this.RUOLO_FRUITORE = new Field("ruolo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  45.         this.SERVIZIO_APPLICATIVO_FRUITORE = new Field("servizio-applicativo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  46.         this.TIPO_EROGATORE = new Field("tipo-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  47.         this.NOME_EROGATORE = new Field("nome-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  48.         this.RUOLO_EROGATORE = new Field("ruolo-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  49.         this.TAG = new Field("tag",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  50.         this.TIPO_SERVIZIO = new Field("tipo-servizio",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  51.         this.NOME_SERVIZIO = new Field("nome-servizio",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  52.         this.VERSIONE_SERVIZIO = new Field("versione-servizio",java.lang.Integer.class,"allarme-filtro",AllarmeFiltro.class);
  53.         this.AZIONE = new Field("azione",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  54.    
  55.     }
  56.    
  57.     public AllarmeFiltroModel(IField father){
  58.    
  59.         super(father);
  60.    
  61.         this.ENABLED = new ComplexField(father,"enabled",boolean.class,"allarme-filtro",AllarmeFiltro.class);
  62.         this.PROTOCOLLO = new ComplexField(father,"protocollo",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  63.         this.RUOLO_PORTA = new ComplexField(father,"ruolo-porta",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  64.         this.NOME_PORTA = new ComplexField(father,"nome-porta",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  65.         this.TIPO_FRUITORE = new ComplexField(father,"tipo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  66.         this.NOME_FRUITORE = new ComplexField(father,"nome-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  67.         this.RUOLO_FRUITORE = new ComplexField(father,"ruolo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  68.         this.SERVIZIO_APPLICATIVO_FRUITORE = new ComplexField(father,"servizio-applicativo-fruitore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  69.         this.TIPO_EROGATORE = new ComplexField(father,"tipo-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  70.         this.NOME_EROGATORE = new ComplexField(father,"nome-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  71.         this.RUOLO_EROGATORE = new ComplexField(father,"ruolo-erogatore",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  72.         this.TAG = new ComplexField(father,"tag",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  73.         this.TIPO_SERVIZIO = new ComplexField(father,"tipo-servizio",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  74.         this.NOME_SERVIZIO = new ComplexField(father,"nome-servizio",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  75.         this.VERSIONE_SERVIZIO = new ComplexField(father,"versione-servizio",java.lang.Integer.class,"allarme-filtro",AllarmeFiltro.class);
  76.         this.AZIONE = new ComplexField(father,"azione",java.lang.String.class,"allarme-filtro",AllarmeFiltro.class);
  77.    
  78.     }
  79.    
  80.    

  81.     public IField ENABLED = null;
  82.      
  83.     public IField PROTOCOLLO = null;
  84.      
  85.     public IField RUOLO_PORTA = null;
  86.      
  87.     public IField NOME_PORTA = null;
  88.      
  89.     public IField TIPO_FRUITORE = null;
  90.      
  91.     public IField NOME_FRUITORE = null;
  92.      
  93.     public IField RUOLO_FRUITORE = null;
  94.      
  95.     public IField SERVIZIO_APPLICATIVO_FRUITORE = null;
  96.      
  97.     public IField TIPO_EROGATORE = null;
  98.      
  99.     public IField NOME_EROGATORE = null;
  100.      
  101.     public IField RUOLO_EROGATORE = null;
  102.      
  103.     public IField TAG = null;
  104.      
  105.     public IField TIPO_SERVIZIO = null;
  106.      
  107.     public IField NOME_SERVIZIO = null;
  108.      
  109.     public IField VERSIONE_SERVIZIO = null;
  110.      
  111.     public IField AZIONE = null;
  112.      

  113.     @Override
  114.     public Class<AllarmeFiltro> getModeledClass(){
  115.         return AllarmeFiltro.class;
  116.     }
  117.    
  118.     @Override
  119.     public String toString(){
  120.         if(this.getModeledClass()!=null){
  121.             return this.getModeledClass().getName();
  122.         }else{
  123.             return "N.D.";
  124.         }
  125.     }

  126. }