org.ow2.frascati.examples.sales.SalesItem Maven / Gradle / Ivy
The newest version!
package org.ow2.frascati.examples.sales;
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.apache.commons.lang.builder.ToStringBuilder;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;
/**
* Java class for SalesItem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SalesItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="refId" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="quantity" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SalesItem", propOrder = {
"refId",
"name",
"quantity"
})
public class SalesItem
implements ToString
{
protected int refId;
@XmlElement(required = true)
protected String name;
protected int quantity;
/**
* Gets the value of the refId property.
*
*/
public int getRefId() {
return refId;
}
/**
* Sets the value of the refId property.
*
*/
public void setRefId(int value) {
this.refId = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the quantity property.
*
*/
public int getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
*/
public void setQuantity(int value) {
this.quantity = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
int theRefId;
theRefId = this.getRefId();
toStringBuilder.append("refId", theRefId);
}
{
String theName;
theName = this.getName();
toStringBuilder.append("name", theName);
}
{
int theQuantity;
theQuantity = this.getQuantity();
toStringBuilder.append("quantity", theQuantity);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy