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.fatturapa.sdi.fatturapa.v1_1;

  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.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import java.io.Serializable;
  28. import java.util.ArrayList;
  29. import java.util.List;


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

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

  56. @XmlRootElement(name = "FatturaElettronicaType")

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

  61.   public FatturaElettronicaHeaderType getFatturaElettronicaHeader() {
  62.     return this.fatturaElettronicaHeader;
  63.   }

  64.   public void setFatturaElettronicaHeader(FatturaElettronicaHeaderType fatturaElettronicaHeader) {
  65.     this.fatturaElettronicaHeader = fatturaElettronicaHeader;
  66.   }

  67.   public void addFatturaElettronicaBody(FatturaElettronicaBodyType fatturaElettronicaBody) {
  68.     this.fatturaElettronicaBody.add(fatturaElettronicaBody);
  69.   }

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

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

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

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

  82.   public int sizeFatturaElettronicaBodyList() {
  83.     return this.fatturaElettronicaBody.size();
  84.   }

  85.   public java.lang.String getVersione() {
  86.     return this.versione;
  87.   }

  88.   public void setVersione(java.lang.String versione) {
  89.     this.versione = versione;
  90.   }

  91.   private static final long serialVersionUID = 1L;

  92.   private static it.gov.fatturapa.sdi.fatturapa.v1_1.model.FatturaElettronicaTypeModel modelStaticInstance = null;
  93.   private static synchronized void initModelStaticInstance(){
  94.       if(it.gov.fatturapa.sdi.fatturapa.v1_1.FatturaElettronicaType.modelStaticInstance==null){
  95.             it.gov.fatturapa.sdi.fatturapa.v1_1.FatturaElettronicaType.modelStaticInstance = new it.gov.fatturapa.sdi.fatturapa.v1_1.model.FatturaElettronicaTypeModel();
  96.       }
  97.   }
  98.   public static it.gov.fatturapa.sdi.fatturapa.v1_1.model.FatturaElettronicaTypeModel model(){
  99.       if(it.gov.fatturapa.sdi.fatturapa.v1_1.FatturaElettronicaType.modelStaticInstance==null){
  100.             initModelStaticInstance();
  101.       }
  102.       return it.gov.fatturapa.sdi.fatturapa.v1_1.FatturaElettronicaType.modelStaticInstance;
  103.   }


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

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

  108.   /**
  109.    * Use method getFatturaElettronicaBodyList
  110.    * @return List&lt;FatturaElettronicaBodyType&gt;
  111.   */
  112.   public List<FatturaElettronicaBodyType> getFatturaElettronicaBody() {
  113.     return this.getFatturaElettronicaBodyList();
  114.   }

  115.   /**
  116.    * Use method setFatturaElettronicaBodyList
  117.    * @param fatturaElettronicaBody List&lt;FatturaElettronicaBodyType&gt;
  118.   */
  119.   public void setFatturaElettronicaBody(List<FatturaElettronicaBodyType> fatturaElettronicaBody) {
  120.     this.setFatturaElettronicaBodyList(fatturaElettronicaBody);
  121.   }

  122.   /**
  123.    * Use method sizeFatturaElettronicaBodyList
  124.    * @return lunghezza della lista
  125.   */
  126.   public int sizeFatturaElettronicaBody() {
  127.     return this.sizeFatturaElettronicaBodyList();
  128.   }

  129.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  130.   @XmlAttribute(name="versione",required=true)
  131.   protected java.lang.String versione;

  132. }