org.ow2.frascati.examples.sales.StockItem 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.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 StockItem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StockItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="refId" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="quantity" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StockItem", propOrder = {
"refId",
"quantity"
})
public class StockItem
implements ToString
{
protected int refId;
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 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);
}
{
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