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


  29. /** <p>Java class for FatturaElettronicaBodyType complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="FatturaElettronicaBodyType"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="DatiGenerali" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}DatiGeneraliType" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="DatiBeniServizi" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}DatiBeniServiziType" minOccurs="1" maxOccurs="unbounded"/&gt;
  38.  *          &lt;element name="Allegati" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.0}AllegatiType" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "FatturaElettronicaBodyType",
  50.   propOrder = {
  51.     "datiGenerali",
  52.     "datiBeniServizi",
  53.     "allegati"
  54.   }
  55. )

  56. @XmlRootElement(name = "FatturaElettronicaBodyType")

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

  61.   public DatiGeneraliType getDatiGenerali() {
  62.     return this.datiGenerali;
  63.   }

  64.   public void setDatiGenerali(DatiGeneraliType datiGenerali) {
  65.     this.datiGenerali = datiGenerali;
  66.   }

  67.   public void addDatiBeniServizi(DatiBeniServiziType datiBeniServizi) {
  68.     this.datiBeniServizi.add(datiBeniServizi);
  69.   }

  70.   public DatiBeniServiziType getDatiBeniServizi(int index) {
  71.     return this.datiBeniServizi.get( index );
  72.   }

  73.   public DatiBeniServiziType removeDatiBeniServizi(int index) {
  74.     return this.datiBeniServizi.remove( index );
  75.   }

  76.   public List<DatiBeniServiziType> getDatiBeniServiziList() {
  77.     return this.datiBeniServizi;
  78.   }

  79.   public void setDatiBeniServiziList(List<DatiBeniServiziType> datiBeniServizi) {
  80.     this.datiBeniServizi=datiBeniServizi;
  81.   }

  82.   public int sizeDatiBeniServiziList() {
  83.     return this.datiBeniServizi.size();
  84.   }

  85.   public void addAllegati(AllegatiType allegati) {
  86.     this.allegati.add(allegati);
  87.   }

  88.   public AllegatiType getAllegati(int index) {
  89.     return this.allegati.get( index );
  90.   }

  91.   public AllegatiType removeAllegati(int index) {
  92.     return this.allegati.remove( index );
  93.   }

  94.   public List<AllegatiType> getAllegatiList() {
  95.     return this.allegati;
  96.   }

  97.   public void setAllegatiList(List<AllegatiType> allegati) {
  98.     this.allegati=allegati;
  99.   }

  100.   public int sizeAllegatiList() {
  101.     return this.allegati.size();
  102.   }

  103.   private static final long serialVersionUID = 1L;



  104.   @XmlElement(name="DatiGenerali",required=true,nillable=false)
  105.   protected DatiGeneraliType datiGenerali;

  106.   @XmlElement(name="DatiBeniServizi",required=true,nillable=false)
  107.   private List<DatiBeniServiziType> datiBeniServizi = new ArrayList<>();

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

  115.   /**
  116.    * Use method setDatiBeniServiziList
  117.    * @param datiBeniServizi List&lt;DatiBeniServiziType&gt;
  118.   */
  119.   public void setDatiBeniServizi(List<DatiBeniServiziType> datiBeniServizi) {
  120.     this.setDatiBeniServiziList(datiBeniServizi);
  121.   }

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

  129.   @XmlElement(name="Allegati",required=true,nillable=false)
  130.   private List<AllegatiType> allegati = new ArrayList<>();

  131.   /**
  132.    * Use method getAllegatiList
  133.    * @return List&lt;AllegatiType&gt;
  134.   */
  135.   public List<AllegatiType> getAllegati() {
  136.     return this.getAllegatiList();
  137.   }

  138.   /**
  139.    * Use method setAllegatiList
  140.    * @param allegati List&lt;AllegatiType&gt;
  141.   */
  142.   public void setAllegati(List<AllegatiType> allegati) {
  143.     this.setAllegatiList(allegati);
  144.   }

  145.   /**
  146.    * Use method sizeAllegatiList
  147.    * @return lunghezza della lista
  148.   */
  149.   public int sizeAllegati() {
  150.     return this.sizeAllegatiList();
  151.   }

  152. }