IntegrationErrorCollectionModel.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.manifest.model;

  21. import org.openspcoop2.protocol.manifest.IntegrationErrorCollection;

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

  34.     public IntegrationErrorCollectionModel(){
  35.    
  36.         super();
  37.    
  38.         this.RFC_7807 = new org.openspcoop2.protocol.manifest.model.RFC7807Model(new Field("rfc7807",org.openspcoop2.protocol.manifest.RFC7807.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  39.         this.AUTHENTICATION = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("authentication",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  40.         this.AUTHORIZATION = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("authorization",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  41.         this.NOT_FOUND = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("notFound",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  42.         this.BAD_REQUEST = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("badRequest",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  43.         this.CONFLICT = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("conflict",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  44.         this.REQUEST_TOO_LARGE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("requestTooLarge",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  45.         this.LIMIT_EXCEEDED = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("limitExceeded",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  46.         this.TOO_MANY_REQUESTS = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("tooManyRequests",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  47.         this.SERVICE_UNAVAILABLE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("serviceUnavailable",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  48.         this.ENDPOINT_REQUEST_TIMED_OUT = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("endpointRequestTimedOut",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  49.         this.BAD_RESPONSE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("badResponse",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  50.         this.INTERNAL_REQUEST_ERROR = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("internalRequestError",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  51.         this.INTERNAL_RESPONSE_ERROR = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new Field("internalResponseError",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  52.         this.DEFAULT = new org.openspcoop2.protocol.manifest.model.DefaultIntegrationErrorModel(new Field("default",org.openspcoop2.protocol.manifest.DefaultIntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  53.         this.PROBLEM_TYPE = new Field("problemType",java.lang.String.class,"IntegrationErrorCollection",IntegrationErrorCollection.class);
  54.         this.USE_INTERNAL_FAULT = new Field("useInternalFault",boolean.class,"IntegrationErrorCollection",IntegrationErrorCollection.class);
  55.    
  56.     }
  57.    
  58.     public IntegrationErrorCollectionModel(IField father){
  59.    
  60.         super(father);
  61.    
  62.         this.RFC_7807 = new org.openspcoop2.protocol.manifest.model.RFC7807Model(new ComplexField(father,"rfc7807",org.openspcoop2.protocol.manifest.RFC7807.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  63.         this.AUTHENTICATION = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"authentication",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  64.         this.AUTHORIZATION = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"authorization",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  65.         this.NOT_FOUND = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"notFound",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  66.         this.BAD_REQUEST = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"badRequest",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  67.         this.CONFLICT = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"conflict",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  68.         this.REQUEST_TOO_LARGE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"requestTooLarge",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  69.         this.LIMIT_EXCEEDED = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"limitExceeded",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  70.         this.TOO_MANY_REQUESTS = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"tooManyRequests",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  71.         this.SERVICE_UNAVAILABLE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"serviceUnavailable",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  72.         this.ENDPOINT_REQUEST_TIMED_OUT = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"endpointRequestTimedOut",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  73.         this.BAD_RESPONSE = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"badResponse",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  74.         this.INTERNAL_REQUEST_ERROR = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"internalRequestError",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  75.         this.INTERNAL_RESPONSE_ERROR = new org.openspcoop2.protocol.manifest.model.IntegrationErrorModel(new ComplexField(father,"internalResponseError",org.openspcoop2.protocol.manifest.IntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  76.         this.DEFAULT = new org.openspcoop2.protocol.manifest.model.DefaultIntegrationErrorModel(new ComplexField(father,"default",org.openspcoop2.protocol.manifest.DefaultIntegrationError.class,"IntegrationErrorCollection",IntegrationErrorCollection.class));
  77.         this.PROBLEM_TYPE = new ComplexField(father,"problemType",java.lang.String.class,"IntegrationErrorCollection",IntegrationErrorCollection.class);
  78.         this.USE_INTERNAL_FAULT = new ComplexField(father,"useInternalFault",boolean.class,"IntegrationErrorCollection",IntegrationErrorCollection.class);
  79.    
  80.     }
  81.    
  82.    

  83.     public org.openspcoop2.protocol.manifest.model.RFC7807Model RFC_7807 = null;
  84.      
  85.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel AUTHENTICATION = null;
  86.      
  87.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel AUTHORIZATION = null;
  88.      
  89.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel NOT_FOUND = null;
  90.      
  91.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel BAD_REQUEST = null;
  92.      
  93.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel CONFLICT = null;
  94.      
  95.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel REQUEST_TOO_LARGE = null;
  96.      
  97.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel LIMIT_EXCEEDED = null;
  98.      
  99.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel TOO_MANY_REQUESTS = null;
  100.      
  101.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel SERVICE_UNAVAILABLE = null;
  102.      
  103.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel ENDPOINT_REQUEST_TIMED_OUT = null;
  104.      
  105.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel BAD_RESPONSE = null;
  106.      
  107.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel INTERNAL_REQUEST_ERROR = null;
  108.      
  109.     public org.openspcoop2.protocol.manifest.model.IntegrationErrorModel INTERNAL_RESPONSE_ERROR = null;
  110.      
  111.     public org.openspcoop2.protocol.manifest.model.DefaultIntegrationErrorModel DEFAULT = null;
  112.      
  113.     public IField PROBLEM_TYPE = null;
  114.      
  115.     public IField USE_INTERNAL_FAULT = null;
  116.      

  117.     @Override
  118.     public Class<IntegrationErrorCollection> getModeledClass(){
  119.         return IntegrationErrorCollection.class;
  120.     }
  121.    
  122.     @Override
  123.     public String toString(){
  124.         if(this.getModeledClass()!=null){
  125.             return this.getModeledClass().getName();
  126.         }else{
  127.             return "N.D.";
  128.         }
  129.     }

  130. }