ResourceParameter.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.registry;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.registry.constants.ParameterType;
  27. import java.io.Serializable;


  28. /** <p>Java class for resource-parameter complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="resource-parameter"&gt;
  34.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  35.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  36.  *      &lt;attribute name="parameter-type" type="{http://www.openspcoop2.org/core/registry}ParameterType" use="required"/&gt;
  37.  *      &lt;attribute name="required" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  38.  *      &lt;attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  39.  *      &lt;attribute name="restrizioni" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "resource-parameter")

  50. @XmlRootElement(name = "resource-parameter")

  51. public class ResourceParameter extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  52.   public ResourceParameter() {
  53.     super();
  54.   }

  55.   public java.lang.String getNome() {
  56.     return this.nome;
  57.   }

  58.   public void setNome(java.lang.String nome) {
  59.     this.nome = nome;
  60.   }

  61.   public java.lang.String getDescrizione() {
  62.     return this.descrizione;
  63.   }

  64.   public void setDescrizione(java.lang.String descrizione) {
  65.     this.descrizione = descrizione;
  66.   }

  67.   public void setParameterTypeRawEnumValue(String value) {
  68.     this.parameterType = (ParameterType) ParameterType.toEnumConstantFromString(value);
  69.   }

  70.   public String getParameterTypeRawEnumValue() {
  71.     if(this.parameterType == null){
  72.         return null;
  73.     }else{
  74.         return this.parameterType.toString();
  75.     }
  76.   }

  77.   public org.openspcoop2.core.registry.constants.ParameterType getParameterType() {
  78.     return this.parameterType;
  79.   }

  80.   public void setParameterType(org.openspcoop2.core.registry.constants.ParameterType parameterType) {
  81.     this.parameterType = parameterType;
  82.   }

  83.   public boolean isRequired() {
  84.     return this.required;
  85.   }

  86.   public boolean getRequired() {
  87.     return this.required;
  88.   }

  89.   public void setRequired(boolean required) {
  90.     this.required = required;
  91.   }

  92.   public java.lang.String getTipo() {
  93.     return this.tipo;
  94.   }

  95.   public void setTipo(java.lang.String tipo) {
  96.     this.tipo = tipo;
  97.   }

  98.   public java.lang.String getRestrizioni() {
  99.     return this.restrizioni;
  100.   }

  101.   public void setRestrizioni(java.lang.String restrizioni) {
  102.     this.restrizioni = restrizioni;
  103.   }

  104.   private static final long serialVersionUID = 1L;



  105.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  106.   @XmlAttribute(name="nome",required=true)
  107.   protected java.lang.String nome;

  108.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  109.   @XmlAttribute(name="descrizione",required=false)
  110.   protected java.lang.String descrizione;

  111.   @javax.xml.bind.annotation.XmlTransient
  112.   protected java.lang.String parameterTypeRawEnumValue;

  113.   @XmlAttribute(name="parameter-type",required=true)
  114.   protected ParameterType parameterType;

  115.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  116.   @XmlAttribute(name="required",required=false)
  117.   protected boolean required = false;

  118.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  119.   @XmlAttribute(name="tipo",required=true)
  120.   protected java.lang.String tipo;

  121.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  122.   @XmlAttribute(name="restrizioni",required=false)
  123.   protected java.lang.String restrizioni;

  124. }