IRIS IssuerDetailType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: IssuerDetailType
|  +- foreignEntityInd: String
|  +- tin: String
|  +- tinSubmittedTypeCd: TINSubmittedTypeCdType
|  +- personNameControlTxt: String
|  +- personName: OtherCompletePersonNameType
|  |  +- personFirstNm: String
|  |  +- personMiddleNm: String
|  |  +- personLastNm: String
|  |  +- suffixNm: String
|  +- businessNameControlTxt: 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
|  +- phoneNum: String


Flattened

IssuerDetailType.foreignEntityInd
IssuerDetailType.tin
IssuerDetailType.tinSubmittedTypeCd
IssuerDetailType.personNameControlTxt
IssuerDetailType.personName.personFirstNm
IssuerDetailType.personName.personMiddleNm
IssuerDetailType.personName.personLastNm
IssuerDetailType.personName.suffixNm
IssuerDetailType.businessNameControlTxt
IssuerDetailType.businessName.businessNameLine1Txt
IssuerDetailType.businessName.businessNameLine2Txt
IssuerDetailType.mailingAddressGrp.usAddress.addressLine1Txt
IssuerDetailType.mailingAddressGrp.usAddress.addressLine2Txt
IssuerDetailType.mailingAddressGrp.usAddress.cityNm
IssuerDetailType.mailingAddressGrp.usAddress.stateAbbreviationCd
IssuerDetailType.mailingAddressGrp.usAddress.zipCd
IssuerDetailType.mailingAddressGrp.foreignAddress.addressLine1Txt
IssuerDetailType.mailingAddressGrp.foreignAddress.addressLine2Txt
IssuerDetailType.mailingAddressGrp.foreignAddress.cityNm
IssuerDetailType.mailingAddressGrp.foreignAddress.provinceOrStateNm
IssuerDetailType.mailingAddressGrp.foreignAddress.countryCd
IssuerDetailType.mailingAddressGrp.foreignAddress.foreignPostalCd
IssuerDetailType.phoneNum

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 issuer</Description>
 * </pre>
 * 
 * 
 * <p>Java class for IssuerDetailType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="IssuerDetailType">
 *   <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"/>
 *         <element name="TINSubmittedTypeCd" type="{urn:us:gov:treasury:irs:ir}TINSubmittedTypeCdType"/>
 *         <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="MailingAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType"/>
 *         <element name="PhoneNum" type="{urn:us:gov:treasury:irs:ir}ContactPhoneNumberType" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IssuerDetailType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "foreignEntityInd",
    "tin",
    "tinSubmittedTypeCd",
    "personNameControlTxt",
    "personName",
    "businessNameControlTxt",
    "businessName",
    "mailingAddressGrp",
    "phoneNum"
})
public class IssuerDetailType 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", required = true)
    protected String tin;
    @XmlElement(name = "TINSubmittedTypeCd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    @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 = "MailingAddressGrp", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected AddressGrpType mailingAddressGrp;
    @XmlElement(name = "PhoneNum", namespace = "urn:us:gov:treasury:irs:ir")
    protected String phoneNum;

    /**
     * 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 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 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 phoneNum property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPhoneNum() {
        return phoneNum;
    }

    /**
     * Sets the value of the phoneNum property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPhoneNum(String value) {
        this.phoneNum = 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 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));
        }
        {
            AddressGrpType theMailingAddressGrp;
            theMailingAddressGrp = this.getMailingAddressGrp();
            strategy.appendField(locator, this, "mailingAddressGrp", buffer, theMailingAddressGrp, (this.mailingAddressGrp!= null));
        }
        {
            String thePhoneNum;
            thePhoneNum = this.getPhoneNum();
            strategy.appendField(locator, this, "phoneNum", buffer, thePhoneNum, (this.phoneNum!= 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 IssuerDetailType that = ((IssuerDetailType) 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 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;
            }
        }
        {
            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 lhsPhoneNum;
            lhsPhoneNum = this.getPhoneNum();
            String rhsPhoneNum;
            rhsPhoneNum = that.getPhoneNum();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "phoneNum", lhsPhoneNum), LocatorUtils.property(thatLocator, "phoneNum", rhsPhoneNum), lhsPhoneNum, rhsPhoneNum, (this.phoneNum!= null), (that.phoneNum!= null))) {
                return false;
            }
        }
        return true;
    }

    public boolean equals(Object object) {
        final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
        return equals(null, null, object, strategy);
    }

}

© Copyright 2024. All Rights Reserved.