Bid.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.Date;
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>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="bidTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="amount" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* <element name="item" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="bidder" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}integer" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"bidTime",
"amount",
"item",
"bidder"
})
@XmlRootElement(name = "bid")
public class Bid {
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "dateTime")
protected Date bidTime;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "decimal")
protected Float amount;
@XmlElement(required = true)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object item;
@XmlElement(required = true)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object bidder;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(Adapter4 .class)
@XmlSchemaType(name = "integer")
protected Integer id;
/**
* Default no-arg constructor
*
*/
public Bid() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Bid(final Date bidTime, final Float amount, final Object item, final Object bidder, final Integer id) {
this.bidTime = bidTime;
this.amount = amount;
this.item = item;
this.bidder = bidder;
this.id = id;
}
/**
* Gets the value of the bidTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getBidTime() {
return bidTime;
}
/**
* Sets the value of the bidTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBidTime(Date value) {
this.bidTime = value;
}
/**
* Gets the value of the amount property.
*
* @return
* possible object is
* {@link String }
*
*/
public Float getAmount() {
return amount;
}
/**
* Sets the value of the amount property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAmount(Float value) {
this.amount = value;
}
/**
* Gets the value of the item property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getItem() {
return item;
}
/**
* Sets the value of the item property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setItem(Object value) {
this.item = value;
}
/**
* Gets the value of the bidder property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getBidder() {
return bidder;
}
/**
* Sets the value of the bidder property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setBidder(Object value) {
this.bidder = 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;
}
}