
eu.fispace.api.lg.Item Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2016.05.31 a las 10:59:27 PM CEST
//
package eu.fispace.api.lg;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
/**
* Clase Java para Item complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="Item">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="count" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="price" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* <element name="vat" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Item", propOrder = {
"count",
"price",
"vat",
"title"
})
public class Item
implements Serializable, ToString
{
protected int count;
@XmlElement(required = true)
protected BigDecimal price;
@XmlElement(required = true)
protected String vat;
@XmlElement(required = true)
protected String title;
/**
* Obtiene el valor de la propiedad count.
*
*/
public int getCount() {
return count;
}
/**
* Define el valor de la propiedad count.
*
*/
public void setCount(int value) {
this.count = value;
}
public boolean isSetCount() {
return true;
}
/**
* Obtiene el valor de la propiedad price.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPrice() {
return price;
}
/**
* Define el valor de la propiedad price.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPrice(BigDecimal value) {
this.price = value;
}
public boolean isSetPrice() {
return (this.price!= null);
}
/**
* Obtiene el valor de la propiedad vat.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVat() {
return vat;
}
/**
* Define el valor de la propiedad vat.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVat(String value) {
this.vat = value;
}
public boolean isSetVat() {
return (this.vat!= null);
}
/**
* Obtiene el valor de la propiedad title.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Define el valor de la propiedad title.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
public boolean isSetTitle() {
return (this.title!= null);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
int theCount;
theCount = (this.isSetCount()?this.getCount(): 0);
strategy.appendField(locator, this, "count", buffer, theCount);
}
{
BigDecimal thePrice;
thePrice = this.getPrice();
strategy.appendField(locator, this, "price", buffer, thePrice);
}
{
String theVat;
theVat = this.getVat();
strategy.appendField(locator, this, "vat", buffer, theVat);
}
{
String theTitle;
theTitle = this.getTitle();
strategy.appendField(locator, this, "title", buffer, theTitle);
}
return buffer;
}
public Item withCount(int value) {
setCount(value);
return this;
}
public Item withPrice(BigDecimal value) {
setPrice(value);
return this;
}
public Item withVat(String value) {
setVat(value);
return this;
}
public Item withTitle(String value) {
setTitle(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy