DescriptionType.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.information_missing;

  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.protocol.information_missing.constants.DescriptionItemType;
  27. import java.io.Serializable;


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

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "DescriptionType")

  48. @XmlRootElement(name = "DescriptionType")

  49. public class DescriptionType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  50.   public DescriptionType() {
  51.     super();
  52.   }

  53.   public void setTipoRawEnumValue(String value) {
  54.     this.tipo = (DescriptionItemType) DescriptionItemType.toEnumConstantFromString(value);
  55.   }

  56.   public String getTipoRawEnumValue() {
  57.     if(this.tipo == null){
  58.         return null;
  59.     }else{
  60.         return this.tipo.toString();
  61.     }
  62.   }

  63.   public org.openspcoop2.protocol.information_missing.constants.DescriptionItemType getTipo() {
  64.     return this.tipo;
  65.   }

  66.   public void setTipo(org.openspcoop2.protocol.information_missing.constants.DescriptionItemType tipo) {
  67.     this.tipo = tipo;
  68.   }

  69.   public java.lang.String getValore() {
  70.     return this.valore;
  71.   }

  72.   public void setValore(java.lang.String valore) {
  73.     this.valore = valore;
  74.   }

  75.   public java.lang.String getLabel() {
  76.     return this.label;
  77.   }

  78.   public void setLabel(java.lang.String label) {
  79.     this.label = label;
  80.   }

  81.   public boolean isBold() {
  82.     return this.bold;
  83.   }

  84.   public boolean getBold() {
  85.     return this.bold;
  86.   }

  87.   public void setBold(boolean bold) {
  88.     this.bold = bold;
  89.   }

  90.   private static final long serialVersionUID = 1L;



  91.   @javax.xml.bind.annotation.XmlTransient
  92.   protected java.lang.String tipoRawEnumValue;

  93.   @XmlAttribute(name="tipo",required=true)
  94.   protected DescriptionItemType tipo;

  95.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  96.   @XmlAttribute(name="valore",required=false)
  97.   protected java.lang.String valore;

  98.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  99.   @XmlAttribute(name="label",required=false)
  100.   protected java.lang.String label;

  101.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  102.   @XmlAttribute(name="bold",required=false)
  103.   protected boolean bold = false;

  104. }