org.finra.herd.model.api.xml.BusinessObjectDataAvailabilityCollectionResponse Maven / Gradle / Ivy
package org.finra.herd.model.api.xml;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
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 businessObjectDataAvailabilityCollectionResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="businessObjectDataAvailabilityCollectionResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="businessObjectDataAvailabilityResponses" type="{}businessObjectDataAvailabilityResponses"/>
* <element name="isAllDataAvailable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* <element name="isAllDataNotAvailable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "businessObjectDataAvailabilityCollectionResponse", propOrder = {
})
@XmlRootElement(name = "businessObjectDataAvailabilityCollectionResponse")
public class BusinessObjectDataAvailabilityCollectionResponse implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
@XmlElementWrapper(required = true)
@XmlElement(name = "businessObjectDataAvailability")
protected List businessObjectDataAvailabilityResponses;
protected boolean isAllDataAvailable;
protected boolean isAllDataNotAvailable;
/**
* Default no-arg constructor
*
*/
public BusinessObjectDataAvailabilityCollectionResponse() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public BusinessObjectDataAvailabilityCollectionResponse(final List businessObjectDataAvailabilityResponses, final boolean isAllDataAvailable, final boolean isAllDataNotAvailable) {
this.businessObjectDataAvailabilityResponses = businessObjectDataAvailabilityResponses;
this.isAllDataAvailable = isAllDataAvailable;
this.isAllDataNotAvailable = isAllDataNotAvailable;
}
/**
* Gets the value of the isAllDataAvailable property.
*
*/
public boolean isIsAllDataAvailable() {
return isAllDataAvailable;
}
/**
* Sets the value of the isAllDataAvailable property.
*
*/
public void setIsAllDataAvailable(boolean value) {
this.isAllDataAvailable = value;
}
/**
* Gets the value of the isAllDataNotAvailable property.
*
*/
public boolean isIsAllDataNotAvailable() {
return isAllDataNotAvailable;
}
/**
* Sets the value of the isAllDataNotAvailable property.
*
*/
public void setIsAllDataNotAvailable(boolean value) {
this.isAllDataNotAvailable = value;
}
public List getBusinessObjectDataAvailabilityResponses() {
return businessObjectDataAvailabilityResponses;
}
public void setBusinessObjectDataAvailabilityResponses(List businessObjectDataAvailabilityResponses) {
this.businessObjectDataAvailabilityResponses = businessObjectDataAvailabilityResponses;
}
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) {
{
List theBusinessObjectDataAvailabilityResponses;
theBusinessObjectDataAvailabilityResponses = ((this.businessObjectDataAvailabilityResponses!= null)?this.getBusinessObjectDataAvailabilityResponses():null);
strategy.appendField(locator, this, "businessObjectDataAvailabilityResponses", buffer, theBusinessObjectDataAvailabilityResponses, (this.businessObjectDataAvailabilityResponses!= null));
}
{
boolean theIsAllDataAvailable;
theIsAllDataAvailable = this.isIsAllDataAvailable();
strategy.appendField(locator, this, "isAllDataAvailable", buffer, theIsAllDataAvailable, true);
}
{
boolean theIsAllDataNotAvailable;
theIsAllDataNotAvailable = this.isIsAllDataNotAvailable();
strategy.appendField(locator, this, "isAllDataNotAvailable", buffer, theIsAllDataNotAvailable, 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 BusinessObjectDataAvailabilityCollectionResponse that = ((BusinessObjectDataAvailabilityCollectionResponse) object);
{
List lhsBusinessObjectDataAvailabilityResponses;
lhsBusinessObjectDataAvailabilityResponses = ((this.businessObjectDataAvailabilityResponses!= null)?this.getBusinessObjectDataAvailabilityResponses():null);
List rhsBusinessObjectDataAvailabilityResponses;
rhsBusinessObjectDataAvailabilityResponses = ((that.businessObjectDataAvailabilityResponses!= null)?that.getBusinessObjectDataAvailabilityResponses():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDataAvailabilityResponses", lhsBusinessObjectDataAvailabilityResponses), LocatorUtils.property(thatLocator, "businessObjectDataAvailabilityResponses", rhsBusinessObjectDataAvailabilityResponses), lhsBusinessObjectDataAvailabilityResponses, rhsBusinessObjectDataAvailabilityResponses, (this.businessObjectDataAvailabilityResponses!= null), (that.businessObjectDataAvailabilityResponses!= null))) {
return false;
}
}
{
boolean lhsIsAllDataAvailable;
lhsIsAllDataAvailable = this.isIsAllDataAvailable();
boolean rhsIsAllDataAvailable;
rhsIsAllDataAvailable = that.isIsAllDataAvailable();
if (!strategy.equals(LocatorUtils.property(thisLocator, "isAllDataAvailable", lhsIsAllDataAvailable), LocatorUtils.property(thatLocator, "isAllDataAvailable", rhsIsAllDataAvailable), lhsIsAllDataAvailable, rhsIsAllDataAvailable, true, true)) {
return false;
}
}
{
boolean lhsIsAllDataNotAvailable;
lhsIsAllDataNotAvailable = this.isIsAllDataNotAvailable();
boolean rhsIsAllDataNotAvailable;
rhsIsAllDataNotAvailable = that.isIsAllDataNotAvailable();
if (!strategy.equals(LocatorUtils.property(thisLocator, "isAllDataNotAvailable", lhsIsAllDataNotAvailable), LocatorUtils.property(thatLocator, "isAllDataNotAvailable", rhsIsAllDataNotAvailable), lhsIsAllDataNotAvailable, rhsIsAllDataNotAvailable, 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;
{
List theBusinessObjectDataAvailabilityResponses;
theBusinessObjectDataAvailabilityResponses = ((this.businessObjectDataAvailabilityResponses!= null)?this.getBusinessObjectDataAvailabilityResponses():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectDataAvailabilityResponses", theBusinessObjectDataAvailabilityResponses), currentHashCode, theBusinessObjectDataAvailabilityResponses, (this.businessObjectDataAvailabilityResponses!= null));
}
{
boolean theIsAllDataAvailable;
theIsAllDataAvailable = this.isIsAllDataAvailable();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isAllDataAvailable", theIsAllDataAvailable), currentHashCode, theIsAllDataAvailable, true);
}
{
boolean theIsAllDataNotAvailable;
theIsAllDataNotAvailable = this.isIsAllDataNotAvailable();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isAllDataNotAvailable", theIsAllDataNotAvailable), currentHashCode, theIsAllDataNotAvailable, 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 BusinessObjectDataAvailabilityCollectionResponse) {
final BusinessObjectDataAvailabilityCollectionResponse copy = ((BusinessObjectDataAvailabilityCollectionResponse) draftCopy);
{
Boolean businessObjectDataAvailabilityResponsesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.businessObjectDataAvailabilityResponses!= null));
if (businessObjectDataAvailabilityResponsesShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceBusinessObjectDataAvailabilityResponses;
sourceBusinessObjectDataAvailabilityResponses = ((this.businessObjectDataAvailabilityResponses!= null)?this.getBusinessObjectDataAvailabilityResponses():null);
@SuppressWarnings("unchecked")
List copyBusinessObjectDataAvailabilityResponses = ((List ) strategy.copy(LocatorUtils.property(locator, "businessObjectDataAvailabilityResponses", sourceBusinessObjectDataAvailabilityResponses), sourceBusinessObjectDataAvailabilityResponses, (this.businessObjectDataAvailabilityResponses!= null)));
copy.businessObjectDataAvailabilityResponses = null;
if (copyBusinessObjectDataAvailabilityResponses!= null) {
copy.setBusinessObjectDataAvailabilityResponses(copyBusinessObjectDataAvailabilityResponses);
}
} else {
if (businessObjectDataAvailabilityResponsesShouldBeCopiedAndSet == Boolean.FALSE) {
copy.businessObjectDataAvailabilityResponses = null;
}
}
}
{
Boolean isAllDataAvailableShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true);
if (isAllDataAvailableShouldBeCopiedAndSet == Boolean.TRUE) {
boolean sourceIsAllDataAvailable;
sourceIsAllDataAvailable = this.isIsAllDataAvailable();
boolean copyIsAllDataAvailable = strategy.copy(LocatorUtils.property(locator, "isAllDataAvailable", sourceIsAllDataAvailable), sourceIsAllDataAvailable, true);
copy.setIsAllDataAvailable(copyIsAllDataAvailable);
} else {
if (isAllDataAvailableShouldBeCopiedAndSet == Boolean.FALSE) {
}
}
}
{
Boolean isAllDataNotAvailableShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, true);
if (isAllDataNotAvailableShouldBeCopiedAndSet == Boolean.TRUE) {
boolean sourceIsAllDataNotAvailable;
sourceIsAllDataNotAvailable = this.isIsAllDataNotAvailable();
boolean copyIsAllDataNotAvailable = strategy.copy(LocatorUtils.property(locator, "isAllDataNotAvailable", sourceIsAllDataNotAvailable), sourceIsAllDataNotAvailable, true);
copy.setIsAllDataNotAvailable(copyIsAllDataNotAvailable);
} else {
if (isAllDataNotAvailableShouldBeCopiedAndSet == Boolean.FALSE) {
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new BusinessObjectDataAvailabilityCollectionResponse();
}
}