2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v3.0-03/04/2009 09:20 AM(valikov)-fcs
\r
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
\r
4 // Any modifications to this file will be lost upon recompilation of the source schema.
\r
5 // Generated on: 2010.08.19 at 08:39:19 AM PDT
\r
9 package org.collectionspace.services.hyperjaxb;
\r
11 import javax.xml.bind.annotation.XmlAccessType;
\r
12 import javax.xml.bind.annotation.XmlAccessorType;
\r
13 import javax.xml.bind.annotation.XmlRootElement;
\r
14 import javax.xml.bind.annotation.XmlSchemaType;
\r
15 import javax.xml.bind.annotation.XmlType;
\r
16 import org.apache.commons.lang.builder.EqualsBuilder;
\r
17 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
18 import org.jvnet.jaxb2_commons.lang.Equals;
\r
19 import org.jvnet.jaxb2_commons.lang.HashCode;
\r
20 import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
\r
21 import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
\r
28 * <p>Java class for anonymous complex type.
\r
30 * <p>The following schema fragment specifies the expected content contained within this class.
\r
34 * <complexContent>
\r
35 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
\r
37 * <element name="pageNum" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
\r
38 * <element name="pageSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
\r
39 * <element name="itemsInPage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
\r
40 * <element name="totalItems" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
\r
43 * </complexContent>
\r
49 @XmlAccessorType(XmlAccessType.FIELD)
\r
50 @XmlType(name = "", propOrder = {
\r
56 @XmlRootElement(name = "abstract-common-list")
\r
57 public class AbstractCommonList
\r
58 implements Equals, HashCode
\r
61 @XmlSchemaType(name = "unsignedInt")
\r
62 protected long pageNum;
\r
63 @XmlSchemaType(name = "unsignedInt")
\r
64 protected long pageSize;
\r
65 @XmlSchemaType(name = "unsignedInt")
\r
66 protected long itemsInPage;
\r
67 @XmlSchemaType(name = "unsignedInt")
\r
68 protected long totalItems;
\r
71 * Gets the value of the pageNum property.
\r
74 public long getPageNum() {
\r
79 * Sets the value of the pageNum property.
\r
82 public void setPageNum(long value) {
\r
83 this.pageNum = value;
\r
87 * Gets the value of the pageSize property.
\r
90 public long getPageSize() {
\r
95 * Sets the value of the pageSize property.
\r
98 public void setPageSize(long value) {
\r
99 this.pageSize = value;
\r
103 * Gets the value of the itemsInPage property.
\r
106 public long getItemsInPage() {
\r
107 return itemsInPage;
\r
111 * Sets the value of the itemsInPage property.
\r
114 public void setItemsInPage(long value) {
\r
115 this.itemsInPage = value;
\r
119 * Gets the value of the totalItems property.
\r
122 public long getTotalItems() {
\r
127 * Sets the value of the totalItems property.
\r
130 public void setTotalItems(long value) {
\r
131 this.totalItems = value;
\r
134 public void equals(Object object, EqualsBuilder equalsBuilder) {
\r
135 if (!(object instanceof AbstractCommonList)) {
\r
136 equalsBuilder.appendSuper(false);
\r
139 if (this == object) {
\r
142 final AbstractCommonList that = ((AbstractCommonList) object);
\r
143 equalsBuilder.append(this.getPageNum(), that.getPageNum());
\r
144 equalsBuilder.append(this.getPageSize(), that.getPageSize());
\r
145 equalsBuilder.append(this.getItemsInPage(), that.getItemsInPage());
\r
146 equalsBuilder.append(this.getTotalItems(), that.getTotalItems());
\r
149 public boolean equals(Object object) {
\r
150 if (!(object instanceof AbstractCommonList)) {
\r
153 if (this == object) {
\r
156 final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
\r
157 equals(object, equalsBuilder);
\r
158 return equalsBuilder.isEquals();
\r
161 public void hashCode(HashCodeBuilder hashCodeBuilder) {
\r
162 hashCodeBuilder.append(this.getPageNum());
\r
163 hashCodeBuilder.append(this.getPageSize());
\r
164 hashCodeBuilder.append(this.getItemsInPage());
\r
165 hashCodeBuilder.append(this.getTotalItems());
\r
168 public int hashCode() {
\r
169 final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
\r
170 hashCode(hashCodeBuilder);
\r
171 return hashCodeBuilder.toHashCode();
\r