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

com.helger.regrep.query.QueryResponse Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version

package com.helger.regrep.query;

import java.math.BigInteger;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.equals.EqualsHelper;
import com.helger.commons.hashcode.HashCodeGenerator;
import com.helger.commons.string.ToStringGenerator;
import com.helger.regrep.rs.RegistryResponseType;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0}RegistryResponseType">
 *       <attribute name="startIndex" type="{http://www.w3.org/2001/XMLSchema}integer" default="0" />
 *       <attribute name="totalResultCount" type="{http://www.w3.org/2001/XMLSchema}integer" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
*

This class was annotated by ph-jaxb22-plugin -Xph-annotate

*

This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode

*

This class contains methods created by ph-jaxb22-plugin -Xph-tostring

*

This class contains methods created by ph-jaxb22-plugin -Xph-cloneable2

*

This class contains methods created by ph-jaxb22-plugin -Xph-value-extender

* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "QueryResponse") @CodingStyleguideUnaware public class QueryResponse extends RegistryResponseType { @XmlAttribute(name = "startIndex") private BigInteger startIndex; @XmlAttribute(name = "totalResultCount") private BigInteger totalResultCount; /** * Default constructor
* Note: automatically created by ph-jaxb22-plugin -Xph-value-extender * */ public QueryResponse() { } /** * Gets the value of the startIndex property. * * @return * possible object is * {@link BigInteger } * */ @Nullable public BigInteger getStartIndex() { if (startIndex == null) { return new BigInteger("0"); } else { return startIndex; } } /** * Sets the value of the startIndex property. * * @param value * allowed object is * {@link BigInteger } * */ public void setStartIndex( @Nullable BigInteger value) { this.startIndex = value; } /** * Gets the value of the totalResultCount property. * * @return * possible object is * {@link BigInteger } * */ @Nullable public BigInteger getTotalResultCount() { return totalResultCount; } /** * Sets the value of the totalResultCount property. * * @param value * allowed object is * {@link BigInteger } * */ public void setTotalResultCount( @Nullable BigInteger value) { this.totalResultCount = value; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if (!super.equals(o)) { return false; } final QueryResponse rhs = ((QueryResponse) o); if (!EqualsHelper.equals(startIndex, rhs.startIndex)) { return false; } if (!EqualsHelper.equals(totalResultCount, rhs.totalResultCount)) { return false; } return true; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public int hashCode() { return HashCodeGenerator.getDerived(super.hashCode()).append(startIndex).append(totalResultCount).getHashCode(); } /** * Created by ph-jaxb22-plugin -Xph-tostring * */ @Override public String toString() { return ToStringGenerator.getDerived(super.toString()).append("startIndex", startIndex).append("totalResultCount", totalResultCount).getToString(); } /** * This method clones all values from this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2 * * @param ret * The target object to clone to. May not be null. */ public void cloneTo( @Nonnull QueryResponse ret) { super.cloneTo(ret); ret.startIndex = startIndex; ret.totalResultCount = totalResultCount; } /** * Created by ph-jaxb22-plugin -Xph-cloneable2 * * @return * The cloned object. Never null. */ @Nonnull @ReturnsMutableCopy @Override public QueryResponse clone() { QueryResponse ret = new QueryResponse(); cloneTo(ret); return ret; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy