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

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


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

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

 * <complexType name="subjectMatterExpertContactDetails">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="fullName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="jobTitle" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="emailAddress" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="telephoneNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "subjectMatterExpertContactDetails", propOrder = { }) public class SubjectMatterExpertContactDetails implements Serializable, Cloneable, CopyTo2, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = -1L; protected String fullName; protected String jobTitle; protected String emailAddress; protected String telephoneNumber; /** * Default no-arg constructor * */ public SubjectMatterExpertContactDetails() { super(); } /** * Fully-initialising value constructor * */ public SubjectMatterExpertContactDetails(final String fullName, final String jobTitle, final String emailAddress, final String telephoneNumber) { this.fullName = fullName; this.jobTitle = jobTitle; this.emailAddress = emailAddress; this.telephoneNumber = telephoneNumber; } /** * Gets the value of the fullName property. * * @return * possible object is * {@link String } * */ public String getFullName() { return fullName; } /** * Sets the value of the fullName property. * * @param value * allowed object is * {@link String } * */ public void setFullName(String value) { this.fullName = value; } /** * Gets the value of the jobTitle property. * * @return * possible object is * {@link String } * */ public String getJobTitle() { return jobTitle; } /** * Sets the value of the jobTitle property. * * @param value * allowed object is * {@link String } * */ public void setJobTitle(String value) { this.jobTitle = value; } /** * Gets the value of the emailAddress property. * * @return * possible object is * {@link String } * */ public String getEmailAddress() { return emailAddress; } /** * Sets the value of the emailAddress property. * * @param value * allowed object is * {@link String } * */ public void setEmailAddress(String value) { this.emailAddress = value; } /** * Gets the value of the telephoneNumber property. * * @return * possible object is * {@link String } * */ public String getTelephoneNumber() { return telephoneNumber; } /** * Sets the value of the telephoneNumber property. * * @param value * allowed object is * {@link String } * */ public void setTelephoneNumber(String value) { this.telephoneNumber = 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 theFullName; theFullName = this.getFullName(); strategy.appendField(locator, this, "fullName", buffer, theFullName, (this.fullName!= null)); } { String theJobTitle; theJobTitle = this.getJobTitle(); strategy.appendField(locator, this, "jobTitle", buffer, theJobTitle, (this.jobTitle!= null)); } { String theEmailAddress; theEmailAddress = this.getEmailAddress(); strategy.appendField(locator, this, "emailAddress", buffer, theEmailAddress, (this.emailAddress!= null)); } { String theTelephoneNumber; theTelephoneNumber = this.getTelephoneNumber(); strategy.appendField(locator, this, "telephoneNumber", buffer, theTelephoneNumber, (this.telephoneNumber!= 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 SubjectMatterExpertContactDetails that = ((SubjectMatterExpertContactDetails) object); { String lhsFullName; lhsFullName = this.getFullName(); String rhsFullName; rhsFullName = that.getFullName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fullName", lhsFullName), LocatorUtils.property(thatLocator, "fullName", rhsFullName), lhsFullName, rhsFullName, (this.fullName!= null), (that.fullName!= null))) { return false; } } { String lhsJobTitle; lhsJobTitle = this.getJobTitle(); String rhsJobTitle; rhsJobTitle = that.getJobTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "jobTitle", lhsJobTitle), LocatorUtils.property(thatLocator, "jobTitle", rhsJobTitle), lhsJobTitle, rhsJobTitle, (this.jobTitle!= null), (that.jobTitle!= null))) { return false; } } { String lhsEmailAddress; lhsEmailAddress = this.getEmailAddress(); String rhsEmailAddress; rhsEmailAddress = that.getEmailAddress(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emailAddress", lhsEmailAddress), LocatorUtils.property(thatLocator, "emailAddress", rhsEmailAddress), lhsEmailAddress, rhsEmailAddress, (this.emailAddress!= null), (that.emailAddress!= null))) { return false; } } { String lhsTelephoneNumber; lhsTelephoneNumber = this.getTelephoneNumber(); String rhsTelephoneNumber; rhsTelephoneNumber = that.getTelephoneNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "telephoneNumber", lhsTelephoneNumber), LocatorUtils.property(thatLocator, "telephoneNumber", rhsTelephoneNumber), lhsTelephoneNumber, rhsTelephoneNumber, (this.telephoneNumber!= null), (that.telephoneNumber!= 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 theFullName; theFullName = this.getFullName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fullName", theFullName), currentHashCode, theFullName, (this.fullName!= null)); } { String theJobTitle; theJobTitle = this.getJobTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jobTitle", theJobTitle), currentHashCode, theJobTitle, (this.jobTitle!= null)); } { String theEmailAddress; theEmailAddress = this.getEmailAddress(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emailAddress", theEmailAddress), currentHashCode, theEmailAddress, (this.emailAddress!= null)); } { String theTelephoneNumber; theTelephoneNumber = this.getTelephoneNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "telephoneNumber", theTelephoneNumber), currentHashCode, theTelephoneNumber, (this.telephoneNumber!= 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 SubjectMatterExpertContactDetails) { final SubjectMatterExpertContactDetails copy = ((SubjectMatterExpertContactDetails) draftCopy); { Boolean fullNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.fullName!= null)); if (fullNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceFullName; sourceFullName = this.getFullName(); String copyFullName = ((String) strategy.copy(LocatorUtils.property(locator, "fullName", sourceFullName), sourceFullName, (this.fullName!= null))); copy.setFullName(copyFullName); } else { if (fullNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.fullName = null; } } } { Boolean jobTitleShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.jobTitle!= null)); if (jobTitleShouldBeCopiedAndSet == Boolean.TRUE) { String sourceJobTitle; sourceJobTitle = this.getJobTitle(); String copyJobTitle = ((String) strategy.copy(LocatorUtils.property(locator, "jobTitle", sourceJobTitle), sourceJobTitle, (this.jobTitle!= null))); copy.setJobTitle(copyJobTitle); } else { if (jobTitleShouldBeCopiedAndSet == Boolean.FALSE) { copy.jobTitle = null; } } } { Boolean emailAddressShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.emailAddress!= null)); if (emailAddressShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmailAddress; sourceEmailAddress = this.getEmailAddress(); String copyEmailAddress = ((String) strategy.copy(LocatorUtils.property(locator, "emailAddress", sourceEmailAddress), sourceEmailAddress, (this.emailAddress!= null))); copy.setEmailAddress(copyEmailAddress); } else { if (emailAddressShouldBeCopiedAndSet == Boolean.FALSE) { copy.emailAddress = null; } } } { Boolean telephoneNumberShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.telephoneNumber!= null)); if (telephoneNumberShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTelephoneNumber; sourceTelephoneNumber = this.getTelephoneNumber(); String copyTelephoneNumber = ((String) strategy.copy(LocatorUtils.property(locator, "telephoneNumber", sourceTelephoneNumber), sourceTelephoneNumber, (this.telephoneNumber!= null))); copy.setTelephoneNumber(copyTelephoneNumber); } else { if (telephoneNumberShouldBeCopiedAndSet == Boolean.FALSE) { copy.telephoneNumber = null; } } } } return draftCopy; } public Object createNewInstance() { return new SubjectMatterExpertContactDetails(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy