AbstractApiParameter.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.rest.api;

  21. import java.io.Serializable;

  22. import org.openspcoop2.utils.beans.BaseBean;

  23. /**
  24.  * AbstractApiRequestParameter
  25.  *
  26.  *
  27.  * @author Poli Andrea (apoli@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public abstract class AbstractApiParameter extends BaseBean implements Serializable {
  32.    
  33.     /**
  34.      *
  35.      */
  36.     private static final long serialVersionUID = 1L;
  37.    
  38.     private String name;
  39.     private String description;
  40.     private boolean required;
  41.        
  42.     public AbstractApiParameter(String name){
  43.         this.name = name;
  44.     }
  45.    
  46.     public String getName() {
  47.         return this.name;
  48.     }
  49.     public void setName(String name) {
  50.         this.name = name;
  51.     }
  52.     public String getDescription() {
  53.         return this.description;
  54.     }
  55.     public void setDescription(String description) {
  56.         this.description = description;
  57.     }
  58.     public boolean isRequired() {
  59.         return this.required;
  60.     }
  61.     public void setRequired(boolean required) {
  62.         this.required = required;
  63.     }
  64.    
  65. }