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

org.finra.herd.model.api.xml.SearchIndexStatistics Maven / Gradle / Ivy

Go to download

This project contains the model API classes compiled for JDK 1.5 and above. This project depends on herd-model-api and should not contain any actual files.

There is a newer version: 0.160.0
Show newest version

package org.finra.herd.model.api.xml;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
import org.jvnet.jaxb2_commons.lang.CopyTo2;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for searchIndexStatistics complex type. * *

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

 * <complexType name="searchIndexStatistics">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="indexCreationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="indexNumberOfActiveDocuments" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="indexNumberOfDeletedDocuments" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *         <element name="indexUuid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="indexCount" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "searchIndexStatistics", propOrder = { }) public class SearchIndexStatistics implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar indexCreationDate; protected Long indexNumberOfActiveDocuments; protected Long indexNumberOfDeletedDocuments; protected String indexUuid; protected Long indexCount; /** * Default no-arg constructor * */ public SearchIndexStatistics() { super(); } /** * Fully-initialising value constructor * */ public SearchIndexStatistics(final XMLGregorianCalendar indexCreationDate, final Long indexNumberOfActiveDocuments, final Long indexNumberOfDeletedDocuments, final String indexUuid, final Long indexCount) { this.indexCreationDate = indexCreationDate; this.indexNumberOfActiveDocuments = indexNumberOfActiveDocuments; this.indexNumberOfDeletedDocuments = indexNumberOfDeletedDocuments; this.indexUuid = indexUuid; this.indexCount = indexCount; } /** * Gets the value of the indexCreationDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getIndexCreationDate() { return indexCreationDate; } /** * Sets the value of the indexCreationDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setIndexCreationDate(XMLGregorianCalendar value) { this.indexCreationDate = value; } /** * Gets the value of the indexNumberOfActiveDocuments property. * * @return * possible object is * {@link Long } * */ public Long getIndexNumberOfActiveDocuments() { return indexNumberOfActiveDocuments; } /** * Sets the value of the indexNumberOfActiveDocuments property. * * @param value * allowed object is * {@link Long } * */ public void setIndexNumberOfActiveDocuments(Long value) { this.indexNumberOfActiveDocuments = value; } /** * Gets the value of the indexNumberOfDeletedDocuments property. * * @return * possible object is * {@link Long } * */ public Long getIndexNumberOfDeletedDocuments() { return indexNumberOfDeletedDocuments; } /** * Sets the value of the indexNumberOfDeletedDocuments property. * * @param value * allowed object is * {@link Long } * */ public void setIndexNumberOfDeletedDocuments(Long value) { this.indexNumberOfDeletedDocuments = value; } /** * Gets the value of the indexUuid property. * * @return * possible object is * {@link String } * */ public String getIndexUuid() { return indexUuid; } /** * Sets the value of the indexUuid property. * * @param value * allowed object is * {@link String } * */ public void setIndexUuid(String value) { this.indexUuid = value; } /** * Gets the value of the indexCount property. * * @return * possible object is * {@link Long } * */ public Long getIndexCount() { return indexCount; } /** * Sets the value of the indexCount property. * * @param value * allowed object is * {@link Long } * */ public void setIndexCount(Long value) { this.indexCount = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { XMLGregorianCalendar theIndexCreationDate; theIndexCreationDate = this.getIndexCreationDate(); strategy.appendField(locator, this, "indexCreationDate", buffer, theIndexCreationDate, (this.indexCreationDate!= null)); } { Long theIndexNumberOfActiveDocuments; theIndexNumberOfActiveDocuments = this.getIndexNumberOfActiveDocuments(); strategy.appendField(locator, this, "indexNumberOfActiveDocuments", buffer, theIndexNumberOfActiveDocuments, (this.indexNumberOfActiveDocuments!= null)); } { Long theIndexNumberOfDeletedDocuments; theIndexNumberOfDeletedDocuments = this.getIndexNumberOfDeletedDocuments(); strategy.appendField(locator, this, "indexNumberOfDeletedDocuments", buffer, theIndexNumberOfDeletedDocuments, (this.indexNumberOfDeletedDocuments!= null)); } { String theIndexUuid; theIndexUuid = this.getIndexUuid(); strategy.appendField(locator, this, "indexUuid", buffer, theIndexUuid, (this.indexUuid!= null)); } { Long theIndexCount; theIndexCount = this.getIndexCount(); strategy.appendField(locator, this, "indexCount", buffer, theIndexCount, (this.indexCount!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SearchIndexStatistics that = ((SearchIndexStatistics) object); { XMLGregorianCalendar lhsIndexCreationDate; lhsIndexCreationDate = this.getIndexCreationDate(); XMLGregorianCalendar rhsIndexCreationDate; rhsIndexCreationDate = that.getIndexCreationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indexCreationDate", lhsIndexCreationDate), LocatorUtils.property(thatLocator, "indexCreationDate", rhsIndexCreationDate), lhsIndexCreationDate, rhsIndexCreationDate, (this.indexCreationDate!= null), (that.indexCreationDate!= null))) { return false; } } { Long lhsIndexNumberOfActiveDocuments; lhsIndexNumberOfActiveDocuments = this.getIndexNumberOfActiveDocuments(); Long rhsIndexNumberOfActiveDocuments; rhsIndexNumberOfActiveDocuments = that.getIndexNumberOfActiveDocuments(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indexNumberOfActiveDocuments", lhsIndexNumberOfActiveDocuments), LocatorUtils.property(thatLocator, "indexNumberOfActiveDocuments", rhsIndexNumberOfActiveDocuments), lhsIndexNumberOfActiveDocuments, rhsIndexNumberOfActiveDocuments, (this.indexNumberOfActiveDocuments!= null), (that.indexNumberOfActiveDocuments!= null))) { return false; } } { Long lhsIndexNumberOfDeletedDocuments; lhsIndexNumberOfDeletedDocuments = this.getIndexNumberOfDeletedDocuments(); Long rhsIndexNumberOfDeletedDocuments; rhsIndexNumberOfDeletedDocuments = that.getIndexNumberOfDeletedDocuments(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indexNumberOfDeletedDocuments", lhsIndexNumberOfDeletedDocuments), LocatorUtils.property(thatLocator, "indexNumberOfDeletedDocuments", rhsIndexNumberOfDeletedDocuments), lhsIndexNumberOfDeletedDocuments, rhsIndexNumberOfDeletedDocuments, (this.indexNumberOfDeletedDocuments!= null), (that.indexNumberOfDeletedDocuments!= null))) { return false; } } { String lhsIndexUuid; lhsIndexUuid = this.getIndexUuid(); String rhsIndexUuid; rhsIndexUuid = that.getIndexUuid(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indexUuid", lhsIndexUuid), LocatorUtils.property(thatLocator, "indexUuid", rhsIndexUuid), lhsIndexUuid, rhsIndexUuid, (this.indexUuid!= null), (that.indexUuid!= null))) { return false; } } { Long lhsIndexCount; lhsIndexCount = this.getIndexCount(); Long rhsIndexCount; rhsIndexCount = that.getIndexCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "indexCount", lhsIndexCount), LocatorUtils.property(thatLocator, "indexCount", rhsIndexCount), lhsIndexCount, rhsIndexCount, (this.indexCount!= null), (that.indexCount!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { XMLGregorianCalendar theIndexCreationDate; theIndexCreationDate = this.getIndexCreationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexCreationDate", theIndexCreationDate), currentHashCode, theIndexCreationDate, (this.indexCreationDate!= null)); } { Long theIndexNumberOfActiveDocuments; theIndexNumberOfActiveDocuments = this.getIndexNumberOfActiveDocuments(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexNumberOfActiveDocuments", theIndexNumberOfActiveDocuments), currentHashCode, theIndexNumberOfActiveDocuments, (this.indexNumberOfActiveDocuments!= null)); } { Long theIndexNumberOfDeletedDocuments; theIndexNumberOfDeletedDocuments = this.getIndexNumberOfDeletedDocuments(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexNumberOfDeletedDocuments", theIndexNumberOfDeletedDocuments), currentHashCode, theIndexNumberOfDeletedDocuments, (this.indexNumberOfDeletedDocuments!= null)); } { String theIndexUuid; theIndexUuid = this.getIndexUuid(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexUuid", theIndexUuid), currentHashCode, theIndexUuid, (this.indexUuid!= null)); } { Long theIndexCount; theIndexCount = this.getIndexCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexCount", theIndexCount), currentHashCode, theIndexCount, (this.indexCount!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof SearchIndexStatistics) { final SearchIndexStatistics copy = ((SearchIndexStatistics) draftCopy); { Boolean indexCreationDateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexCreationDate!= null)); if (indexCreationDateShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceIndexCreationDate; sourceIndexCreationDate = this.getIndexCreationDate(); XMLGregorianCalendar copyIndexCreationDate = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "indexCreationDate", sourceIndexCreationDate), sourceIndexCreationDate, (this.indexCreationDate!= null))); copy.setIndexCreationDate(copyIndexCreationDate); } else { if (indexCreationDateShouldBeCopiedAndSet == Boolean.FALSE) { copy.indexCreationDate = null; } } } { Boolean indexNumberOfActiveDocumentsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexNumberOfActiveDocuments!= null)); if (indexNumberOfActiveDocumentsShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceIndexNumberOfActiveDocuments; sourceIndexNumberOfActiveDocuments = this.getIndexNumberOfActiveDocuments(); Long copyIndexNumberOfActiveDocuments = ((Long) strategy.copy(LocatorUtils.property(locator, "indexNumberOfActiveDocuments", sourceIndexNumberOfActiveDocuments), sourceIndexNumberOfActiveDocuments, (this.indexNumberOfActiveDocuments!= null))); copy.setIndexNumberOfActiveDocuments(copyIndexNumberOfActiveDocuments); } else { if (indexNumberOfActiveDocumentsShouldBeCopiedAndSet == Boolean.FALSE) { copy.indexNumberOfActiveDocuments = null; } } } { Boolean indexNumberOfDeletedDocumentsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexNumberOfDeletedDocuments!= null)); if (indexNumberOfDeletedDocumentsShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceIndexNumberOfDeletedDocuments; sourceIndexNumberOfDeletedDocuments = this.getIndexNumberOfDeletedDocuments(); Long copyIndexNumberOfDeletedDocuments = ((Long) strategy.copy(LocatorUtils.property(locator, "indexNumberOfDeletedDocuments", sourceIndexNumberOfDeletedDocuments), sourceIndexNumberOfDeletedDocuments, (this.indexNumberOfDeletedDocuments!= null))); copy.setIndexNumberOfDeletedDocuments(copyIndexNumberOfDeletedDocuments); } else { if (indexNumberOfDeletedDocumentsShouldBeCopiedAndSet == Boolean.FALSE) { copy.indexNumberOfDeletedDocuments = null; } } } { Boolean indexUuidShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexUuid!= null)); if (indexUuidShouldBeCopiedAndSet == Boolean.TRUE) { String sourceIndexUuid; sourceIndexUuid = this.getIndexUuid(); String copyIndexUuid = ((String) strategy.copy(LocatorUtils.property(locator, "indexUuid", sourceIndexUuid), sourceIndexUuid, (this.indexUuid!= null))); copy.setIndexUuid(copyIndexUuid); } else { if (indexUuidShouldBeCopiedAndSet == Boolean.FALSE) { copy.indexUuid = null; } } } { Boolean indexCountShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexCount!= null)); if (indexCountShouldBeCopiedAndSet == Boolean.TRUE) { Long sourceIndexCount; sourceIndexCount = this.getIndexCount(); Long copyIndexCount = ((Long) strategy.copy(LocatorUtils.property(locator, "indexCount", sourceIndexCount), sourceIndexCount, (this.indexCount!= null))); copy.setIndexCount(copyIndexCount); } else { if (indexCountShouldBeCopiedAndSet == Boolean.FALSE) { copy.indexCount = null; } } } } return draftCopy; } public Object createNewInstance() { return new SearchIndexStatistics(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy