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

org.finra.herd.model.api.xml.UploadSingleInitiationRequest 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 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 uploadSingleInitiationRequest complex type. * *

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

 * <complexType name="uploadSingleInitiationRequest">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="sourceBusinessObjectFormatKey" type="{}businessObjectFormatKey"/>
 *         <element name="targetBusinessObjectFormatKey" type="{}businessObjectFormatKey"/>
 *         <element name="businessObjectDataAttributes" type="{}attributes" minOccurs="0"/>
 *         <element name="file" type="{}file"/>
 *         <element name="targetStorageName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "uploadSingleInitiationRequest", propOrder = { }) @XmlRootElement(name = "uploadSingleInitiationRequest") public class UploadSingleInitiationRequest implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; @XmlElement(required = true) protected BusinessObjectFormatKey sourceBusinessObjectFormatKey; @XmlElement(required = true) protected BusinessObjectFormatKey targetBusinessObjectFormatKey; @XmlElementWrapper @XmlElement(name = "attribute") protected List businessObjectDataAttributes; @XmlElement(required = true) protected File file; protected String targetStorageName; /** * Default no-arg constructor * */ public UploadSingleInitiationRequest() { super(); } /** * Fully-initialising value constructor * */ public UploadSingleInitiationRequest(final BusinessObjectFormatKey sourceBusinessObjectFormatKey, final BusinessObjectFormatKey targetBusinessObjectFormatKey, final List businessObjectDataAttributes, final File file, final String targetStorageName) { this.sourceBusinessObjectFormatKey = sourceBusinessObjectFormatKey; this.targetBusinessObjectFormatKey = targetBusinessObjectFormatKey; this.businessObjectDataAttributes = businessObjectDataAttributes; this.file = file; this.targetStorageName = targetStorageName; } /** * Gets the value of the sourceBusinessObjectFormatKey property. * * @return * possible object is * {@link BusinessObjectFormatKey } * */ public BusinessObjectFormatKey getSourceBusinessObjectFormatKey() { return sourceBusinessObjectFormatKey; } /** * Sets the value of the sourceBusinessObjectFormatKey property. * * @param value * allowed object is * {@link BusinessObjectFormatKey } * */ public void setSourceBusinessObjectFormatKey(BusinessObjectFormatKey value) { this.sourceBusinessObjectFormatKey = value; } /** * Gets the value of the targetBusinessObjectFormatKey property. * * @return * possible object is * {@link BusinessObjectFormatKey } * */ public BusinessObjectFormatKey getTargetBusinessObjectFormatKey() { return targetBusinessObjectFormatKey; } /** * Sets the value of the targetBusinessObjectFormatKey property. * * @param value * allowed object is * {@link BusinessObjectFormatKey } * */ public void setTargetBusinessObjectFormatKey(BusinessObjectFormatKey value) { this.targetBusinessObjectFormatKey = value; } /** * Gets the value of the file property. * * @return * possible object is * {@link File } * */ public File getFile() { return file; } /** * Sets the value of the file property. * * @param value * allowed object is * {@link File } * */ public void setFile(File value) { this.file = value; } /** * Gets the value of the targetStorageName property. * * @return * possible object is * {@link String } * */ public String getTargetStorageName() { return targetStorageName; } /** * Sets the value of the targetStorageName property. * * @param value * allowed object is * {@link String } * */ public void setTargetStorageName(String value) { this.targetStorageName = value; } public List getBusinessObjectDataAttributes() { return businessObjectDataAttributes; } public void setBusinessObjectDataAttributes(List businessObjectDataAttributes) { this.businessObjectDataAttributes = businessObjectDataAttributes; } 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) { { BusinessObjectFormatKey theSourceBusinessObjectFormatKey; theSourceBusinessObjectFormatKey = this.getSourceBusinessObjectFormatKey(); strategy.appendField(locator, this, "sourceBusinessObjectFormatKey", buffer, theSourceBusinessObjectFormatKey, (this.sourceBusinessObjectFormatKey!= null)); } { BusinessObjectFormatKey theTargetBusinessObjectFormatKey; theTargetBusinessObjectFormatKey = this.getTargetBusinessObjectFormatKey(); strategy.appendField(locator, this, "targetBusinessObjectFormatKey", buffer, theTargetBusinessObjectFormatKey, (this.targetBusinessObjectFormatKey!= null)); } { List theBusinessObjectDataAttributes; theBusinessObjectDataAttributes = ((this.businessObjectDataAttributes!= null)?this.getBusinessObjectDataAttributes():null); strategy.appendField(locator, this, "businessObjectDataAttributes", buffer, theBusinessObjectDataAttributes, (this.businessObjectDataAttributes!= null)); } { File theFile; theFile = this.getFile(); strategy.appendField(locator, this, "file", buffer, theFile, (this.file!= null)); } { String theTargetStorageName; theTargetStorageName = this.getTargetStorageName(); strategy.appendField(locator, this, "targetStorageName", buffer, theTargetStorageName, (this.targetStorageName!= 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 UploadSingleInitiationRequest that = ((UploadSingleInitiationRequest) object); { BusinessObjectFormatKey lhsSourceBusinessObjectFormatKey; lhsSourceBusinessObjectFormatKey = this.getSourceBusinessObjectFormatKey(); BusinessObjectFormatKey rhsSourceBusinessObjectFormatKey; rhsSourceBusinessObjectFormatKey = that.getSourceBusinessObjectFormatKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sourceBusinessObjectFormatKey", lhsSourceBusinessObjectFormatKey), LocatorUtils.property(thatLocator, "sourceBusinessObjectFormatKey", rhsSourceBusinessObjectFormatKey), lhsSourceBusinessObjectFormatKey, rhsSourceBusinessObjectFormatKey, (this.sourceBusinessObjectFormatKey!= null), (that.sourceBusinessObjectFormatKey!= null))) { return false; } } { BusinessObjectFormatKey lhsTargetBusinessObjectFormatKey; lhsTargetBusinessObjectFormatKey = this.getTargetBusinessObjectFormatKey(); BusinessObjectFormatKey rhsTargetBusinessObjectFormatKey; rhsTargetBusinessObjectFormatKey = that.getTargetBusinessObjectFormatKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "targetBusinessObjectFormatKey", lhsTargetBusinessObjectFormatKey), LocatorUtils.property(thatLocator, "targetBusinessObjectFormatKey", rhsTargetBusinessObjectFormatKey), lhsTargetBusinessObjectFormatKey, rhsTargetBusinessObjectFormatKey, (this.targetBusinessObjectFormatKey!= null), (that.targetBusinessObjectFormatKey!= null))) { return false; } } { List lhsBusinessObjectDataAttributes; lhsBusinessObjectDataAttributes = ((this.businessObjectDataAttributes!= null)?this.getBusinessObjectDataAttributes():null); List rhsBusinessObjectDataAttributes; rhsBusinessObjectDataAttributes = ((that.businessObjectDataAttributes!= null)?that.getBusinessObjectDataAttributes():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDataAttributes", lhsBusinessObjectDataAttributes), LocatorUtils.property(thatLocator, "businessObjectDataAttributes", rhsBusinessObjectDataAttributes), lhsBusinessObjectDataAttributes, rhsBusinessObjectDataAttributes, (this.businessObjectDataAttributes!= null), (that.businessObjectDataAttributes!= null))) { return false; } } { File lhsFile; lhsFile = this.getFile(); File rhsFile; rhsFile = that.getFile(); if (!strategy.equals(LocatorUtils.property(thisLocator, "file", lhsFile), LocatorUtils.property(thatLocator, "file", rhsFile), lhsFile, rhsFile, (this.file!= null), (that.file!= null))) { return false; } } { String lhsTargetStorageName; lhsTargetStorageName = this.getTargetStorageName(); String rhsTargetStorageName; rhsTargetStorageName = that.getTargetStorageName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "targetStorageName", lhsTargetStorageName), LocatorUtils.property(thatLocator, "targetStorageName", rhsTargetStorageName), lhsTargetStorageName, rhsTargetStorageName, (this.targetStorageName!= null), (that.targetStorageName!= 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; { BusinessObjectFormatKey theSourceBusinessObjectFormatKey; theSourceBusinessObjectFormatKey = this.getSourceBusinessObjectFormatKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sourceBusinessObjectFormatKey", theSourceBusinessObjectFormatKey), currentHashCode, theSourceBusinessObjectFormatKey, (this.sourceBusinessObjectFormatKey!= null)); } { BusinessObjectFormatKey theTargetBusinessObjectFormatKey; theTargetBusinessObjectFormatKey = this.getTargetBusinessObjectFormatKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetBusinessObjectFormatKey", theTargetBusinessObjectFormatKey), currentHashCode, theTargetBusinessObjectFormatKey, (this.targetBusinessObjectFormatKey!= null)); } { List theBusinessObjectDataAttributes; theBusinessObjectDataAttributes = ((this.businessObjectDataAttributes!= null)?this.getBusinessObjectDataAttributes():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectDataAttributes", theBusinessObjectDataAttributes), currentHashCode, theBusinessObjectDataAttributes, (this.businessObjectDataAttributes!= null)); } { File theFile; theFile = this.getFile(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "file", theFile), currentHashCode, theFile, (this.file!= null)); } { String theTargetStorageName; theTargetStorageName = this.getTargetStorageName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetStorageName", theTargetStorageName), currentHashCode, theTargetStorageName, (this.targetStorageName!= 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 UploadSingleInitiationRequest) { final UploadSingleInitiationRequest copy = ((UploadSingleInitiationRequest) draftCopy); { Boolean sourceBusinessObjectFormatKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.sourceBusinessObjectFormatKey!= null)); if (sourceBusinessObjectFormatKeyShouldBeCopiedAndSet == Boolean.TRUE) { BusinessObjectFormatKey sourceSourceBusinessObjectFormatKey; sourceSourceBusinessObjectFormatKey = this.getSourceBusinessObjectFormatKey(); BusinessObjectFormatKey copySourceBusinessObjectFormatKey = ((BusinessObjectFormatKey) strategy.copy(LocatorUtils.property(locator, "sourceBusinessObjectFormatKey", sourceSourceBusinessObjectFormatKey), sourceSourceBusinessObjectFormatKey, (this.sourceBusinessObjectFormatKey!= null))); copy.setSourceBusinessObjectFormatKey(copySourceBusinessObjectFormatKey); } else { if (sourceBusinessObjectFormatKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.sourceBusinessObjectFormatKey = null; } } } { Boolean targetBusinessObjectFormatKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetBusinessObjectFormatKey!= null)); if (targetBusinessObjectFormatKeyShouldBeCopiedAndSet == Boolean.TRUE) { BusinessObjectFormatKey sourceTargetBusinessObjectFormatKey; sourceTargetBusinessObjectFormatKey = this.getTargetBusinessObjectFormatKey(); BusinessObjectFormatKey copyTargetBusinessObjectFormatKey = ((BusinessObjectFormatKey) strategy.copy(LocatorUtils.property(locator, "targetBusinessObjectFormatKey", sourceTargetBusinessObjectFormatKey), sourceTargetBusinessObjectFormatKey, (this.targetBusinessObjectFormatKey!= null))); copy.setTargetBusinessObjectFormatKey(copyTargetBusinessObjectFormatKey); } else { if (targetBusinessObjectFormatKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.targetBusinessObjectFormatKey = null; } } } { Boolean businessObjectDataAttributesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.businessObjectDataAttributes!= null)); if (businessObjectDataAttributesShouldBeCopiedAndSet == Boolean.TRUE) { List sourceBusinessObjectDataAttributes; sourceBusinessObjectDataAttributes = ((this.businessObjectDataAttributes!= null)?this.getBusinessObjectDataAttributes():null); @SuppressWarnings("unchecked") List copyBusinessObjectDataAttributes = ((List ) strategy.copy(LocatorUtils.property(locator, "businessObjectDataAttributes", sourceBusinessObjectDataAttributes), sourceBusinessObjectDataAttributes, (this.businessObjectDataAttributes!= null))); copy.businessObjectDataAttributes = null; if (copyBusinessObjectDataAttributes!= null) { copy.setBusinessObjectDataAttributes(copyBusinessObjectDataAttributes); } } else { if (businessObjectDataAttributesShouldBeCopiedAndSet == Boolean.FALSE) { copy.businessObjectDataAttributes = null; } } } { Boolean fileShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.file!= null)); if (fileShouldBeCopiedAndSet == Boolean.TRUE) { File sourceFile; sourceFile = this.getFile(); File copyFile = ((File) strategy.copy(LocatorUtils.property(locator, "file", sourceFile), sourceFile, (this.file!= null))); copy.setFile(copyFile); } else { if (fileShouldBeCopiedAndSet == Boolean.FALSE) { copy.file = null; } } } { Boolean targetStorageNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.targetStorageName!= null)); if (targetStorageNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTargetStorageName; sourceTargetStorageName = this.getTargetStorageName(); String copyTargetStorageName = ((String) strategy.copy(LocatorUtils.property(locator, "targetStorageName", sourceTargetStorageName), sourceTargetStorageName, (this.targetStorageName!= null))); copy.setTargetStorageName(copyTargetStorageName); } else { if (targetStorageNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.targetStorageName = null; } } } } return draftCopy; } public Object createNewInstance() { return new UploadSingleInitiationRequest(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy