OpenapiApiValidatorStructure.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.utils.openapi;

  21. import java.io.File;
  22. import java.io.Serializable;
  23. import java.util.Map;

  24. import org.openspcoop2.utils.json.IJsonSchemaValidator;

  25. import com.fasterxml.jackson.databind.JsonNode;

  26. /**
  27.  * SwaggerApi
  28.  *
  29.  * @author Andrea Poli (apoli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  *
  33.  */
  34. public class OpenapiApiValidatorStructure implements Serializable {
  35.    
  36.     /**
  37.      *
  38.      */
  39.     private static final long serialVersionUID = 1L;
  40.    
  41.     private Map<String, byte[]> schemiValidatorePrincipale = null;
  42.     private Map<String, JsonNode> nodeValidatorePrincipale = null;
  43.    
  44.     private Map<String, File> fileSchema;
  45.    
  46.     private Map<String, IJsonSchemaValidator> validatorMap;

  47.    
  48.     public Map<String, byte[]> getSchemiValidatorePrincipale() {
  49.         return this.schemiValidatorePrincipale;
  50.     }
  51.     public void setSchemiValidatorePrincipale(Map<String, byte[]> schemiValidatorePrincipale) {
  52.         this.schemiValidatorePrincipale = schemiValidatorePrincipale;
  53.     }
  54.     public Map<String, JsonNode> getNodeValidatorePrincipale() {
  55.         return this.nodeValidatorePrincipale;
  56.     }
  57.     public void setNodeValidatorePrincipale(Map<String, JsonNode> nodeValidatorePrincipale) {
  58.         this.nodeValidatorePrincipale = nodeValidatorePrincipale;
  59.     }
  60.    
  61.     public Map<String, File> getFileSchema() {
  62.         return this.fileSchema;
  63.     }
  64.     public void setFileSchema(Map<String, File> fileSchema) {
  65.         this.fileSchema = fileSchema;
  66.     }
  67.    
  68.     public Map<String, IJsonSchemaValidator> getValidatorMap() {
  69.         return this.validatorMap;
  70.     }
  71.     public void setValidatorMap(Map<String, IJsonSchemaValidator> validatorMap) {
  72.         this.validatorMap = validatorMap;
  73.     }
  74. }