Tree
+- root: ContactNameGrpType
| +- personNm: String
| +- personFirstNm: String
| +- personMiddleNm: String
| +- personLastNm: String
| +- suffixNm: String
Flattened
ContactNameGrpType.personNm
ContactNameGrpType.personFirstNm
ContactNameGrpType.personMiddleNm
ContactNameGrpType.personLastNm
ContactNameGrpType.suffixNm
Java Code
package modelsiris;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
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;
/**
*
* <pre>
* <?xml version="1.0" encoding="UTF-8"?><Description xmlns="urn:us:gov:treasury:irs:ir" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Group that wraps contact person name details.</Description>
* </pre>
*
*
* <p>Java class for ContactNameGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ContactNameGrpType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="PersonNm" type="{urn:us:gov:treasury:irs:ir}PersonNameType"/>
* <sequence>
* <element name="PersonFirstNm" type="{urn:us:gov:treasury:irs:ir}PersonFirstNameType"/>
* <element name="PersonMiddleNm" type="{urn:us:gov:treasury:irs:ir}PersonMiddleNameType" minOccurs="0"/>
* <element name="PersonLastNm" type="{urn:us:gov:treasury:irs:ir}PersonLastNameType"/>
* <element name="SuffixNm" type="{urn:us:gov:treasury:irs:ir}SuffixNameType" minOccurs="0"/>
* </sequence>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ContactNameGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"personNm",
"personFirstNm",
"personMiddleNm",
"personLastNm",
"suffixNm"
})
public class ContactNameGrpType implements Equals2, ToString2
{
@XmlElement(name = "PersonNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String personNm;
@XmlElement(name = "PersonFirstNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String personFirstNm;
@XmlElement(name = "PersonMiddleNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String personMiddleNm;
@XmlElement(name = "PersonLastNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String personLastNm;
@XmlElement(name = "SuffixNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String suffixNm;
/**
* Gets the value of the personNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPersonNm() {
return personNm;
}
/**
* Sets the value of the personNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPersonNm(String value) {
this.personNm = value;
}
/**
* Gets the value of the personFirstNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPersonFirstNm() {
return personFirstNm;
}
/**
* Sets the value of the personFirstNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPersonFirstNm(String value) {
this.personFirstNm = value;
}
/**
* Gets the value of the personMiddleNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPersonMiddleNm() {
return personMiddleNm;
}
/**
* Sets the value of the personMiddleNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPersonMiddleNm(String value) {
this.personMiddleNm = value;
}
/**
* Gets the value of the personLastNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPersonLastNm() {
return personLastNm;
}
/**
* Sets the value of the personLastNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPersonLastNm(String value) {
this.personLastNm = value;
}
/**
* Gets the value of the suffixNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSuffixNm() {
return suffixNm;
}
/**
* Sets the value of the suffixNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSuffixNm(String value) {
this.suffixNm = 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 thePersonNm;
thePersonNm = this.getPersonNm();
strategy.appendField(locator, this, "personNm", buffer, thePersonNm, (this.personNm!= null));
}
{
String thePersonFirstNm;
thePersonFirstNm = this.getPersonFirstNm();
strategy.appendField(locator, this, "personFirstNm", buffer, thePersonFirstNm, (this.personFirstNm!= null));
}
{
String thePersonMiddleNm;
thePersonMiddleNm = this.getPersonMiddleNm();
strategy.appendField(locator, this, "personMiddleNm", buffer, thePersonMiddleNm, (this.personMiddleNm!= null));
}
{
String thePersonLastNm;
thePersonLastNm = this.getPersonLastNm();
strategy.appendField(locator, this, "personLastNm", buffer, thePersonLastNm, (this.personLastNm!= null));
}
{
String theSuffixNm;
theSuffixNm = this.getSuffixNm();
strategy.appendField(locator, this, "suffixNm", buffer, theSuffixNm, (this.suffixNm!= 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 ContactNameGrpType that = ((ContactNameGrpType) object);
{
String lhsPersonNm;
lhsPersonNm = this.getPersonNm();
String rhsPersonNm;
rhsPersonNm = that.getPersonNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personNm", lhsPersonNm), LocatorUtils.property(thatLocator, "personNm", rhsPersonNm), lhsPersonNm, rhsPersonNm, (this.personNm!= null), (that.personNm!= null))) {
return false;
}
}
{
String lhsPersonFirstNm;
lhsPersonFirstNm = this.getPersonFirstNm();
String rhsPersonFirstNm;
rhsPersonFirstNm = that.getPersonFirstNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personFirstNm", lhsPersonFirstNm), LocatorUtils.property(thatLocator, "personFirstNm", rhsPersonFirstNm), lhsPersonFirstNm, rhsPersonFirstNm, (this.personFirstNm!= null), (that.personFirstNm!= null))) {
return false;
}
}
{
String lhsPersonMiddleNm;
lhsPersonMiddleNm = this.getPersonMiddleNm();
String rhsPersonMiddleNm;
rhsPersonMiddleNm = that.getPersonMiddleNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personMiddleNm", lhsPersonMiddleNm), LocatorUtils.property(thatLocator, "personMiddleNm", rhsPersonMiddleNm), lhsPersonMiddleNm, rhsPersonMiddleNm, (this.personMiddleNm!= null), (that.personMiddleNm!= null))) {
return false;
}
}
{
String lhsPersonLastNm;
lhsPersonLastNm = this.getPersonLastNm();
String rhsPersonLastNm;
rhsPersonLastNm = that.getPersonLastNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personLastNm", lhsPersonLastNm), LocatorUtils.property(thatLocator, "personLastNm", rhsPersonLastNm), lhsPersonLastNm, rhsPersonLastNm, (this.personLastNm!= null), (that.personLastNm!= null))) {
return false;
}
}
{
String lhsSuffixNm;
lhsSuffixNm = this.getSuffixNm();
String rhsSuffixNm;
rhsSuffixNm = that.getSuffixNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "suffixNm", lhsSuffixNm), LocatorUtils.property(thatLocator, "suffixNm", rhsSuffixNm), lhsSuffixNm, rhsSuffixNm, (this.suffixNm!= null), (that.suffixNm!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}