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

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

Go to download

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).

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.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 searchIndexValidation complex type. * *

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

 * <complexType name="searchIndexValidation">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="searchIndexKey" type="{}searchIndexKey"/>
 *         <element name="validateStartTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="sizeCheckPassed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="spotCheckRandomPassed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="spotCheckMostRecentPassed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "searchIndexValidation", propOrder = { }) @XmlRootElement(name = "searchIndexValidation") public class SearchIndexValidation implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlElement(required = true) protected SearchIndexKey searchIndexKey; @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar validateStartTime; protected boolean sizeCheckPassed; protected boolean spotCheckRandomPassed; protected boolean spotCheckMostRecentPassed; /** * Default no-arg constructor * */ public SearchIndexValidation() { super(); } /** * Fully-initialising value constructor * */ public SearchIndexValidation(final SearchIndexKey searchIndexKey, final XMLGregorianCalendar validateStartTime, final boolean sizeCheckPassed, final boolean spotCheckRandomPassed, final boolean spotCheckMostRecentPassed) { this.searchIndexKey = searchIndexKey; this.validateStartTime = validateStartTime; this.sizeCheckPassed = sizeCheckPassed; this.spotCheckRandomPassed = spotCheckRandomPassed; this.spotCheckMostRecentPassed = spotCheckMostRecentPassed; } /** * 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 validateStartTime property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getValidateStartTime() { return validateStartTime; } /** * Sets the value of the validateStartTime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setValidateStartTime(XMLGregorianCalendar value) { this.validateStartTime = value; } /** * Gets the value of the sizeCheckPassed property. * */ public boolean isSizeCheckPassed() { return sizeCheckPassed; } /** * Sets the value of the sizeCheckPassed property. * */ public void setSizeCheckPassed(boolean value) { this.sizeCheckPassed = value; } /** * Gets the value of the spotCheckRandomPassed property. * */ public boolean isSpotCheckRandomPassed() { return spotCheckRandomPassed; } /** * Sets the value of the spotCheckRandomPassed property. * */ public void setSpotCheckRandomPassed(boolean value) { this.spotCheckRandomPassed = value; } /** * Gets the value of the spotCheckMostRecentPassed property. * */ public boolean isSpotCheckMostRecentPassed() { return spotCheckMostRecentPassed; } /** * Sets the value of the spotCheckMostRecentPassed property. * */ public void setSpotCheckMostRecentPassed(boolean value) { this.spotCheckMostRecentPassed = 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)); } { XMLGregorianCalendar theValidateStartTime; theValidateStartTime = this.getValidateStartTime(); strategy.appendField(locator, this, "validateStartTime", buffer, theValidateStartTime, (this.validateStartTime!= null)); } { boolean theSizeCheckPassed; theSizeCheckPassed = this.isSizeCheckPassed(); strategy.appendField(locator, this, "sizeCheckPassed", buffer, theSizeCheckPassed, true); } { boolean theSpotCheckRandomPassed; theSpotCheckRandomPassed = this.isSpotCheckRandomPassed(); strategy.appendField(locator, this, "spotCheckRandomPassed", buffer, theSpotCheckRandomPassed, true); } { boolean theSpotCheckMostRecentPassed; theSpotCheckMostRecentPassed = this.isSpotCheckMostRecentPassed(); strategy.appendField(locator, this, "spotCheckMostRecentPassed", buffer, theSpotCheckMostRecentPassed, true); } 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 SearchIndexValidation that = ((SearchIndexValidation) 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; } } { XMLGregorianCalendar lhsValidateStartTime; lhsValidateStartTime = this.getValidateStartTime(); XMLGregorianCalendar rhsValidateStartTime; rhsValidateStartTime = that.getValidateStartTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "validateStartTime", lhsValidateStartTime), LocatorUtils.property(thatLocator, "validateStartTime", rhsValidateStartTime), lhsValidateStartTime, rhsValidateStartTime, (this.validateStartTime!= null), (that.validateStartTime!= null))) { return false; } } { boolean lhsSizeCheckPassed; lhsSizeCheckPassed = this.isSizeCheckPassed(); boolean rhsSizeCheckPassed; rhsSizeCheckPassed = that.isSizeCheckPassed(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sizeCheckPassed", lhsSizeCheckPassed), LocatorUtils.property(thatLocator, "sizeCheckPassed", rhsSizeCheckPassed), lhsSizeCheckPassed, rhsSizeCheckPassed, true, true)) { return false; } } { boolean lhsSpotCheckRandomPassed; lhsSpotCheckRandomPassed = this.isSpotCheckRandomPassed(); boolean rhsSpotCheckRandomPassed; rhsSpotCheckRandomPassed = that.isSpotCheckRandomPassed(); if (!strategy.equals(LocatorUtils.property(thisLocator, "spotCheckRandomPassed", lhsSpotCheckRandomPassed), LocatorUtils.property(thatLocator, "spotCheckRandomPassed", rhsSpotCheckRandomPassed), lhsSpotCheckRandomPassed, rhsSpotCheckRandomPassed, true, true)) { return false; } } { boolean lhsSpotCheckMostRecentPassed; lhsSpotCheckMostRecentPassed = this.isSpotCheckMostRecentPassed(); boolean rhsSpotCheckMostRecentPassed; rhsSpotCheckMostRecentPassed = that.isSpotCheckMostRecentPassed(); if (!strategy.equals(LocatorUtils.property(thisLocator, "spotCheckMostRecentPassed", lhsSpotCheckMostRecentPassed), LocatorUtils.property(thatLocator, "spotCheckMostRecentPassed", rhsSpotCheckMostRecentPassed), lhsSpotCheckMostRecentPassed, rhsSpotCheckMostRecentPassed, true, true)) { 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)); } { XMLGregorianCalendar theValidateStartTime; theValidateStartTime = this.getValidateStartTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "validateStartTime", theValidateStartTime), currentHashCode, theValidateStartTime, (this.validateStartTime!= null)); } { boolean theSizeCheckPassed; theSizeCheckPassed = this.isSizeCheckPassed(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sizeCheckPassed", theSizeCheckPassed), currentHashCode, theSizeCheckPassed, true); } { boolean theSpotCheckRandomPassed; theSpotCheckRandomPassed = this.isSpotCheckRandomPassed(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "spotCheckRandomPassed", theSpotCheckRandomPassed), currentHashCode, theSpotCheckRandomPassed, true); } { boolean theSpotCheckMostRecentPassed; theSpotCheckMostRecentPassed = this.isSpotCheckMostRecentPassed(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "spotCheckMostRecentPassed", theSpotCheckMostRecentPassed), currentHashCode, theSpotCheckMostRecentPassed, true); } 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 SearchIndexValidation) { final SearchIndexValidation copy = ((SearchIndexValidation) 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 validateStartTimeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.validateStartTime!= null)); if (validateStartTimeShouldBeCopiedAndSet == Boolean.TRUE) { XMLGregorianCalendar sourceValidateStartTime; sourceValidateStartTime = this.getValidateStartTime(); XMLGregorianCalendar copyValidateStartTime = ((XMLGregorianCalendar) strategy.copy(LocatorUtils.property(locator, "validateStartTime", sourceValidateStartTime), sourceValidateStartTime, (this.validateStartTime!= null))); copy.setValidateStartTime(copyValidateStartTime); } else { if (validateStartTimeShouldBeCopiedAndSet == Boolean.FALSE) { copy.validateStartTime = null; } } } { Boolean sizeCheckPassedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true); if (sizeCheckPassedShouldBeCopiedAndSet == Boolean.TRUE) { boolean sourceSizeCheckPassed; sourceSizeCheckPassed = this.isSizeCheckPassed(); boolean copySizeCheckPassed = strategy.copy(LocatorUtils.property(locator, "sizeCheckPassed", sourceSizeCheckPassed), sourceSizeCheckPassed, true); copy.setSizeCheckPassed(copySizeCheckPassed); } else { if (sizeCheckPassedShouldBeCopiedAndSet == Boolean.FALSE) { } } } { Boolean spotCheckRandomPassedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true); if (spotCheckRandomPassedShouldBeCopiedAndSet == Boolean.TRUE) { boolean sourceSpotCheckRandomPassed; sourceSpotCheckRandomPassed = this.isSpotCheckRandomPassed(); boolean copySpotCheckRandomPassed = strategy.copy(LocatorUtils.property(locator, "spotCheckRandomPassed", sourceSpotCheckRandomPassed), sourceSpotCheckRandomPassed, true); copy.setSpotCheckRandomPassed(copySpotCheckRandomPassed); } else { if (spotCheckRandomPassedShouldBeCopiedAndSet == Boolean.FALSE) { } } } { Boolean spotCheckMostRecentPassedShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true); if (spotCheckMostRecentPassedShouldBeCopiedAndSet == Boolean.TRUE) { boolean sourceSpotCheckMostRecentPassed; sourceSpotCheckMostRecentPassed = this.isSpotCheckMostRecentPassed(); boolean copySpotCheckMostRecentPassed = strategy.copy(LocatorUtils.property(locator, "spotCheckMostRecentPassed", sourceSpotCheckMostRecentPassed), sourceSpotCheckMostRecentPassed, true); copy.setSpotCheckMostRecentPassed(copySpotCheckMostRecentPassed); } else { if (spotCheckMostRecentPassedShouldBeCopiedAndSet == Boolean.FALSE) { } } } } return draftCopy; } public Object createNewInstance() { return new SearchIndexValidation(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy