package org.cagrid.dorian.model.federation;
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.XmlType;
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 UserCertificateFilter complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="UserCertificateFilter">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SerialNumber" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="GridIdentity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Status" type="{http://cagrid.nci.nih.gov/1/dorian-ifs}UserCertificateStatus" minOccurs="0"/>
* <element name="DateRange" type="{http://cagrid.nci.nih.gov/1/dorian-ifs}DateRange" minOccurs="0"/>
* <element name="Notes" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "UserCertificateFilter", propOrder = {
"serialNumber",
"gridIdentity",
"status",
"dateRange",
"notes"
})
public class UserCertificateFilter
implements Serializable, Equals, HashCode, ToString
{
@XmlElement(name = "SerialNumber")
protected Long serialNumber;
@XmlElement(name = "GridIdentity")
protected String gridIdentity;
@XmlElement(name = "Status")
protected UserCertificateStatus status;
@XmlElement(name = "DateRange")
protected DateRange dateRange;
@XmlElement(name = "Notes")
protected String notes;
/**
* Gets the value of the serialNumber property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getSerialNumber() {
return serialNumber;
}
/**
* Sets the value of the serialNumber property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setSerialNumber(Long value) {
this.serialNumber = value;
}
/**
* Gets the value of the gridIdentity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGridIdentity() {
return gridIdentity;
}
/**
* Sets the value of the gridIdentity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGridIdentity(String value) {
this.gridIdentity = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link UserCertificateStatus }
*
*/
public UserCertificateStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link UserCertificateStatus }
*
*/
public void setStatus(UserCertificateStatus value) {
this.status = value;
}
/**
* Gets the value of the dateRange property.
*
* @return
* possible object is
* {@link DateRange }
*
*/
public DateRange getDateRange() {
return dateRange;
}
/**
* Sets the value of the dateRange property.
*
* @param value
* allowed object is
* {@link DateRange }
*
*/
public void setDateRange(DateRange value) {
this.dateRange = value;
}
/**
* Gets the value of the notes property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNotes() {
return notes;
}
/**
* Sets the value of the notes property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNotes(String value) {
this.notes = 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) {
{
Long theSerialNumber;
theSerialNumber = this.getSerialNumber();
strategy.appendField(locator, this, "serialNumber", buffer, theSerialNumber);
}
{
String theGridIdentity;
theGridIdentity = this.getGridIdentity();
strategy.appendField(locator, this, "gridIdentity", buffer, theGridIdentity);
}
{
UserCertificateStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus);
}
{
DateRange theDateRange;
theDateRange = this.getDateRange();
strategy.appendField(locator, this, "dateRange", buffer, theDateRange);
}
{
String theNotes;
theNotes = this.getNotes();
strategy.appendField(locator, this, "notes", buffer, theNotes);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
Long theSerialNumber;
theSerialNumber = this.getSerialNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serialNumber", theSerialNumber), currentHashCode, theSerialNumber);
}
{
String theGridIdentity;
theGridIdentity = this.getGridIdentity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gridIdentity", theGridIdentity), currentHashCode, theGridIdentity);
}
{
UserCertificateStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus);
}
{
DateRange theDateRange;
theDateRange = this.getDateRange();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateRange", theDateRange), currentHashCode, theDateRange);
}
{
String theNotes;
theNotes = this.getNotes();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes);
}
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 UserCertificateFilter)) {
return false;
}
if (this == object) {
return true;
}
final UserCertificateFilter that = ((UserCertificateFilter) object);
{
Long lhsSerialNumber;
lhsSerialNumber = this.getSerialNumber();
Long rhsSerialNumber;
rhsSerialNumber = that.getSerialNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "serialNumber", lhsSerialNumber), LocatorUtils.property(thatLocator, "serialNumber", rhsSerialNumber), lhsSerialNumber, rhsSerialNumber)) {
return false;
}
}
{
String lhsGridIdentity;
lhsGridIdentity = this.getGridIdentity();
String rhsGridIdentity;
rhsGridIdentity = that.getGridIdentity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "gridIdentity", lhsGridIdentity), LocatorUtils.property(thatLocator, "gridIdentity", rhsGridIdentity), lhsGridIdentity, rhsGridIdentity)) {
return false;
}
}
{
UserCertificateStatus lhsStatus;
lhsStatus = this.getStatus();
UserCertificateStatus rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) {
return false;
}
}
{
DateRange lhsDateRange;
lhsDateRange = this.getDateRange();
DateRange rhsDateRange;
rhsDateRange = that.getDateRange();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dateRange", lhsDateRange), LocatorUtils.property(thatLocator, "dateRange", rhsDateRange), lhsDateRange, rhsDateRange)) {
return false;
}
}
{
String lhsNotes;
lhsNotes = this.getNotes();
String rhsNotes;
rhsNotes = that.getNotes();
if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}