Tree
+- root: VendorGrpType
| +- foreignEntityInd: 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
| +- contactNameGrp: ContactNameGrpType
| | +- personNm: String
| | +- personFirstNm: String
| | +- personMiddleNm: String
| | +- personLastNm: String
| | +- suffixNm: String
| +- contactEmailAddressTxt: String
| +- contactPhoneNum: String
Flattened
VendorGrpType.foreignEntityInd
VendorGrpType.businessName.businessNameLine1Txt
VendorGrpType.businessName.businessNameLine2Txt
VendorGrpType.mailingAddressGrp.usAddress.addressLine1Txt
VendorGrpType.mailingAddressGrp.usAddress.addressLine2Txt
VendorGrpType.mailingAddressGrp.usAddress.cityNm
VendorGrpType.mailingAddressGrp.usAddress.stateAbbreviationCd
VendorGrpType.mailingAddressGrp.usAddress.zipCd
VendorGrpType.mailingAddressGrp.foreignAddress.addressLine1Txt
VendorGrpType.mailingAddressGrp.foreignAddress.addressLine2Txt
VendorGrpType.mailingAddressGrp.foreignAddress.cityNm
VendorGrpType.mailingAddressGrp.foreignAddress.provinceOrStateNm
VendorGrpType.mailingAddressGrp.foreignAddress.countryCd
VendorGrpType.mailingAddressGrp.foreignAddress.foreignPostalCd
VendorGrpType.contactNameGrp.personNm
VendorGrpType.contactNameGrp.personFirstNm
VendorGrpType.contactNameGrp.personMiddleNm
VendorGrpType.contactNameGrp.personLastNm
VendorGrpType.contactNameGrp.suffixNm
VendorGrpType.contactEmailAddressTxt
VendorGrpType.contactPhoneNum
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"?><Component xmlns="urn:us:gov:treasury:irs:ir" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntryNm>Vendor Group Type</DictionaryEntryNm><MajorVersionNum>1</MajorVersionNum><MinorVersionNum>0</MinorVersionNum><VersionEffectiveBeginDt>2014-11-03</VersionEffectiveBeginDt><VersionDescriptionTxt>Initial version</VersionDescriptionTxt><DescriptionTxt>Global type for the vendor information </DescriptionTxt></Component>
* </pre>
*
*
* <p>Java class for VendorGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VendorGrpType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ForeignEntityInd" type="{urn:us:gov:treasury:irs:ir}DigitBooleanType"/>
* <element name="BusinessName" type="{urn:us:gov:treasury:irs:ir}BusinessNameType"/>
* <element name="MailingAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType"/>
* <element name="ContactNameGrp" type="{urn:us:gov:treasury:irs:ir}ContactNameGrpType" minOccurs="0"/>
* <element name="ContactEmailAddressTxt" type="{urn:us:gov:treasury:irs:ir}EmailAddressType" minOccurs="0"/>
* <element name="ContactPhoneNum" type="{urn:us:gov:treasury:irs:ir}ContactPhoneNumberType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VendorGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"foreignEntityInd",
"businessName",
"mailingAddressGrp",
"contactNameGrp",
"contactEmailAddressTxt",
"contactPhoneNum"
})
public class VendorGrpType implements Equals2, ToString2
{
@XmlElement(name = "ForeignEntityInd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected String foreignEntityInd;
@XmlElement(name = "BusinessName", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected BusinessNameType businessName;
@XmlElement(name = "MailingAddressGrp", namespace = "urn:us:gov:treasury:irs:ir", required = true)
protected AddressGrpType mailingAddressGrp;
@XmlElement(name = "ContactNameGrp", namespace = "urn:us:gov:treasury:irs:ir")
protected ContactNameGrpType contactNameGrp;
@XmlElement(name = "ContactEmailAddressTxt", namespace = "urn:us:gov:treasury:irs:ir")
protected String contactEmailAddressTxt;
@XmlElement(name = "ContactPhoneNum", namespace = "urn:us:gov:treasury:irs:ir")
protected String contactPhoneNum;
/**
* 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 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;
}
/**
* Gets the value of the contactNameGrp property.
*
* @return
* possible object is
* {@link ContactNameGrpType }
*
*/
public ContactNameGrpType getContactNameGrp() {
return contactNameGrp;
}
/**
* Sets the value of the contactNameGrp property.
*
* @param value
* allowed object is
* {@link ContactNameGrpType }
*
*/
public void setContactNameGrp(ContactNameGrpType value) {
this.contactNameGrp = value;
}
/**
* Gets the value of the contactEmailAddressTxt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContactEmailAddressTxt() {
return contactEmailAddressTxt;
}
/**
* Sets the value of the contactEmailAddressTxt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContactEmailAddressTxt(String value) {
this.contactEmailAddressTxt = value;
}
/**
* Gets the value of the contactPhoneNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContactPhoneNum() {
return contactPhoneNum;
}
/**
* Sets the value of the contactPhoneNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContactPhoneNum(String value) {
this.contactPhoneNum = 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));
}
{
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));
}
{
ContactNameGrpType theContactNameGrp;
theContactNameGrp = this.getContactNameGrp();
strategy.appendField(locator, this, "contactNameGrp", buffer, theContactNameGrp, (this.contactNameGrp!= null));
}
{
String theContactEmailAddressTxt;
theContactEmailAddressTxt = this.getContactEmailAddressTxt();
strategy.appendField(locator, this, "contactEmailAddressTxt", buffer, theContactEmailAddressTxt, (this.contactEmailAddressTxt!= null));
}
{
String theContactPhoneNum;
theContactPhoneNum = this.getContactPhoneNum();
strategy.appendField(locator, this, "contactPhoneNum", buffer, theContactPhoneNum, (this.contactPhoneNum!= 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 VendorGrpType that = ((VendorGrpType) 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;
}
}
{
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;
}
}
{
ContactNameGrpType lhsContactNameGrp;
lhsContactNameGrp = this.getContactNameGrp();
ContactNameGrpType rhsContactNameGrp;
rhsContactNameGrp = that.getContactNameGrp();
if (!strategy.equals(LocatorUtils.property(thisLocator, "contactNameGrp", lhsContactNameGrp), LocatorUtils.property(thatLocator, "contactNameGrp", rhsContactNameGrp), lhsContactNameGrp, rhsContactNameGrp, (this.contactNameGrp!= null), (that.contactNameGrp!= null))) {
return false;
}
}
{
String lhsContactEmailAddressTxt;
lhsContactEmailAddressTxt = this.getContactEmailAddressTxt();
String rhsContactEmailAddressTxt;
rhsContactEmailAddressTxt = that.getContactEmailAddressTxt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "contactEmailAddressTxt", lhsContactEmailAddressTxt), LocatorUtils.property(thatLocator, "contactEmailAddressTxt", rhsContactEmailAddressTxt), lhsContactEmailAddressTxt, rhsContactEmailAddressTxt, (this.contactEmailAddressTxt!= null), (that.contactEmailAddressTxt!= null))) {
return false;
}
}
{
String lhsContactPhoneNum;
lhsContactPhoneNum = this.getContactPhoneNum();
String rhsContactPhoneNum;
rhsContactPhoneNum = that.getContactPhoneNum();
if (!strategy.equals(LocatorUtils.property(thisLocator, "contactPhoneNum", lhsContactPhoneNum), LocatorUtils.property(thatLocator, "contactPhoneNum", rhsContactPhoneNum), lhsContactPhoneNum, rhsContactPhoneNum, (this.contactPhoneNum!= null), (that.contactPhoneNum!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}