Tree
+- root: RecipientDetailType
| +- tin: String
| +- tinSubmittedTypeCd: TINSubmittedTypeCdType
| +- personNameControlTxt: String
| +- personName: OtherCompletePersonNameType
| | +- personFirstNm: String
| | +- personMiddleNm: String
| | +- personLastNm: String
| | +- suffixNm: String
| +- businessNameControlTxt: String
| +- businessName: BusinessNameType
| | +- businessNameLine1Txt: String
| | +- businessNameLine2Txt: String
| +- additionalRecipientTxt: String
| +- mailingAddressGrp: AddressGrpType
| | +- usAddress: USAddressType
| | | +- addressLine1Txt: String
| | | +- addressLine2Txt: String
| | | +- cityNm: String
| | | +- stateAbbreviationCd: StateType
| | | +- zipCd: String
| | +- foreignAddress: ForeignAddressType
| | | +- addressLine1Txt: String
| | | +- addressLine2Txt: String
| | | +- cityNm: String
| | | +- provinceOrStateNm: String
| | | +- countryCd: CountryType
| | | +- foreignPostalCd: String
| +- recipientAccountNum: String
Flattened
RecipientDetailType.tin
RecipientDetailType.tinSubmittedTypeCd
RecipientDetailType.personNameControlTxt
RecipientDetailType.personName.personFirstNm
RecipientDetailType.personName.personMiddleNm
RecipientDetailType.personName.personLastNm
RecipientDetailType.personName.suffixNm
RecipientDetailType.businessNameControlTxt
RecipientDetailType.businessName.businessNameLine1Txt
RecipientDetailType.businessName.businessNameLine2Txt
RecipientDetailType.additionalRecipientTxt
RecipientDetailType.mailingAddressGrp.usAddress.addressLine1Txt
RecipientDetailType.mailingAddressGrp.usAddress.addressLine2Txt
RecipientDetailType.mailingAddressGrp.usAddress.cityNm
RecipientDetailType.mailingAddressGrp.usAddress.stateAbbreviationCd
RecipientDetailType.mailingAddressGrp.usAddress.zipCd
RecipientDetailType.mailingAddressGrp.foreignAddress.addressLine1Txt
RecipientDetailType.mailingAddressGrp.foreignAddress.addressLine2Txt
RecipientDetailType.mailingAddressGrp.foreignAddress.cityNm
RecipientDetailType.mailingAddressGrp.foreignAddress.provinceOrStateNm
RecipientDetailType.mailingAddressGrp.foreignAddress.countryCd
RecipientDetailType.mailingAddressGrp.foreignAddress.foreignPostalCd
RecipientDetailType.recipientAccountNum
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.XmlSchemaType;
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">A group that wraps the data regarding a recipient</Description>
* </pre>
*
*
* <p>Java class for RecipientDetailType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RecipientDetailType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="TIN" type="{urn:us:gov:treasury:irs:ir}TINType" minOccurs="0"/>
* <element name="TINSubmittedTypeCd" type="{urn:us:gov:treasury:irs:ir}TINSubmittedTypeCdType" minOccurs="0"/>
* <choice>
* <sequence>
* <element name="PersonNameControlTxt" type="{urn:us:gov:treasury:irs:ir}PersonNameControlType" minOccurs="0"/>
* <element name="PersonName" type="{urn:us:gov:treasury:irs:ir}OtherCompletePersonNameType"/>
* </sequence>
* <sequence>
* <element name="BusinessNameControlTxt" type="{urn:us:gov:treasury:irs:ir}BusinessNameControlType" minOccurs="0"/>
* <element name="BusinessName" type="{urn:us:gov:treasury:irs:ir}BusinessNameType"/>
* </sequence>
* </choice>
* <element name="AdditionalRecipientTxt" type="{urn:us:gov:treasury:irs:ir}NameTextType" minOccurs="0"/>
* <element name="MailingAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType" minOccurs="0"/>
* <element name="RecipientAccountNum" type="{urn:us:gov:treasury:irs:ir}Text30Type" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RecipientDetailType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"tin",
"tinSubmittedTypeCd",
"personNameControlTxt",
"personName",
"businessNameControlTxt",
"businessName",
"additionalRecipientTxt",
"mailingAddressGrp",
"recipientAccountNum"
})
public class RecipientDetailType implements Equals2, ToString2
{
@XmlElement(name = "TIN", namespace = "urn:us:gov:treasury:irs:ir")
protected String tin;
@XmlElement(name = "TINSubmittedTypeCd", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "string")
protected TINSubmittedTypeCdType tinSubmittedTypeCd;
@XmlElement(name = "PersonNameControlTxt", namespace = "urn:us:gov:treasury:irs:ir")
protected String personNameControlTxt;
@XmlElement(name = "PersonName", namespace = "urn:us:gov:treasury:irs:ir")
protected OtherCompletePersonNameType personName;
@XmlElement(name = "BusinessNameControlTxt", namespace = "urn:us:gov:treasury:irs:ir")
protected String businessNameControlTxt;
@XmlElement(name = "BusinessName", namespace = "urn:us:gov:treasury:irs:ir")
protected BusinessNameType businessName;
@XmlElement(name = "AdditionalRecipientTxt", namespace = "urn:us:gov:treasury:irs:ir")
protected String additionalRecipientTxt;
@XmlElement(name = "MailingAddressGrp", namespace = "urn:us:gov:treasury:irs:ir")
protected AddressGrpType mailingAddressGrp;
@XmlElement(name = "RecipientAccountNum", namespace = "urn:us:gov:treasury:irs:ir")
protected String recipientAccountNum;
/**
* Gets the value of the tin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTIN() {
return tin;
}
/**
* Sets the value of the tin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTIN(String value) {
this.tin = value;
}
/**
* Gets the value of the tinSubmittedTypeCd property.
*
* @return
* possible object is
* {@link TINSubmittedTypeCdType }
*
*/
public TINSubmittedTypeCdType getTINSubmittedTypeCd() {
return tinSubmittedTypeCd;
}
/**
* Sets the value of the tinSubmittedTypeCd property.
*
* @param value
* allowed object is
* {@link TINSubmittedTypeCdType }
*
*/
public void setTINSubmittedTypeCd(TINSubmittedTypeCdType value) {
this.tinSubmittedTypeCd = value;
}
/**
* Gets the value of the personNameControlTxt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPersonNameControlTxt() {
return personNameControlTxt;
}
/**
* Sets the value of the personNameControlTxt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPersonNameControlTxt(String value) {
this.personNameControlTxt = value;
}
/**
* Gets the value of the personName property.
*
* @return
* possible object is
* {@link OtherCompletePersonNameType }
*
*/
public OtherCompletePersonNameType getPersonName() {
return personName;
}
/**
* Sets the value of the personName property.
*
* @param value
* allowed object is
* {@link OtherCompletePersonNameType }
*
*/
public void setPersonName(OtherCompletePersonNameType value) {
this.personName = value;
}
/**
* Gets the value of the businessNameControlTxt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusinessNameControlTxt() {
return businessNameControlTxt;
}
/**
* Sets the value of the businessNameControlTxt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusinessNameControlTxt(String value) {
this.businessNameControlTxt = value;
}
/**
* Gets the value of the businessName property.
*
* @return
* possible object is
* {@link BusinessNameType }
*
*/
public BusinessNameType getBusinessName() {
return businessName;
}
/**
* Sets the value of the businessName property.
*
* @param value
* allowed object is
* {@link BusinessNameType }
*
*/
public void setBusinessName(BusinessNameType value) {
this.businessName = value;
}
/**
* Gets the value of the additionalRecipientTxt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdditionalRecipientTxt() {
return additionalRecipientTxt;
}
/**
* Sets the value of the additionalRecipientTxt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAdditionalRecipientTxt(String value) {
this.additionalRecipientTxt = value;
}
/**
* Gets the value of the mailingAddressGrp property.
*
* @return
* possible object is
* {@link AddressGrpType }
*
*/
public AddressGrpType getMailingAddressGrp() {
return mailingAddressGrp;
}
/**
* Sets the value of the mailingAddressGrp property.
*
* @param value
* allowed object is
* {@link AddressGrpType }
*
*/
public void setMailingAddressGrp(AddressGrpType value) {
this.mailingAddressGrp = value;
}
/**
* Gets the value of the recipientAccountNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRecipientAccountNum() {
return recipientAccountNum;
}
/**
* Sets the value of the recipientAccountNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRecipientAccountNum(String value) {
this.recipientAccountNum = 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 theTIN;
theTIN = this.getTIN();
strategy.appendField(locator, this, "tin", buffer, theTIN, (this.tin!= null));
}
{
TINSubmittedTypeCdType theTINSubmittedTypeCd;
theTINSubmittedTypeCd = this.getTINSubmittedTypeCd();
strategy.appendField(locator, this, "tinSubmittedTypeCd", buffer, theTINSubmittedTypeCd, (this.tinSubmittedTypeCd!= null));
}
{
String thePersonNameControlTxt;
thePersonNameControlTxt = this.getPersonNameControlTxt();
strategy.appendField(locator, this, "personNameControlTxt", buffer, thePersonNameControlTxt, (this.personNameControlTxt!= null));
}
{
OtherCompletePersonNameType thePersonName;
thePersonName = this.getPersonName();
strategy.appendField(locator, this, "personName", buffer, thePersonName, (this.personName!= null));
}
{
String theBusinessNameControlTxt;
theBusinessNameControlTxt = this.getBusinessNameControlTxt();
strategy.appendField(locator, this, "businessNameControlTxt", buffer, theBusinessNameControlTxt, (this.businessNameControlTxt!= null));
}
{
BusinessNameType theBusinessName;
theBusinessName = this.getBusinessName();
strategy.appendField(locator, this, "businessName", buffer, theBusinessName, (this.businessName!= null));
}
{
String theAdditionalRecipientTxt;
theAdditionalRecipientTxt = this.getAdditionalRecipientTxt();
strategy.appendField(locator, this, "additionalRecipientTxt", buffer, theAdditionalRecipientTxt, (this.additionalRecipientTxt!= null));
}
{
AddressGrpType theMailingAddressGrp;
theMailingAddressGrp = this.getMailingAddressGrp();
strategy.appendField(locator, this, "mailingAddressGrp", buffer, theMailingAddressGrp, (this.mailingAddressGrp!= null));
}
{
String theRecipientAccountNum;
theRecipientAccountNum = this.getRecipientAccountNum();
strategy.appendField(locator, this, "recipientAccountNum", buffer, theRecipientAccountNum, (this.recipientAccountNum!= 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 RecipientDetailType that = ((RecipientDetailType) object);
{
String lhsTIN;
lhsTIN = this.getTIN();
String rhsTIN;
rhsTIN = that.getTIN();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tin", lhsTIN), LocatorUtils.property(thatLocator, "tin", rhsTIN), lhsTIN, rhsTIN, (this.tin!= null), (that.tin!= null))) {
return false;
}
}
{
TINSubmittedTypeCdType lhsTINSubmittedTypeCd;
lhsTINSubmittedTypeCd = this.getTINSubmittedTypeCd();
TINSubmittedTypeCdType rhsTINSubmittedTypeCd;
rhsTINSubmittedTypeCd = that.getTINSubmittedTypeCd();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tinSubmittedTypeCd", lhsTINSubmittedTypeCd), LocatorUtils.property(thatLocator, "tinSubmittedTypeCd", rhsTINSubmittedTypeCd), lhsTINSubmittedTypeCd, rhsTINSubmittedTypeCd, (this.tinSubmittedTypeCd!= null), (that.tinSubmittedTypeCd!= null))) {
return false;
}
}
{
String lhsPersonNameControlTxt;
lhsPersonNameControlTxt = this.getPersonNameControlTxt();
String rhsPersonNameControlTxt;
rhsPersonNameControlTxt = that.getPersonNameControlTxt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personNameControlTxt", lhsPersonNameControlTxt), LocatorUtils.property(thatLocator, "personNameControlTxt", rhsPersonNameControlTxt), lhsPersonNameControlTxt, rhsPersonNameControlTxt, (this.personNameControlTxt!= null), (that.personNameControlTxt!= null))) {
return false;
}
}
{
OtherCompletePersonNameType lhsPersonName;
lhsPersonName = this.getPersonName();
OtherCompletePersonNameType rhsPersonName;
rhsPersonName = that.getPersonName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "personName", lhsPersonName), LocatorUtils.property(thatLocator, "personName", rhsPersonName), lhsPersonName, rhsPersonName, (this.personName!= null), (that.personName!= null))) {
return false;
}
}
{
String lhsBusinessNameControlTxt;
lhsBusinessNameControlTxt = this.getBusinessNameControlTxt();
String rhsBusinessNameControlTxt;
rhsBusinessNameControlTxt = that.getBusinessNameControlTxt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessNameControlTxt", lhsBusinessNameControlTxt), LocatorUtils.property(thatLocator, "businessNameControlTxt", rhsBusinessNameControlTxt), lhsBusinessNameControlTxt, rhsBusinessNameControlTxt, (this.businessNameControlTxt!= null), (that.businessNameControlTxt!= null))) {
return false;
}
}
{
BusinessNameType lhsBusinessName;
lhsBusinessName = this.getBusinessName();
BusinessNameType rhsBusinessName;
rhsBusinessName = that.getBusinessName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessName", lhsBusinessName), LocatorUtils.property(thatLocator, "businessName", rhsBusinessName), lhsBusinessName, rhsBusinessName, (this.businessName!= null), (that.businessName!= null))) {
return false;
}
}
{
String lhsAdditionalRecipientTxt;
lhsAdditionalRecipientTxt = this.getAdditionalRecipientTxt();
String rhsAdditionalRecipientTxt;
rhsAdditionalRecipientTxt = that.getAdditionalRecipientTxt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "additionalRecipientTxt", lhsAdditionalRecipientTxt), LocatorUtils.property(thatLocator, "additionalRecipientTxt", rhsAdditionalRecipientTxt), lhsAdditionalRecipientTxt, rhsAdditionalRecipientTxt, (this.additionalRecipientTxt!= null), (that.additionalRecipientTxt!= null))) {
return false;
}
}
{
AddressGrpType lhsMailingAddressGrp;
lhsMailingAddressGrp = this.getMailingAddressGrp();
AddressGrpType rhsMailingAddressGrp;
rhsMailingAddressGrp = that.getMailingAddressGrp();
if (!strategy.equals(LocatorUtils.property(thisLocator, "mailingAddressGrp", lhsMailingAddressGrp), LocatorUtils.property(thatLocator, "mailingAddressGrp", rhsMailingAddressGrp), lhsMailingAddressGrp, rhsMailingAddressGrp, (this.mailingAddressGrp!= null), (that.mailingAddressGrp!= null))) {
return false;
}
}
{
String lhsRecipientAccountNum;
lhsRecipientAccountNum = this.getRecipientAccountNum();
String rhsRecipientAccountNum;
rhsRecipientAccountNum = that.getRecipientAccountNum();
if (!strategy.equals(LocatorUtils.property(thisLocator, "recipientAccountNum", lhsRecipientAccountNum), LocatorUtils.property(thatLocator, "recipientAccountNum", rhsRecipientAccountNum), lhsRecipientAccountNum, rhsRecipientAccountNum, (this.recipientAccountNum!= null), (that.recipientAccountNum!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}