FatturaElettronicaType.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_0;

  21. import it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.constants.FormatoTrasmissioneType;
  22. import javax.xml.bind.annotation.XmlAccessType;
  23. import javax.xml.bind.annotation.XmlAccessorType;
  24. import javax.xml.bind.annotation.XmlAttribute;
  25. import javax.xml.bind.annotation.XmlElement;
  26. import javax.xml.bind.annotation.XmlRootElement;
  27. import javax.xml.bind.annotation.XmlType;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for FatturaElettronicaType complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="FatturaElettronicaType"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="FatturaElettronicaHeader" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}FatturaElettronicaHeaderType" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="FatturaElettronicaBody" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}FatturaElettronicaBodyType" minOccurs="1" maxOccurs="unbounded"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  *      &lt;attribute name="versione" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}FormatoTrasmissioneType" use="required"/&gt;
  42.  *      &lt;attribute name="SistemaEmittente" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}normalizedString" use="optional"/&gt;
  43.  * &lt;/complexType&gt;
  44.  * </pre>
  45.  *
  46.  * @version $Rev$, $Date$
  47.  *
  48.  * @author Poli Andrea (poli@link.it)
  49.  * @author $Author$
  50.  * */

  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "FatturaElettronicaType",
  53.   propOrder = {
  54.     "fatturaElettronicaHeader",
  55.     "fatturaElettronicaBody"
  56.   }
  57. )

  58. @XmlRootElement(name = "FatturaElettronicaType")

  59. public class FatturaElettronicaType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  60.   public FatturaElettronicaType() {
  61.     super();
  62.   }

  63.   public FatturaElettronicaHeaderType getFatturaElettronicaHeader() {
  64.     return this.fatturaElettronicaHeader;
  65.   }

  66.   public void setFatturaElettronicaHeader(FatturaElettronicaHeaderType fatturaElettronicaHeader) {
  67.     this.fatturaElettronicaHeader = fatturaElettronicaHeader;
  68.   }

  69.   public void addFatturaElettronicaBody(FatturaElettronicaBodyType fatturaElettronicaBody) {
  70.     this.fatturaElettronicaBody.add(fatturaElettronicaBody);
  71.   }

  72.   public FatturaElettronicaBodyType getFatturaElettronicaBody(int index) {
  73.     return this.fatturaElettronicaBody.get( index );
  74.   }

  75.   public FatturaElettronicaBodyType removeFatturaElettronicaBody(int index) {
  76.     return this.fatturaElettronicaBody.remove( index );
  77.   }

  78.   public List<FatturaElettronicaBodyType> getFatturaElettronicaBodyList() {
  79.     return this.fatturaElettronicaBody;
  80.   }

  81.   public void setFatturaElettronicaBodyList(List<FatturaElettronicaBodyType> fatturaElettronicaBody) {
  82.     this.fatturaElettronicaBody=fatturaElettronicaBody;
  83.   }

  84.   public int sizeFatturaElettronicaBodyList() {
  85.     return this.fatturaElettronicaBody.size();
  86.   }

  87.   public void setVersioneRawEnumValue(String value) {
  88.     this.versione = (FormatoTrasmissioneType) FormatoTrasmissioneType.toEnumConstantFromString(value);
  89.   }

  90.   public String getVersioneRawEnumValue() {
  91.     if(this.versione == null){
  92.         return null;
  93.     }else{
  94.         return this.versione.toString();
  95.     }
  96.   }

  97.   public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.constants.FormatoTrasmissioneType getVersione() {
  98.     return this.versione;
  99.   }

  100.   public void setVersione(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.constants.FormatoTrasmissioneType versione) {
  101.     this.versione = versione;
  102.   }

  103.   public java.lang.String getSistemaEmittente() {
  104.     return this.sistemaEmittente;
  105.   }

  106.   public void setSistemaEmittente(java.lang.String sistemaEmittente) {
  107.     this.sistemaEmittente = sistemaEmittente;
  108.   }

  109.   private static final long serialVersionUID = 1L;

  110.   private static it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.model.FatturaElettronicaTypeModel modelStaticInstance = null;
  111.   private static synchronized void initModelStaticInstance(){
  112.       if(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.FatturaElettronicaType.modelStaticInstance==null){
  113.             it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.FatturaElettronicaType.modelStaticInstance = new it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.model.FatturaElettronicaTypeModel();
  114.       }
  115.   }
  116.   public static it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.model.FatturaElettronicaTypeModel model(){
  117.       if(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.FatturaElettronicaType.modelStaticInstance==null){
  118.             initModelStaticInstance();
  119.       }
  120.       return it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_0.FatturaElettronicaType.modelStaticInstance;
  121.   }


  122.   @XmlElement(name="FatturaElettronicaHeader",required=true,nillable=false)
  123.   protected FatturaElettronicaHeaderType fatturaElettronicaHeader;

  124.   @XmlElement(name="FatturaElettronicaBody",required=true,nillable=false)
  125.   private List<FatturaElettronicaBodyType> fatturaElettronicaBody = new ArrayList<>();

  126.   /**
  127.    * Use method getFatturaElettronicaBodyList
  128.    * @return List&lt;FatturaElettronicaBodyType&gt;
  129.   */
  130.   public List<FatturaElettronicaBodyType> getFatturaElettronicaBody() {
  131.     return this.getFatturaElettronicaBodyList();
  132.   }

  133.   /**
  134.    * Use method setFatturaElettronicaBodyList
  135.    * @param fatturaElettronicaBody List&lt;FatturaElettronicaBodyType&gt;
  136.   */
  137.   public void setFatturaElettronicaBody(List<FatturaElettronicaBodyType> fatturaElettronicaBody) {
  138.     this.setFatturaElettronicaBodyList(fatturaElettronicaBody);
  139.   }

  140.   /**
  141.    * Use method sizeFatturaElettronicaBodyList
  142.    * @return lunghezza della lista
  143.   */
  144.   public int sizeFatturaElettronicaBody() {
  145.     return this.sizeFatturaElettronicaBodyList();
  146.   }

  147.   @javax.xml.bind.annotation.XmlTransient
  148.   protected java.lang.String versioneRawEnumValue;

  149.   @XmlAttribute(name="versione",required=true)
  150.   protected FormatoTrasmissioneType versione;

  151.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  152.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  153.   @XmlAttribute(name="SistemaEmittente",required=false)
  154.   protected java.lang.String sistemaEmittente;

  155. }