//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.08.24 at 05:58:02 PM GMT+07:00
//
package org.etk.core.rest.generated;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <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 ref="{}title"/>
* <element ref="{}author"/>
* <element ref="{}price"/>
* <element ref="{}member-price"/>
* </sequence>
* <attribute name="send-by-post" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"title",
"author",
"price",
"memberPrice"
})
@XmlRootElement(name = "book")
public class Book {
@XmlElement(required = true)
protected String title;
@XmlElement(required = true)
protected String author;
@XmlElement(required = true)
protected Price price;
@XmlElement(name = "member-price", required = true)
protected MemberPrice memberPrice;
@XmlAttribute(name = "send-by-post")
protected Boolean sendByPost;
/**
* 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 author property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAuthor() {
return author;
}
/**
* Sets the value of the author property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAuthor(String value) {
this.author = value;
}
/**
* Gets the value of the price property.
*
* @return
* possible object is
* {@link Price }
*
*/
public Price getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
* @param value
* allowed object is
* {@link Price }
*
*/
public void setPrice(Price value) {
this.price = value;
}
/**
* Gets the value of the memberPrice property.
*
* @return
* possible object is
* {@link MemberPrice }
*
*/
public MemberPrice getMemberPrice() {
return memberPrice;
}
/**
* Sets the value of the memberPrice property.
*
* @param value
* allowed object is
* {@link MemberPrice }
*
*/
public void setMemberPrice(MemberPrice value) {
this.memberPrice = value;
}
/**
* Gets the value of the sendByPost property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isSendByPost() {
if (sendByPost == null) {
return true;
} else {
return sendByPost;
}
}
/**
* Sets the value of the sendByPost property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setSendByPost(Boolean value) {
this.sendByPost = value;
}
}