org.finra.herd.model.api.xml.IndexSearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of herd-model-api Show documentation
Show all versions of herd-model-api Show documentation
This project contains the model API classes. This contains the herd XSD and generates Java POJO's from them. These classes are used for incoming
and outgoing calls into the system (e.g. via REST).
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.XmlType;
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 indexSearchResult complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="indexSearchResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="indexSearchResultType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="searchIndexKey" type="{}searchIndexKey" minOccurs="0"/>
* <element name="indexSearchResultKey" type="{}indexSearchResultKey"/>
* <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="shortDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="highlight" type="{}highlight" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "indexSearchResult", propOrder = {
})
@XmlRootElement(name = "indexSearchResult")
public class IndexSearchResult implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@XmlElement(required = true)
protected String indexSearchResultType;
protected SearchIndexKey searchIndexKey;
@XmlElement(required = true)
protected IndexSearchResultKey indexSearchResultKey;
protected String displayName;
protected String shortDescription;
protected Highlight highlight;
/**
* Default no-arg constructor
*
*/
public IndexSearchResult() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public IndexSearchResult(final String indexSearchResultType, final SearchIndexKey searchIndexKey, final IndexSearchResultKey indexSearchResultKey, final String displayName, final String shortDescription, final Highlight highlight) {
this.indexSearchResultType = indexSearchResultType;
this.searchIndexKey = searchIndexKey;
this.indexSearchResultKey = indexSearchResultKey;
this.displayName = displayName;
this.shortDescription = shortDescription;
this.highlight = highlight;
}
/**
* Gets the value of the indexSearchResultType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIndexSearchResultType() {
return indexSearchResultType;
}
/**
* Sets the value of the indexSearchResultType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIndexSearchResultType(String value) {
this.indexSearchResultType = value;
}
/**
* 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 indexSearchResultKey property.
*
* @return
* possible object is
* {@link IndexSearchResultKey }
*
*/
public IndexSearchResultKey getIndexSearchResultKey() {
return indexSearchResultKey;
}
/**
* Sets the value of the indexSearchResultKey property.
*
* @param value
* allowed object is
* {@link IndexSearchResultKey }
*
*/
public void setIndexSearchResultKey(IndexSearchResultKey value) {
this.indexSearchResultKey = value;
}
/**
* Gets the value of the displayName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the value of the displayName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayName(String value) {
this.displayName = value;
}
/**
* Gets the value of the shortDescription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getShortDescription() {
return shortDescription;
}
/**
* Sets the value of the shortDescription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setShortDescription(String value) {
this.shortDescription = value;
}
/**
* Gets the value of the highlight property.
*
* @return
* possible object is
* {@link Highlight }
*
*/
public Highlight getHighlight() {
return highlight;
}
/**
* Sets the value of the highlight property.
*
* @param value
* allowed object is
* {@link Highlight }
*
*/
public void setHighlight(Highlight value) {
this.highlight = 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) {
{
String theIndexSearchResultType;
theIndexSearchResultType = this.getIndexSearchResultType();
strategy.appendField(locator, this, "indexSearchResultType", buffer, theIndexSearchResultType, (this.indexSearchResultType!= null));
}
{
SearchIndexKey theSearchIndexKey;
theSearchIndexKey = this.getSearchIndexKey();
strategy.appendField(locator, this, "searchIndexKey", buffer, theSearchIndexKey, (this.searchIndexKey!= null));
}
{
IndexSearchResultKey theIndexSearchResultKey;
theIndexSearchResultKey = this.getIndexSearchResultKey();
strategy.appendField(locator, this, "indexSearchResultKey", buffer, theIndexSearchResultKey, (this.indexSearchResultKey!= null));
}
{
String theDisplayName;
theDisplayName = this.getDisplayName();
strategy.appendField(locator, this, "displayName", buffer, theDisplayName, (this.displayName!= null));
}
{
String theShortDescription;
theShortDescription = this.getShortDescription();
strategy.appendField(locator, this, "shortDescription", buffer, theShortDescription, (this.shortDescription!= null));
}
{
Highlight theHighlight;
theHighlight = this.getHighlight();
strategy.appendField(locator, this, "highlight", buffer, theHighlight, (this.highlight!= 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 IndexSearchResult that = ((IndexSearchResult) object);
{
String lhsIndexSearchResultType;
lhsIndexSearchResultType = this.getIndexSearchResultType();
String rhsIndexSearchResultType;
rhsIndexSearchResultType = that.getIndexSearchResultType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "indexSearchResultType", lhsIndexSearchResultType), LocatorUtils.property(thatLocator, "indexSearchResultType", rhsIndexSearchResultType), lhsIndexSearchResultType, rhsIndexSearchResultType, (this.indexSearchResultType!= null), (that.indexSearchResultType!= null))) {
return false;
}
}
{
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;
}
}
{
IndexSearchResultKey lhsIndexSearchResultKey;
lhsIndexSearchResultKey = this.getIndexSearchResultKey();
IndexSearchResultKey rhsIndexSearchResultKey;
rhsIndexSearchResultKey = that.getIndexSearchResultKey();
if (!strategy.equals(LocatorUtils.property(thisLocator, "indexSearchResultKey", lhsIndexSearchResultKey), LocatorUtils.property(thatLocator, "indexSearchResultKey", rhsIndexSearchResultKey), lhsIndexSearchResultKey, rhsIndexSearchResultKey, (this.indexSearchResultKey!= null), (that.indexSearchResultKey!= null))) {
return false;
}
}
{
String lhsDisplayName;
lhsDisplayName = this.getDisplayName();
String rhsDisplayName;
rhsDisplayName = that.getDisplayName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "displayName", lhsDisplayName), LocatorUtils.property(thatLocator, "displayName", rhsDisplayName), lhsDisplayName, rhsDisplayName, (this.displayName!= null), (that.displayName!= null))) {
return false;
}
}
{
String lhsShortDescription;
lhsShortDescription = this.getShortDescription();
String rhsShortDescription;
rhsShortDescription = that.getShortDescription();
if (!strategy.equals(LocatorUtils.property(thisLocator, "shortDescription", lhsShortDescription), LocatorUtils.property(thatLocator, "shortDescription", rhsShortDescription), lhsShortDescription, rhsShortDescription, (this.shortDescription!= null), (that.shortDescription!= null))) {
return false;
}
}
{
Highlight lhsHighlight;
lhsHighlight = this.getHighlight();
Highlight rhsHighlight;
rhsHighlight = that.getHighlight();
if (!strategy.equals(LocatorUtils.property(thisLocator, "highlight", lhsHighlight), LocatorUtils.property(thatLocator, "highlight", rhsHighlight), lhsHighlight, rhsHighlight, (this.highlight!= null), (that.highlight!= 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;
{
String theIndexSearchResultType;
theIndexSearchResultType = this.getIndexSearchResultType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexSearchResultType", theIndexSearchResultType), currentHashCode, theIndexSearchResultType, (this.indexSearchResultType!= null));
}
{
SearchIndexKey theSearchIndexKey;
theSearchIndexKey = this.getSearchIndexKey();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchIndexKey", theSearchIndexKey), currentHashCode, theSearchIndexKey, (this.searchIndexKey!= null));
}
{
IndexSearchResultKey theIndexSearchResultKey;
theIndexSearchResultKey = this.getIndexSearchResultKey();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indexSearchResultKey", theIndexSearchResultKey), currentHashCode, theIndexSearchResultKey, (this.indexSearchResultKey!= null));
}
{
String theDisplayName;
theDisplayName = this.getDisplayName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "displayName", theDisplayName), currentHashCode, theDisplayName, (this.displayName!= null));
}
{
String theShortDescription;
theShortDescription = this.getShortDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "shortDescription", theShortDescription), currentHashCode, theShortDescription, (this.shortDescription!= null));
}
{
Highlight theHighlight;
theHighlight = this.getHighlight();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "highlight", theHighlight), currentHashCode, theHighlight, (this.highlight!= 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 IndexSearchResult) {
final IndexSearchResult copy = ((IndexSearchResult) draftCopy);
{
Boolean indexSearchResultTypeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexSearchResultType!= null));
if (indexSearchResultTypeShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceIndexSearchResultType;
sourceIndexSearchResultType = this.getIndexSearchResultType();
String copyIndexSearchResultType = ((String) strategy.copy(LocatorUtils.property(locator, "indexSearchResultType", sourceIndexSearchResultType), sourceIndexSearchResultType, (this.indexSearchResultType!= null)));
copy.setIndexSearchResultType(copyIndexSearchResultType);
} else {
if (indexSearchResultTypeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.indexSearchResultType = null;
}
}
}
{
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 indexSearchResultKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.indexSearchResultKey!= null));
if (indexSearchResultKeyShouldBeCopiedAndSet == Boolean.TRUE) {
IndexSearchResultKey sourceIndexSearchResultKey;
sourceIndexSearchResultKey = this.getIndexSearchResultKey();
IndexSearchResultKey copyIndexSearchResultKey = ((IndexSearchResultKey) strategy.copy(LocatorUtils.property(locator, "indexSearchResultKey", sourceIndexSearchResultKey), sourceIndexSearchResultKey, (this.indexSearchResultKey!= null)));
copy.setIndexSearchResultKey(copyIndexSearchResultKey);
} else {
if (indexSearchResultKeyShouldBeCopiedAndSet == Boolean.FALSE) {
copy.indexSearchResultKey = null;
}
}
}
{
Boolean displayNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.displayName!= null));
if (displayNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceDisplayName;
sourceDisplayName = this.getDisplayName();
String copyDisplayName = ((String) strategy.copy(LocatorUtils.property(locator, "displayName", sourceDisplayName), sourceDisplayName, (this.displayName!= null)));
copy.setDisplayName(copyDisplayName);
} else {
if (displayNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.displayName = null;
}
}
}
{
Boolean shortDescriptionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.shortDescription!= null));
if (shortDescriptionShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceShortDescription;
sourceShortDescription = this.getShortDescription();
String copyShortDescription = ((String) strategy.copy(LocatorUtils.property(locator, "shortDescription", sourceShortDescription), sourceShortDescription, (this.shortDescription!= null)));
copy.setShortDescription(copyShortDescription);
} else {
if (shortDescriptionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.shortDescription = null;
}
}
}
{
Boolean highlightShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.highlight!= null));
if (highlightShouldBeCopiedAndSet == Boolean.TRUE) {
Highlight sourceHighlight;
sourceHighlight = this.getHighlight();
Highlight copyHighlight = ((Highlight) strategy.copy(LocatorUtils.property(locator, "highlight", sourceHighlight), sourceHighlight, (this.highlight!= null)));
copy.setHighlight(copyHighlight);
} else {
if (highlightShouldBeCopiedAndSet == Boolean.FALSE) {
copy.highlight = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new IndexSearchResult();
}
}