All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jvnet.hyperjaxb3.tests.po.Items Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2007.01.30 at 01:24:58 PM CET 
//


package org.jvnet.hyperjaxb3.tests.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
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.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;


/**
 * 

Java class for Items complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Items">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="item" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <element name="quantity">
 *                     <simpleType>
 *                       <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
 *                         <maxExclusive value="100"/>
 *                       </restriction>
 *                     </simpleType>
 *                   </element>
 *                   <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *                   <element ref="{}comment" minOccurs="0"/>
 *                   <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
 *                 </sequence>
 *                 <attribute name="partNum" use="required" type="{}SKU" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Items", propOrder = { "item" }) public class Items implements Equals, HashCode { protected List item; @XmlAttribute protected Long hjid; /** * Gets the value of the item property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the item property. * *

* For example, to add a new item, do as follows: *

     *    getItem().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Items.Item } * * */ public List getItem() { if (item == null) { item = new ArrayList(); } return this.item; } public boolean isSetItem() { return ((this.item!= null)&&(!this.item.isEmpty())); } public void unsetItem() { this.item = null; } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Items)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Items rhs = ((Items) object); { List lhsItem; lhsItem = this.getItem(); List rhsItem; rhsItem = rhs.getItem(); equalsBuilder.append(lhsItem, rhsItem); } } public boolean equals(Object object) { if (!(object instanceof Items)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { { List theItem; theItem = this.getItem(); hashCodeBuilder.append(theItem); } } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         <element name="quantity">
     *           <simpleType>
     *             <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
     *               <maxExclusive value="100"/>
     *             </restriction>
     *           </simpleType>
     *         </element>
     *         <element name="USPrice" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
     *         <element ref="{}comment" minOccurs="0"/>
     *         <element name="shipDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
     *       </sequence>
     *       <attribute name="partNum" use="required" type="{}SKU" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "productName", "quantity", "usPrice", "comment", "shipDate" }) public static class Item implements Equals, HashCode { @XmlElement(required = true) protected String productName; protected int quantity; @XmlElement(name = "USPrice", required = true) protected BigDecimal usPrice; protected String comment; protected XMLGregorianCalendar shipDate; @XmlAttribute(required = true) protected String partNum; @XmlAttribute protected Long hjid; /** * Gets the value of the productName property. * * @return * possible object is * {@link String } * */ public String getProductName() { return productName; } /** * Sets the value of the productName property. * * @param value * allowed object is * {@link String } * */ public void setProductName(String value) { this.productName = value; } public boolean isSetProductName() { return (this.productName!= null); } /** * 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 boolean isSetQuantity() { return true; } /** * Gets the value of the usPrice property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getUSPrice() { return usPrice; } /** * Sets the value of the usPrice property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setUSPrice(BigDecimal value) { this.usPrice = value; } public boolean isSetUSPrice() { return (this.usPrice!= null); } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { this.comment = value; } public boolean isSetComment() { return (this.comment!= null); } /** * Gets the value of the shipDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getShipDate() { return shipDate; } /** * Sets the value of the shipDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setShipDate(XMLGregorianCalendar value) { this.shipDate = value; } public boolean isSetShipDate() { return (this.shipDate!= null); } /** * Gets the value of the partNum property. * * @return * possible object is * {@link String } * */ public String getPartNum() { return partNum; } /** * Sets the value of the partNum property. * * @param value * allowed object is * {@link String } * */ public void setPartNum(String value) { this.partNum = value; } public boolean isSetPartNum() { return (this.partNum!= null); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Items.Item)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Items.Item rhs = ((Items.Item) object); { String lhsProductName; lhsProductName = this.getProductName(); String rhsProductName; rhsProductName = rhs.getProductName(); equalsBuilder.append(lhsProductName, rhsProductName); } { int lhsQuantity; lhsQuantity = this.getQuantity(); int rhsQuantity; rhsQuantity = rhs.getQuantity(); equalsBuilder.append(lhsQuantity, rhsQuantity); } { BigDecimal lhsUSPrice; lhsUSPrice = this.getUSPrice(); BigDecimal rhsUSPrice; rhsUSPrice = rhs.getUSPrice(); equalsBuilder.append(lhsUSPrice, rhsUSPrice); } { String lhsComment; lhsComment = this.getComment(); String rhsComment; rhsComment = rhs.getComment(); equalsBuilder.append(lhsComment, rhsComment); } { XMLGregorianCalendar lhsShipDate; lhsShipDate = this.getShipDate(); XMLGregorianCalendar rhsShipDate; rhsShipDate = rhs.getShipDate(); equalsBuilder.append(lhsShipDate, rhsShipDate); } { String lhsPartNum; lhsPartNum = this.getPartNum(); String rhsPartNum; rhsPartNum = rhs.getPartNum(); equalsBuilder.append(lhsPartNum, rhsPartNum); } } public boolean equals(Object object) { if (!(object instanceof Items.Item)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { { String theProductName; theProductName = this.getProductName(); hashCodeBuilder.append(theProductName); } { int theQuantity; theQuantity = this.getQuantity(); hashCodeBuilder.append(theQuantity); } { BigDecimal theUSPrice; theUSPrice = this.getUSPrice(); hashCodeBuilder.append(theUSPrice); } { String theComment; theComment = this.getComment(); hashCodeBuilder.append(theComment); } { XMLGregorianCalendar theShipDate; theShipDate = this.getShipDate(); hashCodeBuilder.append(theShipDate); } { String thePartNum; thePartNum = this.getPartNum(); hashCodeBuilder.append(thePartNum); } } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy