org.finra.herd.model.api.xml.BusinessObjectDefinition 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 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.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 businessObjectDefinition complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="businessObjectDefinition">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="namespace" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="businessObjectDefinitionName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="dataProviderName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="description" 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="displayName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="attributes" type="{}attributes" minOccurs="0"/>
* <element name="descriptiveBusinessObjectFormat" type="{}descriptiveBusinessObjectFormat" minOccurs="0"/>
* <element name="sampleDataFiles" type="{}sampleDataFiles" minOccurs="0"/>
* <element name="createdByUserId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="lastUpdatedByUserId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="lastUpdatedOn" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="businessObjectDefinitionChangeEvents" type="{}businessObjectDefinitionChangeEvents" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "businessObjectDefinition", propOrder = {
})
@XmlRootElement(name = "businessObjectDefinition")
public class BusinessObjectDefinition implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = -1L;
protected Long id;
@XmlElement(required = true)
protected String namespace;
@XmlElement(required = true)
protected String businessObjectDefinitionName;
protected String dataProviderName;
protected String description;
protected String shortDescription;
protected String displayName;
@XmlElementWrapper
@XmlElement(name = "attribute")
protected List attributes;
protected DescriptiveBusinessObjectFormat descriptiveBusinessObjectFormat;
@XmlElementWrapper
@XmlElement(name = "sampleDataFile")
protected List sampleDataFiles;
protected String createdByUserId;
protected String lastUpdatedByUserId;
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar lastUpdatedOn;
@XmlElementWrapper
@XmlElement(name = "businessObjectDefinitionChangeEvent")
protected List businessObjectDefinitionChangeEvents;
/**
* Default no-arg constructor
*
*/
public BusinessObjectDefinition() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public BusinessObjectDefinition(final Long id, final String namespace, final String businessObjectDefinitionName, final String dataProviderName, final String description, final String shortDescription, final String displayName, final List attributes, final DescriptiveBusinessObjectFormat descriptiveBusinessObjectFormat, final List sampleDataFiles, final String createdByUserId, final String lastUpdatedByUserId, final XMLGregorianCalendar lastUpdatedOn, final List businessObjectDefinitionChangeEvents) {
this.id = id;
this.namespace = namespace;
this.businessObjectDefinitionName = businessObjectDefinitionName;
this.dataProviderName = dataProviderName;
this.description = description;
this.shortDescription = shortDescription;
this.displayName = displayName;
this.attributes = attributes;
this.descriptiveBusinessObjectFormat = descriptiveBusinessObjectFormat;
this.sampleDataFiles = sampleDataFiles;
this.createdByUserId = createdByUserId;
this.lastUpdatedByUserId = lastUpdatedByUserId;
this.lastUpdatedOn = lastUpdatedOn;
this.businessObjectDefinitionChangeEvents = businessObjectDefinitionChangeEvents;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the namespace property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNamespace() {
return namespace;
}
/**
* Sets the value of the namespace property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNamespace(String value) {
this.namespace = value;
}
/**
* Gets the value of the businessObjectDefinitionName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusinessObjectDefinitionName() {
return businessObjectDefinitionName;
}
/**
* Sets the value of the businessObjectDefinitionName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusinessObjectDefinitionName(String value) {
this.businessObjectDefinitionName = value;
}
/**
* Gets the value of the dataProviderName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataProviderName() {
return dataProviderName;
}
/**
* Sets the value of the dataProviderName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataProviderName(String value) {
this.dataProviderName = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = 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 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 descriptiveBusinessObjectFormat property.
*
* @return
* possible object is
* {@link DescriptiveBusinessObjectFormat }
*
*/
public DescriptiveBusinessObjectFormat getDescriptiveBusinessObjectFormat() {
return descriptiveBusinessObjectFormat;
}
/**
* Sets the value of the descriptiveBusinessObjectFormat property.
*
* @param value
* allowed object is
* {@link DescriptiveBusinessObjectFormat }
*
*/
public void setDescriptiveBusinessObjectFormat(DescriptiveBusinessObjectFormat value) {
this.descriptiveBusinessObjectFormat = 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 lastUpdatedByUserId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLastUpdatedByUserId() {
return lastUpdatedByUserId;
}
/**
* Sets the value of the lastUpdatedByUserId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastUpdatedByUserId(String value) {
this.lastUpdatedByUserId = 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 List getAttributes() {
return attributes;
}
public void setAttributes(List attributes) {
this.attributes = attributes;
}
public List getSampleDataFiles() {
return sampleDataFiles;
}
public void setSampleDataFiles(List sampleDataFiles) {
this.sampleDataFiles = sampleDataFiles;
}
public List getBusinessObjectDefinitionChangeEvents() {
return businessObjectDefinitionChangeEvents;
}
public void setBusinessObjectDefinitionChangeEvents(List businessObjectDefinitionChangeEvents) {
this.businessObjectDefinitionChangeEvents = businessObjectDefinitionChangeEvents;
}
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) {
{
Long theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null));
}
{
String theBusinessObjectDefinitionName;
theBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName();
strategy.appendField(locator, this, "businessObjectDefinitionName", buffer, theBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null));
}
{
String theDataProviderName;
theDataProviderName = this.getDataProviderName();
strategy.appendField(locator, this, "dataProviderName", buffer, theDataProviderName, (this.dataProviderName!= null));
}
{
String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
String theShortDescription;
theShortDescription = this.getShortDescription();
strategy.appendField(locator, this, "shortDescription", buffer, theShortDescription, (this.shortDescription!= null));
}
{
String theDisplayName;
theDisplayName = this.getDisplayName();
strategy.appendField(locator, this, "displayName", buffer, theDisplayName, (this.displayName!= null));
}
{
List theAttributes;
theAttributes = ((this.attributes!= null)?this.getAttributes():null);
strategy.appendField(locator, this, "attributes", buffer, theAttributes, (this.attributes!= null));
}
{
DescriptiveBusinessObjectFormat theDescriptiveBusinessObjectFormat;
theDescriptiveBusinessObjectFormat = this.getDescriptiveBusinessObjectFormat();
strategy.appendField(locator, this, "descriptiveBusinessObjectFormat", buffer, theDescriptiveBusinessObjectFormat, (this.descriptiveBusinessObjectFormat!= null));
}
{
List theSampleDataFiles;
theSampleDataFiles = ((this.sampleDataFiles!= null)?this.getSampleDataFiles():null);
strategy.appendField(locator, this, "sampleDataFiles", buffer, theSampleDataFiles, (this.sampleDataFiles!= null));
}
{
String theCreatedByUserId;
theCreatedByUserId = this.getCreatedByUserId();
strategy.appendField(locator, this, "createdByUserId", buffer, theCreatedByUserId, (this.createdByUserId!= null));
}
{
String theLastUpdatedByUserId;
theLastUpdatedByUserId = this.getLastUpdatedByUserId();
strategy.appendField(locator, this, "lastUpdatedByUserId", buffer, theLastUpdatedByUserId, (this.lastUpdatedByUserId!= null));
}
{
XMLGregorianCalendar theLastUpdatedOn;
theLastUpdatedOn = this.getLastUpdatedOn();
strategy.appendField(locator, this, "lastUpdatedOn", buffer, theLastUpdatedOn, (this.lastUpdatedOn!= null));
}
{
List theBusinessObjectDefinitionChangeEvents;
theBusinessObjectDefinitionChangeEvents = ((this.businessObjectDefinitionChangeEvents!= null)?this.getBusinessObjectDefinitionChangeEvents():null);
strategy.appendField(locator, this, "businessObjectDefinitionChangeEvents", buffer, theBusinessObjectDefinitionChangeEvents, (this.businessObjectDefinitionChangeEvents!= 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 BusinessObjectDefinition that = ((BusinessObjectDefinition) object);
{
Long lhsId;
lhsId = this.getId();
Long rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
String lhsNamespace;
lhsNamespace = this.getNamespace();
String rhsNamespace;
rhsNamespace = that.getNamespace();
if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) {
return false;
}
}
{
String lhsBusinessObjectDefinitionName;
lhsBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName();
String rhsBusinessObjectDefinitionName;
rhsBusinessObjectDefinitionName = that.getBusinessObjectDefinitionName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDefinitionName", lhsBusinessObjectDefinitionName), LocatorUtils.property(thatLocator, "businessObjectDefinitionName", rhsBusinessObjectDefinitionName), lhsBusinessObjectDefinitionName, rhsBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null), (that.businessObjectDefinitionName!= null))) {
return false;
}
}
{
String lhsDataProviderName;
lhsDataProviderName = this.getDataProviderName();
String rhsDataProviderName;
rhsDataProviderName = that.getDataProviderName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dataProviderName", lhsDataProviderName), LocatorUtils.property(thatLocator, "dataProviderName", rhsDataProviderName), lhsDataProviderName, rhsDataProviderName, (this.dataProviderName!= null), (that.dataProviderName!= null))) {
return false;
}
}
{
String lhsDescription;
lhsDescription = this.getDescription();
String rhsDescription;
rhsDescription = that.getDescription();
if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= 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;
}
}
{
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;
}
}
{
List lhsAttributes;
lhsAttributes = ((this.attributes!= null)?this.getAttributes():null);
List rhsAttributes;
rhsAttributes = ((that.attributes!= null)?that.getAttributes():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "attributes", lhsAttributes), LocatorUtils.property(thatLocator, "attributes", rhsAttributes), lhsAttributes, rhsAttributes, (this.attributes!= null), (that.attributes!= null))) {
return false;
}
}
{
DescriptiveBusinessObjectFormat lhsDescriptiveBusinessObjectFormat;
lhsDescriptiveBusinessObjectFormat = this.getDescriptiveBusinessObjectFormat();
DescriptiveBusinessObjectFormat rhsDescriptiveBusinessObjectFormat;
rhsDescriptiveBusinessObjectFormat = that.getDescriptiveBusinessObjectFormat();
if (!strategy.equals(LocatorUtils.property(thisLocator, "descriptiveBusinessObjectFormat", lhsDescriptiveBusinessObjectFormat), LocatorUtils.property(thatLocator, "descriptiveBusinessObjectFormat", rhsDescriptiveBusinessObjectFormat), lhsDescriptiveBusinessObjectFormat, rhsDescriptiveBusinessObjectFormat, (this.descriptiveBusinessObjectFormat!= null), (that.descriptiveBusinessObjectFormat!= null))) {
return false;
}
}
{
List lhsSampleDataFiles;
lhsSampleDataFiles = ((this.sampleDataFiles!= null)?this.getSampleDataFiles():null);
List rhsSampleDataFiles;
rhsSampleDataFiles = ((that.sampleDataFiles!= null)?that.getSampleDataFiles():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "sampleDataFiles", lhsSampleDataFiles), LocatorUtils.property(thatLocator, "sampleDataFiles", rhsSampleDataFiles), lhsSampleDataFiles, rhsSampleDataFiles, (this.sampleDataFiles!= null), (that.sampleDataFiles!= 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;
}
}
{
String lhsLastUpdatedByUserId;
lhsLastUpdatedByUserId = this.getLastUpdatedByUserId();
String rhsLastUpdatedByUserId;
rhsLastUpdatedByUserId = that.getLastUpdatedByUserId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lastUpdatedByUserId", lhsLastUpdatedByUserId), LocatorUtils.property(thatLocator, "lastUpdatedByUserId", rhsLastUpdatedByUserId), lhsLastUpdatedByUserId, rhsLastUpdatedByUserId, (this.lastUpdatedByUserId!= null), (that.lastUpdatedByUserId!= 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;
}
}
{
List lhsBusinessObjectDefinitionChangeEvents;
lhsBusinessObjectDefinitionChangeEvents = ((this.businessObjectDefinitionChangeEvents!= null)?this.getBusinessObjectDefinitionChangeEvents():null);
List rhsBusinessObjectDefinitionChangeEvents;
rhsBusinessObjectDefinitionChangeEvents = ((that.businessObjectDefinitionChangeEvents!= null)?that.getBusinessObjectDefinitionChangeEvents():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDefinitionChangeEvents", lhsBusinessObjectDefinitionChangeEvents), LocatorUtils.property(thatLocator, "businessObjectDefinitionChangeEvents", rhsBusinessObjectDefinitionChangeEvents), lhsBusinessObjectDefinitionChangeEvents, rhsBusinessObjectDefinitionChangeEvents, (this.businessObjectDefinitionChangeEvents!= null), (that.businessObjectDefinitionChangeEvents!= 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;
{
Long theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
}
{
String theNamespace;
theNamespace = this.getNamespace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "namespace", theNamespace), currentHashCode, theNamespace, (this.namespace!= null));
}
{
String theBusinessObjectDefinitionName;
theBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectDefinitionName", theBusinessObjectDefinitionName), currentHashCode, theBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null));
}
{
String theDataProviderName;
theDataProviderName = this.getDataProviderName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataProviderName", theDataProviderName), currentHashCode, theDataProviderName, (this.dataProviderName!= null));
}
{
String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
String theShortDescription;
theShortDescription = this.getShortDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "shortDescription", theShortDescription), currentHashCode, theShortDescription, (this.shortDescription!= null));
}
{
String theDisplayName;
theDisplayName = this.getDisplayName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "displayName", theDisplayName), currentHashCode, theDisplayName, (this.displayName!= null));
}
{
List theAttributes;
theAttributes = ((this.attributes!= null)?this.getAttributes():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributes", theAttributes), currentHashCode, theAttributes, (this.attributes!= null));
}
{
DescriptiveBusinessObjectFormat theDescriptiveBusinessObjectFormat;
theDescriptiveBusinessObjectFormat = this.getDescriptiveBusinessObjectFormat();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "descriptiveBusinessObjectFormat", theDescriptiveBusinessObjectFormat), currentHashCode, theDescriptiveBusinessObjectFormat, (this.descriptiveBusinessObjectFormat!= null));
}
{
List theSampleDataFiles;
theSampleDataFiles = ((this.sampleDataFiles!= null)?this.getSampleDataFiles():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sampleDataFiles", theSampleDataFiles), currentHashCode, theSampleDataFiles, (this.sampleDataFiles!= null));
}
{
String theCreatedByUserId;
theCreatedByUserId = this.getCreatedByUserId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdByUserId", theCreatedByUserId), currentHashCode, theCreatedByUserId, (this.createdByUserId!= null));
}
{
String theLastUpdatedByUserId;
theLastUpdatedByUserId = this.getLastUpdatedByUserId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastUpdatedByUserId", theLastUpdatedByUserId), currentHashCode, theLastUpdatedByUserId, (this.lastUpdatedByUserId!= null));
}
{
XMLGregorianCalendar theLastUpdatedOn;
theLastUpdatedOn = this.getLastUpdatedOn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastUpdatedOn", theLastUpdatedOn), currentHashCode, theLastUpdatedOn, (this.lastUpdatedOn!= null));
}
{
List theBusinessObjectDefinitionChangeEvents;
theBusinessObjectDefinitionChangeEvents = ((this.businessObjectDefinitionChangeEvents!= null)?this.getBusinessObjectDefinitionChangeEvents():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectDefinitionChangeEvents", theBusinessObjectDefinitionChangeEvents), currentHashCode, theBusinessObjectDefinitionChangeEvents, (this.businessObjectDefinitionChangeEvents!= 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 BusinessObjectDefinition) {
final BusinessObjectDefinition copy = ((BusinessObjectDefinition) draftCopy);
{
Boolean idShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.id!= null));
if (idShouldBeCopiedAndSet == Boolean.TRUE) {
Long sourceId;
sourceId = this.getId();
Long copyId = ((Long) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
copy.setId(copyId);
} else {
if (idShouldBeCopiedAndSet == Boolean.FALSE) {
copy.id = null;
}
}
}
{
Boolean namespaceShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.namespace!= null));
if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceNamespace;
sourceNamespace = this.getNamespace();
String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null)));
copy.setNamespace(copyNamespace);
} else {
if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {
copy.namespace = null;
}
}
}
{
Boolean businessObjectDefinitionNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.businessObjectDefinitionName!= null));
if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceBusinessObjectDefinitionName;
sourceBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName();
String copyBusinessObjectDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectDefinitionName", sourceBusinessObjectDefinitionName), sourceBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null)));
copy.setBusinessObjectDefinitionName(copyBusinessObjectDefinitionName);
} else {
if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.businessObjectDefinitionName = null;
}
}
}
{
Boolean dataProviderNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.dataProviderName!= null));
if (dataProviderNameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceDataProviderName;
sourceDataProviderName = this.getDataProviderName();
String copyDataProviderName = ((String) strategy.copy(LocatorUtils.property(locator, "dataProviderName", sourceDataProviderName), sourceDataProviderName, (this.dataProviderName!= null)));
copy.setDataProviderName(copyDataProviderName);
} else {
if (dataProviderNameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.dataProviderName = null;
}
}
}
{
Boolean descriptionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.description!= null));
if (descriptionShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceDescription;
sourceDescription = this.getDescription();
String copyDescription = ((String) strategy.copy(LocatorUtils.property(locator, "description", sourceDescription), sourceDescription, (this.description!= null)));
copy.setDescription(copyDescription);
} else {
if (descriptionShouldBeCopiedAndSet == Boolean.FALSE) {
copy.description = 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 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 attributesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.attributes!= null));
if (attributesShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceAttributes;
sourceAttributes = ((this.attributes!= null)?this.getAttributes():null);
@SuppressWarnings("unchecked")
List copyAttributes = ((List ) strategy.copy(LocatorUtils.property(locator, "attributes", sourceAttributes), sourceAttributes, (this.attributes!= null)));
copy.attributes = null;
if (copyAttributes!= null) {
copy.setAttributes(copyAttributes);
}
} else {
if (attributesShouldBeCopiedAndSet == Boolean.FALSE) {
copy.attributes = null;
}
}
}
{
Boolean descriptiveBusinessObjectFormatShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.descriptiveBusinessObjectFormat!= null));
if (descriptiveBusinessObjectFormatShouldBeCopiedAndSet == Boolean.TRUE) {
DescriptiveBusinessObjectFormat sourceDescriptiveBusinessObjectFormat;
sourceDescriptiveBusinessObjectFormat = this.getDescriptiveBusinessObjectFormat();
DescriptiveBusinessObjectFormat copyDescriptiveBusinessObjectFormat = ((DescriptiveBusinessObjectFormat) strategy.copy(LocatorUtils.property(locator, "descriptiveBusinessObjectFormat", sourceDescriptiveBusinessObjectFormat), sourceDescriptiveBusinessObjectFormat, (this.descriptiveBusinessObjectFormat!= null)));
copy.setDescriptiveBusinessObjectFormat(copyDescriptiveBusinessObjectFormat);
} else {
if (descriptiveBusinessObjectFormatShouldBeCopiedAndSet == Boolean.FALSE) {
copy.descriptiveBusinessObjectFormat = null;
}
}
}
{
Boolean sampleDataFilesShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.sampleDataFiles!= null));
if (sampleDataFilesShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceSampleDataFiles;
sourceSampleDataFiles = ((this.sampleDataFiles!= null)?this.getSampleDataFiles():null);
@SuppressWarnings("unchecked")
List copySampleDataFiles = ((List ) strategy.copy(LocatorUtils.property(locator, "sampleDataFiles", sourceSampleDataFiles), sourceSampleDataFiles, (this.sampleDataFiles!= null)));
copy.sampleDataFiles = null;
if (copySampleDataFiles!= null) {
copy.setSampleDataFiles(copySampleDataFiles);
}
} else {
if (sampleDataFilesShouldBeCopiedAndSet == Boolean.FALSE) {
copy.sampleDataFiles = 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 lastUpdatedByUserIdShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.lastUpdatedByUserId!= null));
if (lastUpdatedByUserIdShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceLastUpdatedByUserId;
sourceLastUpdatedByUserId = this.getLastUpdatedByUserId();
String copyLastUpdatedByUserId = ((String) strategy.copy(LocatorUtils.property(locator, "lastUpdatedByUserId", sourceLastUpdatedByUserId), sourceLastUpdatedByUserId, (this.lastUpdatedByUserId!= null)));
copy.setLastUpdatedByUserId(copyLastUpdatedByUserId);
} else {
if (lastUpdatedByUserIdShouldBeCopiedAndSet == Boolean.FALSE) {
copy.lastUpdatedByUserId = 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;
}
}
}
{
Boolean businessObjectDefinitionChangeEventsShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.businessObjectDefinitionChangeEvents!= null));
if (businessObjectDefinitionChangeEventsShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceBusinessObjectDefinitionChangeEvents;
sourceBusinessObjectDefinitionChangeEvents = ((this.businessObjectDefinitionChangeEvents!= null)?this.getBusinessObjectDefinitionChangeEvents():null);
@SuppressWarnings("unchecked")
List copyBusinessObjectDefinitionChangeEvents = ((List ) strategy.copy(LocatorUtils.property(locator, "businessObjectDefinitionChangeEvents", sourceBusinessObjectDefinitionChangeEvents), sourceBusinessObjectDefinitionChangeEvents, (this.businessObjectDefinitionChangeEvents!= null)));
copy.businessObjectDefinitionChangeEvents = null;
if (copyBusinessObjectDefinitionChangeEvents!= null) {
copy.setBusinessObjectDefinitionChangeEvents(copyBusinessObjectDefinitionChangeEvents);
}
} else {
if (businessObjectDefinitionChangeEventsShouldBeCopiedAndSet == Boolean.FALSE) {
copy.businessObjectDefinitionChangeEvents = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new BusinessObjectDefinition();
}
}