Image.java

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.08.22 at 12:17:55 PM UTC 
//


package ejava.projects.esales.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://ejava.info/eSales/1.0.2007.2}ReferencedType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="auction-ref" type="{http://www.w3.org/2001/XMLSchema}IDREF"/&gt;
 *         &lt;element name="image" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}integer" /&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "auctionRef",
    "image"
})
@XmlRootElement(name = "image")
public class Image
    extends ReferencedType
{

    @XmlElement(name = "auction-ref", required = true)
    @XmlIDREF
    @XmlSchemaType(name = "IDREF")
    protected Object auctionRef;
    @XmlElement(required = true)
    protected byte[] image;
    @XmlAttribute(name = "id")
    @XmlJavaTypeAdapter(Adapter4 .class)
    @XmlSchemaType(name = "integer")
    protected Integer id;

    /**
     * Default no-arg constructor
     * 
     */
    public Image() {
        super();
    }

    /**
     * Fully-initialising value constructor
     * 
     */
    public Image(final String refid, final Object auctionRef, final byte[] image, final Integer id) {
        super(refid);
        this.auctionRef = auctionRef;
        this.image = image;
        this.id = id;
    }

    /**
     * Gets the value of the auctionRef property.
     * 
     * @return
     *     possible object is
     *     {@link Object }
     *     
     */
    public Object getAuctionRef() {
        return auctionRef;
    }

    /**
     * Sets the value of the auctionRef property.
     * 
     * @param value
     *     allowed object is
     *     {@link Object }
     *     
     */
    public void setAuctionRef(Object value) {
        this.auctionRef = value;
    }

    /**
     * Gets the value of the image property.
     * 
     * @return
     *     possible object is
     *     byte[]
     */
    public byte[] getImage() {
        return image;
    }

    /**
     * Sets the value of the image property.
     * 
     * @param value
     *     allowed object is
     *     byte[]
     */
    public void setImage(byte[] value) {
        this.image = value;
    }

    /**
     * Gets the value of the id property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setId(Integer value) {
        this.id = value;
    }

}