package org.cagrid.dorian;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.cagrid.dorian.model.federation.GridUserFilter;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="filter">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://cagrid.nci.nih.gov/1/dorian-ifs}GridUserFilter"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"filter"
})
@XmlRootElement(name = "FindGridUsersRequest")
public class FindGridUsersRequest
implements Serializable, Equals, HashCode, ToString
{
@XmlElement(required = true)
protected FindGridUsersRequest.Filter filter;
/**
* Gets the value of the filter property.
*
* @return
* possible object is
* {@link FindGridUsersRequest.Filter }
*
*/
public FindGridUsersRequest.Filter getFilter() {
return filter;
}
/**
* Sets the value of the filter property.
*
* @param value
* allowed object is
* {@link FindGridUsersRequest.Filter }
*
*/
public void setFilter(FindGridUsersRequest.Filter value) {
this.filter = value;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
FindGridUsersRequest.Filter theFilter;
theFilter = this.getFilter();
strategy.appendField(locator, this, "filter", buffer, theFilter);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
FindGridUsersRequest.Filter theFilter;
theFilter = this.getFilter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "filter", theFilter), currentHashCode, theFilter);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof FindGridUsersRequest)) {
return false;
}
if (this == object) {
return true;
}
final FindGridUsersRequest that = ((FindGridUsersRequest) object);
{
FindGridUsersRequest.Filter lhsFilter;
lhsFilter = this.getFilter();
FindGridUsersRequest.Filter rhsFilter;
rhsFilter = that.getFilter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "filter", lhsFilter), LocatorUtils.property(thatLocator, "filter", rhsFilter), lhsFilter, rhsFilter)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://cagrid.nci.nih.gov/1/dorian-ifs}GridUserFilter"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"gridUserFilter"
})
public static class Filter
implements Serializable, Equals, HashCode, ToString
{
@XmlElement(name = "GridUserFilter", namespace = "http://cagrid.nci.nih.gov/1/dorian-ifs", required = true)
protected GridUserFilter gridUserFilter;
/**
* Gets the value of the gridUserFilter property.
*
* @return
* possible object is
* {@link GridUserFilter }
*
*/
public GridUserFilter getGridUserFilter() {
return gridUserFilter;
}
/**
* Sets the value of the gridUserFilter property.
*
* @param value
* allowed object is
* {@link GridUserFilter }
*
*/
public void setGridUserFilter(GridUserFilter value) {
this.gridUserFilter = value;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
GridUserFilter theGridUserFilter;
theGridUserFilter = this.getGridUserFilter();
strategy.appendField(locator, this, "gridUserFilter", buffer, theGridUserFilter);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
GridUserFilter theGridUserFilter;
theGridUserFilter = this.getGridUserFilter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gridUserFilter", theGridUserFilter), currentHashCode, theGridUserFilter);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof FindGridUsersRequest.Filter)) {
return false;
}
if (this == object) {
return true;
}
final FindGridUsersRequest.Filter that = ((FindGridUsersRequest.Filter) object);
{
GridUserFilter lhsGridUserFilter;
lhsGridUserFilter = this.getGridUserFilter();
GridUserFilter rhsGridUserFilter;
rhsGridUserFilter = that.getGridUserFilter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "gridUserFilter", lhsGridUserFilter), LocatorUtils.property(thatLocator, "gridUserFilter", rhsGridUserFilter), lhsGridUserFilter, rhsGridUserFilter)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
}