package com.axiastudio.suite.interoperabilita.entities; import javax.xml.bind.annotation.*; import java.util.ArrayList; import java.util.List; /** * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "documentoOrFascicolo" }) @XmlRootElement(name = "Allegati") public class Allegati { @XmlElements({ @XmlElement(name = "Documento", required = true, type = Documento.class), @XmlElement(name = "Fascicolo", required = true, type = Fascicolo.class) }) protected List<Object> documentoOrFascicolo; /** * Gets the value of the documentoOrFascicolo property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the documentoOrFascicolo property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDocumentoOrFascicolo().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Documento } * {@link Fascicolo } * * */ public List<Object> getDocumentoOrFascicolo() { if (documentoOrFascicolo == null) { documentoOrFascicolo = new ArrayList<Object>(); } return this.documentoOrFascicolo; } }