package ebayopensource.apis.eblbasecomponents; import java.util.ArrayList; import java.util.List; import javax.activation.DataHandler; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyElement; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlMimeType; import javax.xml.bind.annotation.XmlType; import org.w3c.dom.Element; /** * * Tags to define a MAC Attachment * * * <p>Java class for MACAttachementFileType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="MACAttachementFileType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Path" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Size" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="Data" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> * <any/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MACAttachementFileType", propOrder = { "name", "path", "size", "data", "any" }) public class MACAttachementFileType { @XmlElement(name = "Name") protected String name; @XmlElement(name = "Path") protected String path; @XmlElement(name = "Size") protected Long size; @XmlElement(name = "Data") @XmlMimeType("application/any") protected DataHandler data; @XmlAnyElement(lax = true) protected List<Object> any; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the path property. * * @return * possible object is * {@link String } * */ public String getPath() { return path; } /** * Sets the value of the path property. * * @param value * allowed object is * {@link String } * */ public void setPath(String value) { this.path = value; } /** * Gets the value of the size property. * * @return * possible object is * {@link Long } * */ public Long getSize() { return size; } /** * Sets the value of the size property. * * @param value * allowed object is * {@link Long } * */ public void setSize(Long value) { this.size = value; } /** * Gets the value of the data property. * * @return * possible object is * {@link DataHandler } * */ public DataHandler getData() { return data; } /** * Sets the value of the data property. * * @param value * allowed object is * {@link DataHandler } * */ public void setData(DataHandler value) { this.data = value; } /** * Gets the value of the any 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 any property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAny().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Element } * {@link Object } * * */ public List<Object> getAny() { if (any == null) { any = new ArrayList<Object>(); } return this.any; } }