Auction.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 java.util.ArrayList;
import java.util.Date;
import java.util.List;
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>
* <complexType>
* <complexContent>
* <extension base="{http://ejava.info/eSales/1.0.2007.2}ReferencedType">
* <sequence>
* <element name="seller" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="category" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="askingPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* <element ref="{http://ejava.info/eSales/1.0.2007.2}bid" maxOccurs="unbounded" minOccurs="0"/>
* <element name="purchasePrice" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="buyer" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/>
* <element name="shipTo" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}integer" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"seller",
"title",
"category",
"description",
"startTime",
"endTime",
"askingPrice",
"bid",
"purchasePrice",
"buyer",
"shipTo"
})
@XmlRootElement(name = "auction")
public class Auction
extends ReferencedType
{
@XmlElement(required = true)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object seller;
@XmlElement(required = true)
protected String title;
@XmlElement(required = true)
protected String category;
@XmlElement(required = true)
protected String description;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Date startTime;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Date endTime;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "decimal")
protected Float askingPrice;
@XmlElement(namespace = "http://ejava.info/eSales/1.0.2007.2")
protected List<Bid> bid;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "decimal")
protected Float purchasePrice;
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object buyer;
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object shipTo;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(Adapter4 .class)
@XmlSchemaType(name = "integer")
protected Integer id;
/**
* Default no-arg constructor
*
*/
public Auction() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Auction(final String refid, final Object seller, final String title, final String category, final String description, final Date startTime, final Date endTime, final Float askingPrice, final List<Bid> bid, final Float purchasePrice, final Object buyer, final Object shipTo, final Integer id) {
super(refid);
this.seller = seller;
this.title = title;
this.category = category;
this.description = description;
this.startTime = startTime;
this.endTime = endTime;
this.askingPrice = askingPrice;
this.bid = bid;
this.purchasePrice = purchasePrice;
this.buyer = buyer;
this.shipTo = shipTo;
this.id = id;
}
/**
* Gets the value of the seller property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getSeller() {
return seller;
}
/**
* Sets the value of the seller property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setSeller(Object value) {
this.seller = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the category property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCategory() {
return category;
}
/**
* Sets the value of the category property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCategory(String value) {
this.category = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStartTime(Date value) {
this.startTime = value;
}
/**
* Gets the value of the endTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getEndTime() {
return endTime;
}
/**
* Sets the value of the endTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEndTime(Date value) {
this.endTime = value;
}
/**
* Gets the value of the askingPrice property.
*
* @return
* possible object is
* {@link String }
*
*/
public Float getAskingPrice() {
return askingPrice;
}
/**
* Sets the value of the askingPrice property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAskingPrice(Float value) {
this.askingPrice = value;
}
/**
* Gets the value of the bid 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 bid property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBid().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Bid }
*
*
*/
public List<Bid> getBid() {
if (bid == null) {
bid = new ArrayList<Bid>();
}
return this.bid;
}
/**
* Gets the value of the purchasePrice property.
*
* @return
* possible object is
* {@link String }
*
*/
public Float getPurchasePrice() {
return purchasePrice;
}
/**
* Sets the value of the purchasePrice property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPurchasePrice(Float value) {
this.purchasePrice = value;
}
/**
* Gets the value of the buyer property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getBuyer() {
return buyer;
}
/**
* Sets the value of the buyer property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setBuyer(Object value) {
this.buyer = value;
}
/**
* Gets the value of the shipTo property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getShipTo() {
return shipTo;
}
/**
* Sets the value of the shipTo property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setShipTo(Object value) {
this.shipTo = 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;
}
}