Tree
+- root: TransferAgentGrpType
| +- foreignEntityInd: String
| +- tin: String
| +- tinSubmittedTypeCd: TINSubmittedTypeCdType
| +- personNm: String
| +- businessName: BusinessNameType
| | +- businessNameLine1Txt: String
| | +- businessNameLine2Txt: 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
Flattened
TransferAgentGrpType.foreignEntityInd
TransferAgentGrpType.tin
TransferAgentGrpType.tinSubmittedTypeCd
TransferAgentGrpType.personNm
TransferAgentGrpType.businessName.businessNameLine1Txt
TransferAgentGrpType.businessName.businessNameLine2Txt
TransferAgentGrpType.mailingAddressGrp.usAddress.addressLine1Txt
TransferAgentGrpType.mailingAddressGrp.usAddress.addressLine2Txt
TransferAgentGrpType.mailingAddressGrp.usAddress.cityNm
TransferAgentGrpType.mailingAddressGrp.usAddress.stateAbbreviationCd
TransferAgentGrpType.mailingAddressGrp.usAddress.zipCd
TransferAgentGrpType.mailingAddressGrp.foreignAddress.addressLine1Txt
TransferAgentGrpType.mailingAddressGrp.foreignAddress.addressLine2Txt
TransferAgentGrpType.mailingAddressGrp.foreignAddress.cityNm
TransferAgentGrpType.mailingAddressGrp.foreignAddress.provinceOrStateNm
TransferAgentGrpType.mailingAddressGrp.foreignAddress.countryCd
TransferAgentGrpType.mailingAddressGrp.foreignAddress.foreignPostalCd
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 an transfer agent</Description>
* </pre>
*
*
* <p>Java class for TransferAgentGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TransferAgentGrpType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ForeignEntityInd" type="{urn:us:gov:treasury:irs:ir}DigitBooleanType"/>
* <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>
* <element name="PersonNm" type="{urn:us:gov:treasury:irs:ir}PersonNameType"/>
* <element name="BusinessName" type="{urn:us:gov:treasury:irs:ir}BusinessNameType"/>
* </choice>
* <element name="MailingAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransferAgentGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"foreignEntityInd",
"tin",
"tinSubmittedTypeCd",
"personNm",
"businessName",
"mailingAddressGrp"
})
public class TransferAgentGrpType implements Equals2, ToString2
{
@XmlElement(name = "ForeignEntityInd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected String foreignEntityInd;
@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 = "PersonNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String personNm;
@XmlElement(name = "BusinessName", namespace = "urn:us:gov:treasury:irs:ir")
protected BusinessNameType businessName;
@XmlElement(name = "MailingAddressGrp", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected AddressGrpType mailingAddressGrp;
/**
* Gets the value of the foreignEntityInd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getForeignEntityInd() {
return foreignEntityInd;
}
/**
* Sets the value of the foreignEntityInd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setForeignEntityInd(String value) {
this.foreignEntityInd = value;
}
/**
* 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 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 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 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;
}
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 theForeignEntityInd;
theForeignEntityInd = this.getForeignEntityInd();
strategy.appendField(locator, this, "foreignEntityInd", buffer, theForeignEntityInd, (this.foreignEntityInd!= null));
}
{
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 thePersonNm;
thePersonNm = this.getPersonNm();
strategy.appendField(locator, this, "personNm", buffer, thePersonNm, (this.personNm!= null));
}
{
BusinessNameType theBusinessName;
theBusinessName = this.getBusinessName();
strategy.appendField(locator, this, "businessName", buffer, theBusinessName, (this.businessName!= null));
}
{
AddressGrpType theMailingAddressGrp;
theMailingAddressGrp = this.getMailingAddressGrp();
strategy.appendField(locator, this, "mailingAddressGrp", buffer, theMailingAddressGrp, (this.mailingAddressGrp!= 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 TransferAgentGrpType that = ((TransferAgentGrpType) object);
{
String lhsForeignEntityInd;
lhsForeignEntityInd = this.getForeignEntityInd();
String rhsForeignEntityInd;
rhsForeignEntityInd = that.getForeignEntityInd();
if (!strategy.equals(LocatorUtils.property(thisLocator, "foreignEntityInd", lhsForeignEntityInd), LocatorUtils.property(thatLocator, "foreignEntityInd", rhsForeignEntityInd), lhsForeignEntityInd, rhsForeignEntityInd, (this.foreignEntityInd!= null), (that.foreignEntityInd!= null))) {
return false;
}
}
{
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 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;
}
}
{
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;
}
}
{
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;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}