package org.cagrid.dorian.model.federation;
import java.io.Serializable;
import java.math.BigInteger;
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 HostCertificateFilter complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="HostCertificateFilter">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Id" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="SerialNumber" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="Host" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Owner" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Status" type="{http://cagrid.nci.nih.gov/1/dorian-ifs}HostCertificateStatus" minOccurs="0"/>
* <element name="IsExpired" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HostCertificateFilter", propOrder = {
"id",
"serialNumber",
"host",
"subject",
"owner",
"status",
"isExpired"
})
public class HostCertificateFilter
implements Serializable, Equals, HashCode, ToString
{
@XmlElement(name = "Id")
protected BigInteger id;
@XmlElement(name = "SerialNumber")
protected BigInteger serialNumber;
@XmlElement(name = "Host")
protected String host;
@XmlElement(name = "Subject")
protected String subject;
@XmlElement(name = "Owner")
protected String owner;
@XmlElement(name = "Status")
protected HostCertificateStatus status;
@XmlElement(name = "IsExpired")
protected Boolean isExpired;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setId(BigInteger value) {
this.id = value;
}
/**
* Gets the value of the serialNumber property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSerialNumber() {
return serialNumber;
}
/**
* Sets the value of the serialNumber property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSerialNumber(BigInteger value) {
this.serialNumber = value;
}
/**
* Gets the value of the host property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHost() {
return host;
}
/**
* Sets the value of the host property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHost(String value) {
this.host = value;
}
/**
* Gets the value of the subject property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSubject() {
return subject;
}
/**
* Sets the value of the subject property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSubject(String value) {
this.subject = value;
}
/**
* Gets the value of the owner property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOwner() {
return owner;
}
/**
* Sets the value of the owner property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOwner(String value) {
this.owner = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link HostCertificateStatus }
*
*/
public HostCertificateStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link HostCertificateStatus }
*
*/
public void setStatus(HostCertificateStatus value) {
this.status = value;
}
/**
* Gets the value of the isExpired property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsExpired() {
return isExpired;
}
/**
* Sets the value of the isExpired property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsExpired(Boolean value) {
this.isExpired = 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) {
{
BigInteger theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId);
}
{
BigInteger theSerialNumber;
theSerialNumber = this.getSerialNumber();
strategy.appendField(locator, this, "serialNumber", buffer, theSerialNumber);
}
{
String theHost;
theHost = this.getHost();
strategy.appendField(locator, this, "host", buffer, theHost);
}
{
String theSubject;
theSubject = this.getSubject();
strategy.appendField(locator, this, "subject", buffer, theSubject);
}
{
String theOwner;
theOwner = this.getOwner();
strategy.appendField(locator, this, "owner", buffer, theOwner);
}
{
HostCertificateStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus);
}
{
Boolean theIsExpired;
theIsExpired = this.isIsExpired();
strategy.appendField(locator, this, "isExpired", buffer, theIsExpired);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
BigInteger theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
{
BigInteger theSerialNumber;
theSerialNumber = this.getSerialNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serialNumber", theSerialNumber), currentHashCode, theSerialNumber);
}
{
String theHost;
theHost = this.getHost();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "host", theHost), currentHashCode, theHost);
}
{
String theSubject;
theSubject = this.getSubject();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject);
}
{
String theOwner;
theOwner = this.getOwner();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "owner", theOwner), currentHashCode, theOwner);
}
{
HostCertificateStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus);
}
{
Boolean theIsExpired;
theIsExpired = this.isIsExpired();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isExpired", theIsExpired), currentHashCode, theIsExpired);
}
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 HostCertificateFilter)) {
return false;
}
if (this == object) {
return true;
}
final HostCertificateFilter that = ((HostCertificateFilter) object);
{
BigInteger lhsId;
lhsId = this.getId();
BigInteger rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
return false;
}
}
{
BigInteger lhsSerialNumber;
lhsSerialNumber = this.getSerialNumber();
BigInteger rhsSerialNumber;
rhsSerialNumber = that.getSerialNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "serialNumber", lhsSerialNumber), LocatorUtils.property(thatLocator, "serialNumber", rhsSerialNumber), lhsSerialNumber, rhsSerialNumber)) {
return false;
}
}
{
String lhsHost;
lhsHost = this.getHost();
String rhsHost;
rhsHost = that.getHost();
if (!strategy.equals(LocatorUtils.property(thisLocator, "host", lhsHost), LocatorUtils.property(thatLocator, "host", rhsHost), lhsHost, rhsHost)) {
return false;
}
}
{
String lhsSubject;
lhsSubject = this.getSubject();
String rhsSubject;
rhsSubject = that.getSubject();
if (!strategy.equals(LocatorUtils.property(thisLocator, "subject", lhsSubject), LocatorUtils.property(thatLocator, "subject", rhsSubject), lhsSubject, rhsSubject)) {
return false;
}
}
{
String lhsOwner;
lhsOwner = this.getOwner();
String rhsOwner;
rhsOwner = that.getOwner();
if (!strategy.equals(LocatorUtils.property(thisLocator, "owner", lhsOwner), LocatorUtils.property(thatLocator, "owner", rhsOwner), lhsOwner, rhsOwner)) {
return false;
}
}
{
HostCertificateStatus lhsStatus;
lhsStatus = this.getStatus();
HostCertificateStatus rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) {
return false;
}
}
{
Boolean lhsIsExpired;
lhsIsExpired = this.isIsExpired();
Boolean rhsIsExpired;
rhsIsExpired = that.isIsExpired();
if (!strategy.equals(LocatorUtils.property(thisLocator, "isExpired", lhsIsExpired), LocatorUtils.property(thatLocator, "isExpired", rhsIsExpired), lhsIsExpired, rhsIsExpired)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}