TipoData.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.tracciamento;

  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.tracciamento.constants.TipoTempo;
  27. import java.io.Serializable;


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

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "TipoData")

  49. @XmlRootElement(name = "TipoData")

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

  54.   public String getBase() {
  55.     if(this.base!=null && ("".equals(this.base)==false)){
  56.         return this.base.trim();
  57.     }else{
  58.         return null;
  59.     }

  60.   }

  61.   public void setBase(String base) {
  62.     this.base=base;
  63.   }

  64.   public void setTipoRawEnumValue(String value) {
  65.     this.tipo = (TipoTempo) TipoTempo.toEnumConstantFromString(value);
  66.   }

  67.   public String getTipoRawEnumValue() {
  68.     if(this.tipo == null){
  69.         return null;
  70.     }else{
  71.         return this.tipo.toString();
  72.     }
  73.   }

  74.   public org.openspcoop2.core.tracciamento.constants.TipoTempo getTipo() {
  75.     return this.tipo;
  76.   }

  77.   public void setTipo(org.openspcoop2.core.tracciamento.constants.TipoTempo tipo) {
  78.     this.tipo = tipo;
  79.   }

  80.   private static final long serialVersionUID = 1L;



  81.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  82.   @javax.xml.bind.annotation.XmlValue()
  83.   public String base;

  84.   @javax.xml.bind.annotation.XmlTransient
  85.   protected java.lang.String tipoRawEnumValue;

  86.   @XmlAttribute(name="tipo",required=true)
  87.   protected TipoTempo tipo;

  88. }