org.finra.herd.model.api.xml.SearchIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api-15 Show documentation
Show all versions of herd-model-api-15 Show documentation
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.
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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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 searchIndex complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="searchIndex">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="searchIndexKey" type="{}searchIndexKey"/>
* <element name="searchIndexType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="searchIndexStatus" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="searchIndexStatistics" type="{}searchIndexStatistics" minOccurs="0"/>
* <element name="createdByUserId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="createdOn" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="lastUpdatedOn" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "searchIndex", propOrder = {
})
@XmlRootElement(name = "searchIndex")
public class SearchIndex implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@XmlElement(required = true)
protected SearchIndexKey searchIndexKey;
@XmlElement(required = true)
protected String searchIndexType;
@XmlElement(required = true)
protected String searchIndexStatus;
protected boolean active;
protected SearchIndexStatistics searchIndexStatistics;
protected String createdByUserId;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar createdOn;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar lastUpdatedOn;
/**
* Default no-arg constructor
*
*/
public SearchIndex() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SearchIndex(final SearchIndexKey searchIndexKey, final String searchIndexType, final String searchIndexStatus, final boolean active, final SearchIndexStatistics searchIndexStatistics, final String createdByUserId, final XMLGregorianCalendar createdOn, final XMLGregorianCalendar lastUpdatedOn) {
this.searchIndexKey = searchIndexKey;
this.searchIndexType = searchIndexType;
this.searchIndexStatus = searchIndexStatus;
this.active = active;
this.searchIndexStatistics = searchIndexStatistics;
this.createdByUserId = createdByUserId;
this.createdOn = createdOn;
this.lastUpdatedOn = lastUpdatedOn;
}
/**
* Gets the value of the searchIndexKey property.
*
* @return
* possible object is
* {@link SearchIndexKey }
*
*/
public SearchIndexKey getSearchIndexKey() {
return searchIndexKey;
}
/**
* Sets the value of the searchIndexKey property.
*
* @param value
* allowed object is
* {@link SearchIndexKey }
*
*/
public void setSearchIndexKey(SearchIndexKey value) {
this.searchIndexKey = value;
}
/**
* Gets the value of the searchIndexType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSearchIndexType() {
return searchIndexType;
}
/**
* Sets the value of the searchIndexType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSearchIndexType(String value) {
this.searchIndexType = value;
}
/**
* Gets the value of the searchIndexStatus property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSearchIndexStatus() {
return searchIndexStatus;
}
/**
* Sets the value of the searchIndexStatus property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSearchIndexStatus(String value) {
this.searchIndexStatus = value;
}
/**
* Gets the value of the active property.
*
*/
public boolean isActive() {
return active;
}
/**
* Sets the value of the active property.
*
*/
public void setActive(boolean value) {
this.active = value;
}
/**
* Gets the value of the searchIndexStatistics property.
*
* @return
* possible object is
* {@link SearchIndexStatistics }
*
*/
public SearchIndexStatistics getSearchIndexStatistics() {
return searchIndexStatistics;
}
/**
* Sets the value of the searchIndexStatistics property.
*
* @param value
* allowed object is
* {@link SearchIndexStatistics }
*
*/
public void setSearchIndexStatistics(SearchIndexStatistics value) {
this.searchIndexStatistics = value;
}
/**
* Gets the value of the createdByUserId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCreatedByUserId() {
return createdByUserId;
}
/**
* Sets the value of the createdByUserId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreatedByUserId(String value) {
this.createdByUserId = value;
}
/**
* Gets the value of the createdOn property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreatedOn() {
return createdOn;
}
/**
* Sets the value of the createdOn property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreatedOn(XMLGregorianCalendar value) {
this.createdOn = value;
}
/**
* Gets the value of the lastUpdatedOn property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getLastUpdatedOn() {
return lastUpdatedOn;
}
/**
* Sets the value of the lastUpdatedOn property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setLastUpdatedOn(XMLGregorianCalendar value) {
this.lastUpdatedOn = 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) {
{
SearchIndexKey theSearchIndexKey;
theSearchIndexKey = this.getSearchIndexKey();
strategy.appendField(locator, this, "searchIndexKey", buffer, theSearchIndexKey, (this.searchIndexKey!= null));
}
{
String theSearchIndexType;
theSearchIndexType = this.getSearchIndexType();
strategy.appendField(locator, this, "searchIndexType", buffer, theSearchIndexType, (this.searchIndexType!= null));
}
{
String theSearchIndexStatus;
theSearchIndexStatus = this.getSearchIndexStatus();
strategy.appendField(locator, this, "searchIndexStatus", buffer, theSearchIndexStatus, (this.searchIndexStatus!= null));
}
{
boolean theActive;
theActive = this.isActive();
strategy.appendField(locator, this, "active", buffer, theActive, true);
}
{
SearchIndexStatistics theSearchIndexStatistics;
theSearchIndexStatistics = this.getSearchIndexStatistics();
strategy.appendField(locator, this, "searchIndexStatistics", buffer, theSearchIndexStatistics, (this.searchIndexStatistics!= null));
}
{
String theCreatedByUserId;
theCreatedByUserId = this.getCreatedByUserId();
strategy.appendField(locator, this, "createdByUserId", buffer, theCreatedByUserId, (this.createdByUserId!= null));
}
{
XMLGregorianCalendar theCreatedOn;
theCreatedOn = this.getCreatedOn();
strategy.appendField(locator, this, "createdOn", buffer, theCreatedOn, (this.createdOn!= null));
}
{
XMLGregorianCalendar theLastUpdatedOn;
theLastUpdatedOn = this.getLastUpdatedOn();
strategy.appendField(locator, this, "lastUpdatedOn", buffer, theLastUpdatedOn, (this.lastUpdatedOn!= 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 SearchIndex that = ((SearchIndex) object);
{
SearchIndexKey lhsSearchIndexKey;
lhsSearchIndexKey = this.getSearchIndexKey();
SearchIndexKey rhsSearchIndexKey;
rhsSearchIndexKey = that.getSearchIndexKey();
if (!strategy.equals(LocatorUtils.property(thisLocator, "searchIndexKey", lhsSearchIndexKey), LocatorUtils.property(thatLocator, "searchIndexKey", rhsSearchIndexKey), lhsSearchIndexKey, rhsSearchIndexKey, (this.searchIndexKey!= null), (that.searchIndexKey!= null))) {
return false;
}
}
{
String lhsSearchIndexType;
lhsSearchIndexType = this.getSearchIndexType();
String rhsSearchIndexType;
rhsSearchIndexType = that.getSearchIndexType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "searchIndexType", lhsSearchIndexType), LocatorUtils.property(thatLocator, "searchIndexType", rhsSearchIndexType), lhsSearchIndexType, rhsSearchIndexType, (this.searchIndexType!= null), (that.searchIndexType!= null))) {
return false;
}
}
{
String lhsSearchIndexStatus;
lhsSearchIndexStatus = this.getSearchIndexStatus();
String rhsSearchIndexStatus;
rhsSearchIndexStatus = that.getSearchIndexStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "searchIndexStatus", lhsSearchIndexStatus), LocatorUtils.property(thatLocator, "searchIndexStatus", rhsSearchIndexStatus), lhsSearchIndexStatus, rhsSearchIndexStatus, (this.searchIndexStatus!= null), (that.searchIndexStatus!= null))) {
return false;
}
}
{
boolean lhsActive;
lhsActive = this.isActive();
boolean rhsActive;
rhsActive = that.isActive();
if (!strategy.equals(LocatorUtils.property(thisLocator, "active", lhsActive), LocatorUtils.property(thatLocator, "active", rhsActive), lhsActive, rhsActive, true, true)) {
return false;
}
}
{
SearchIndexStatistics lhsSearchIndexStatistics;
lhsSearchIndexStatistics = this.getSearchIndexStatistics();
SearchIndexStatistics rhsSearchIndexStatistics;
rhsSearchIndexStatistics = that.getSearchIndexStatistics();
if (!strategy.equals(LocatorUtils.property(thisLocator, "searchIndexStatistics", lhsSearchIndexStatistics), LocatorUtils.property(thatLocator, "searchIndexStatistics", rhsSearchIndexStatistics), lhsSearchIndexStatistics, rhsSearchIndexStatistics, (this.searchIndexStatistics!= null), (that.searchIndexStatistics!= null))) {
return false;
}
}
{
String lhsCreatedByUserId;
lhsCreatedByUserId = this.getCreatedByUserId();
String rhsCreatedByUserId;
rhsCreatedByUserId = that.getCreatedByUserId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "createdByUserId", lhsCreatedByUserId), LocatorUtils.property(thatLocator, "createdByUserId", rhsCreatedByUserId), lhsCreatedByUserId, rhsCreatedByUserId, (this.createdByUserId!= null), (that.createdByUserId!= null))) {
return false;
}
}
{
XMLGregorianCalendar lhsCreatedOn;
lhsCreatedOn = this.getCreatedOn();
XMLGregorianCalendar rhsCreatedOn;
rhsCreatedOn = that.getCreatedOn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "createdOn", lhsCreatedOn), LocatorUtils.property(thatLocator, "createdOn", rhsCreatedOn), lhsCreatedOn, rhsCreatedOn, (this.createdOn!= null), (that.createdOn!= null))) {
return false;
}
}
{
XMLGregorianCalendar lhsLastUpdatedOn;
lhsLastUpdatedOn = this.getLastUpdatedOn();
XMLGregorianCalendar rhsLastUpdatedOn;
rhsLastUpdatedOn = that.getLastUpdatedOn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lastUpdatedOn", lhsLastUpdatedOn), LocatorUtils.property(thatLocator, "lastUpdatedOn", rhsLastUpdatedOn), lhsLastUpdatedOn, rhsLastUpdatedOn, (this.lastUpdatedOn!= null), (that.lastUpdatedOn!= 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;
{
SearchIndexKey theSearchIndexKey;
theSearchIndexKey = this.getSearchIndexKey();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchIndexKey", theSearchIndexKey), currentHashCode, theSearchIndexKey, (this.searchIndexKey!= null));
}
{
String theSearchIndexType;
theSearchIndexType = this.getSearchIndexType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchIndexType", theSearchIndexType), currentHashCode, theSearchIndexType, (this.searchIndexType!= null));
}
{
String theSearchIndexStatus;
theSearchIndexStatus = this.getSearchIndexStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchIndexStatus", theSearchIndexStatus), currentHashCode, theSearchIndexStatus, (this.searchIndexStatus!= null));
}
{
boolean theActive;
theActive = this.isActive();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive, true);
}
{
SearchIndexStatistics theSearchIndexStatistics;
theSearchIndexStatistics = this.getSearchIndexStatistics();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchIndexStatistics", theSearchIndexStatistics), currentHashCode, theSearchIndexStatistics, (this.searchIndexStatistics!= null));
}
{
String theCreatedByUserId;
theCreatedByUserId = this.getCreatedByUserId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdByUserId", theCreatedByUserId), currentHashCode, theCreatedByUserId, (this.createdByUserId!= null));
}
{
XMLGregorianCalendar theCreatedOn;
theCreatedOn = this.getCreatedOn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdOn", theCreatedOn), currentHashCode, theCreatedOn, (this.createdOn!= null));
}
{
XMLGregorianCalendar theLastUpdatedOn;
theLastUpdatedOn = this.getLastUpdatedOn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastUpdatedOn", theLastUpdatedOn), currentHashCode, theLastUpdatedOn, (this.lastUpdatedOn!= 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 SearchIndex) {
final SearchIndex copy = ((SearchIndex) draftCopy);
{
Boolean searchIndexKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.searchIndexKey!= null));
if (searchIndexKeyShouldBeCopiedAndSet == Boolean.TRUE) {
SearchIndexKey sourceSearchIndexKey;
sourceSearchIndexKey = this.getSearchIndexKey();
SearchIndexKey copySearchIndexKey = ((SearchIndexKey) strategy.copy(LocatorUtils.property(locator, "searchIndexKey", sourceSearchIndexKey), sourceSearchIndexKey, (this.searchIndexKey!= null)));
copy.setSearchIndexKey(copySearchIndexKey);
} else {
if (searchIndexKeyShouldBeCopiedAndSet == Boolean.FALSE) {
copy.searchIndexKey = null;
}
}
}
{
Boolean searchIndexTypeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.searchIndexType!= null));
if (searchIndexTypeShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceSearchIndexType;
sourceSearchIndexType = this.getSearchIndexType();
String copySearchIndexType = ((String) strategy.copy(LocatorUtils.property(locator, "searchIndexType", sourceSearchIndexType), sourceSearchIndexType, (this.searchIndexType!= null)));
copy.setSearchIndexType(copySearchIndexType);
} else {
if (searchIndexTypeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.searchIndexType = null;
}
}
}
{
Boolean searchIndexStatusShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.searchIndexStatus!= null));
if (searchIndexStatusShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceSearchIndexStatus;
sourceSearchIndexStatus = this.getSearchIndexStatus();
String copySearchIndexStatus = ((String) strategy.copy(LocatorUtils.property(locator, "searchIndexStatus", sourceSearchIndexStatus), sourceSearchIndexStatus, (this.searchIndexStatus!= null)));
copy.setSearchIndexStatus(copySearchIndexStatus);
} else {
if (searchIndexStatusShouldBeCopiedAndSet == Boolean.FALSE) {
copy.searchIndexStatus = null;
}
}
}
{
Boolean activeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true);
if (activeShouldBeCopiedAndSet == Boolean.TRUE) {
boolean sourceActive;
sourceActive = this.isActive();
boolean copyActive = strategy.copy(LocatorUtils.property(locator, "active", sourceActive), sourceActive, true);
copy.setActive(copyActive);
} else {
if (activeShouldBeCopiedAndSet == Boolean.FALSE) {
}
}
}
{
Boolean searchIndexStatisticsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.searchIndexStatistics!= null));
if (searchIndexStatisticsShouldBeCopiedAndSet == Boolean.TRUE) {
SearchIndexStatistics sourceSearchIndexStatistics;
sourceSearchIndexStatistics = this.getSearchIndexStatistics();
SearchIndexStatistics copySearchIndexStatistics = ((SearchIndexStatistics) strategy.copy(LocatorUtils.property(locator, "searchIndexStatistics", sourceSearchIndexStatistics), sourceSearchIndexStatistics, (this.searchIndexStatistics!= null)));
copy.setSearchIndexStatistics(copySearchIndexStatistics);
} else {
if (searchIndexStatisticsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.searchIndexStatistics = null;
}
}
}
{
Boolean createdByUserIdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.createdByUserId!= null));
if (createdByUserIdShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceCreatedByUserId;
sourceCreatedByUserId = this.getCreatedByUserId();
String copyCreatedByUserId = ((String) strategy.copy(LocatorUtils.property(locator, "createdByUserId", sourceCreatedByUserId), sourceCreatedByUserId, (this.createdByUserId!= null)));
copy.setCreatedByUserId(copyCreatedByUserId);
} else {
if (createdByUserIdShouldBeCopiedAndSet == Boolean.FALSE) {
copy.createdByUserId = null;
}
}
}
{
Boolean createdOnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.createdOn!= null));
if (createdOnShouldBeCopiedAndSet == Boolean.TRUE) {
XMLGregorianCalendar sourceCreatedOn;
sourceCreatedOn = this.getCreatedOn();
XMLGregorianCalendar copyCreatedOn = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "createdOn", sourceCreatedOn), sourceCreatedOn, (this.createdOn!= null)));
copy.setCreatedOn(copyCreatedOn);
} else {
if (createdOnShouldBeCopiedAndSet == Boolean.FALSE) {
copy.createdOn = null;
}
}
}
{
Boolean lastUpdatedOnShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.lastUpdatedOn!= null));
if (lastUpdatedOnShouldBeCopiedAndSet == Boolean.TRUE) {
XMLGregorianCalendar sourceLastUpdatedOn;
sourceLastUpdatedOn = this.getLastUpdatedOn();
XMLGregorianCalendar copyLastUpdatedOn = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "lastUpdatedOn", sourceLastUpdatedOn), sourceLastUpdatedOn, (this.lastUpdatedOn!= null)));
copy.setLastUpdatedOn(copyLastUpdatedOn);
} else {
if (lastUpdatedOnShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lastUpdatedOn = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new SearchIndex();
}
}