ParameterRendering.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.monitor.sdk.parameters;

  21. import java.util.ArrayList;
  22. import java.util.List;

  23. /**
  24.  * ParameterRendering
  25.  *
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class ParameterRendering<T> {

  31.     private String label;
  32.     private String suggestion;
  33.     private boolean required;
  34.     private boolean hidden;
  35.     private T defaultValue;
  36.     private List<String> values = new ArrayList<>();
  37.     private List<String> labels = new ArrayList<>();
  38.     private Integer rows; // solo per text area
  39.     private Integer columns; // solo per text area
  40.     private String labelRight;
  41.    
  42.     public String getLabel() {
  43.         return this.label;
  44.     }
  45.     public void setLabel(String label) {
  46.         this.label = label;
  47.     }
  48.     public String getSuggestion() {
  49.         return this.suggestion;
  50.     }
  51.     public void setSuggestion(String suggestion) {
  52.         this.suggestion = suggestion;
  53.     }
  54.     public boolean isRequired() {
  55.         return this.required;
  56.     }
  57.     public void setRequired(boolean required) {
  58.         this.required = required;
  59.     }
  60.     public boolean isHidden() {
  61.         return this.hidden;
  62.     }
  63.     public void setHidden(boolean hidden) {
  64.         this.hidden = hidden;
  65.     }
  66.     public T getDefaultValue() {
  67.         return this.defaultValue;
  68.     }
  69.     public void setDefaultValue(T defaultValue) {
  70.         this.defaultValue = defaultValue;
  71.     }

  72.     public List<String> getValues() {
  73.         return this.values;
  74.     }
  75.     public void setValues(List<String> values) {
  76.         this.values = values;
  77.     }
  78.     public List<String> getLabels() {
  79.         return this.labels;
  80.     }
  81.     public void setLabels(List<String> labels) {
  82.         this.labels = labels;
  83.     }
  84.     public String getLabelRight() {
  85.         return this.labelRight;
  86.     }
  87.     public void setLabelRight(String labelRight) {
  88.         this.labelRight = labelRight;
  89.     }  
  90.     public Integer getRows() {
  91.         return this.rows;
  92.     }
  93.     public void setRows(Integer rows) {
  94.         this.rows = rows;
  95.     }
  96.     public Integer getColumns() {
  97.         return this.columns;
  98.     }
  99.     public void setColumns(Integer columns) {
  100.         this.columns = columns;
  101.     }
  102.    
  103. }