DatiBolloType.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 it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2;

  21. import it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.BolloVirtualeType;
  22. import javax.xml.bind.annotation.XmlAccessType;
  23. import javax.xml.bind.annotation.XmlAccessorType;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import java.io.Serializable;


  28. /** <p>Java class for DatiBolloType complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="DatiBolloType"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="BolloVirtuale" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}BolloVirtualeType" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="ImportoBollo" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}decimal" minOccurs="0" maxOccurs="1"/&gt;
  37.  *      &lt;/sequence&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 = "DatiBolloType",
  48.   propOrder = {
  49.     "bolloVirtuale",
  50.     "_decimalWrapper_importoBollo"
  51.   }
  52. )

  53. @XmlRootElement(name = "DatiBolloType")

  54. public class DatiBolloType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  55.   public DatiBolloType() {
  56.     super();
  57.   }

  58.   public void setBolloVirtualeRawEnumValue(String value) {
  59.     this.bolloVirtuale = (BolloVirtualeType) BolloVirtualeType.toEnumConstantFromString(value);
  60.   }

  61.   public String getBolloVirtualeRawEnumValue() {
  62.     if(this.bolloVirtuale == null){
  63.         return null;
  64.     }else{
  65.         return this.bolloVirtuale.toString();
  66.     }
  67.   }

  68.   public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.BolloVirtualeType getBolloVirtuale() {
  69.     return this.bolloVirtuale;
  70.   }

  71.   public void setBolloVirtuale(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.BolloVirtualeType bolloVirtuale) {
  72.     this.bolloVirtuale = bolloVirtuale;
  73.   }

  74.   public java.math.BigDecimal getImportoBollo() {
  75.     if(this._decimalWrapper_importoBollo!=null){
  76.         return (java.math.BigDecimal) this._decimalWrapper_importoBollo.getObject(java.math.BigDecimal.class);
  77.     }else{
  78.         return this.importoBollo;
  79.     }
  80.   }

  81.   public void setImportoBollo(java.math.BigDecimal importoBollo) {
  82.     if(importoBollo!=null){
  83.         this._decimalWrapper_importoBollo = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,2,importoBollo);
  84.     }
  85.   }

  86.   private static final long serialVersionUID = 1L;



  87.   @javax.xml.bind.annotation.XmlTransient
  88.   protected java.lang.String bolloVirtualeRawEnumValue;

  89.   @XmlElement(name="BolloVirtuale",required=true,nillable=false)
  90.   protected BolloVirtualeType bolloVirtuale;

  91.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  92.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  93.   @XmlElement(name="ImportoBollo",required=false,nillable=false)
  94.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importoBollo = null;

  95.   @javax.xml.bind.annotation.XmlTransient
  96.   protected java.math.BigDecimal importoBollo;

  97. }