IRIS AddressGrpType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: 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

AddressGrpType.usAddress.addressLine1Txt
AddressGrpType.usAddress.addressLine2Txt
AddressGrpType.usAddress.cityNm
AddressGrpType.usAddress.stateAbbreviationCd
AddressGrpType.usAddress.zipCd
AddressGrpType.foreignAddress.addressLine1Txt
AddressGrpType.foreignAddress.addressLine2Txt
AddressGrpType.foreignAddress.cityNm
AddressGrpType.foreignAddress.provinceOrStateNm
AddressGrpType.foreignAddress.countryCd
AddressGrpType.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.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"?><DescriptionTxt xmlns="urn:us:gov:treasury:irs:ir" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema">The mailing address group is a group that wraps a choice between USAddressGrp/ForeignAddressGrp</DescriptionTxt>
 * </pre>
 * 
 * 
 * <p>Java class for AddressGrpType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="AddressGrpType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice>
 *         <element name="USAddress" type="{urn:us:gov:treasury:irs:ir}USAddressType"/>
 *         <element name="ForeignAddress" type="{urn:us:gov:treasury:irs:ir}ForeignAddressType"/>
 *       </choice>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AddressGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "usAddress",
    "foreignAddress"
})
public class AddressGrpType implements Equals2, ToString2
{

    @XmlElement(name = "USAddress", namespace = "urn:us:gov:treasury:irs:ir")
    protected USAddressType usAddress;
    @XmlElement(name = "ForeignAddress", namespace = "urn:us:gov:treasury:irs:ir")
    protected ForeignAddressType foreignAddress;

    /**
     * Gets the value of the usAddress property.
     * 
     * @return
     *     possible object is
     *     {@link USAddressType }
     *     
     */
    public USAddressType getUSAddress() {
        return usAddress;
    }

    /**
     * Sets the value of the usAddress property.
     * 
     * @param value
     *     allowed object is
     *     {@link USAddressType }
     *     
     */
    public void setUSAddress(USAddressType value) {
        this.usAddress = value;
    }

    /**
     * Gets the value of the foreignAddress property.
     * 
     * @return
     *     possible object is
     *     {@link ForeignAddressType }
     *     
     */
    public ForeignAddressType getForeignAddress() {
        return foreignAddress;
    }

    /**
     * Sets the value of the foreignAddress property.
     * 
     * @param value
     *     allowed object is
     *     {@link ForeignAddressType }
     *     
     */
    public void setForeignAddress(ForeignAddressType value) {
        this.foreignAddress = 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) {
        {
            USAddressType theUSAddress;
            theUSAddress = this.getUSAddress();
            strategy.appendField(locator, this, "usAddress", buffer, theUSAddress, (this.usAddress!= null));
        }
        {
            ForeignAddressType theForeignAddress;
            theForeignAddress = this.getForeignAddress();
            strategy.appendField(locator, this, "foreignAddress", buffer, theForeignAddress, (this.foreignAddress!= 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 AddressGrpType that = ((AddressGrpType) object);
        {
            USAddressType lhsUSAddress;
            lhsUSAddress = this.getUSAddress();
            USAddressType rhsUSAddress;
            rhsUSAddress = that.getUSAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "usAddress", lhsUSAddress), LocatorUtils.property(thatLocator, "usAddress", rhsUSAddress), lhsUSAddress, rhsUSAddress, (this.usAddress!= null), (that.usAddress!= null))) {
                return false;
            }
        }
        {
            ForeignAddressType lhsForeignAddress;
            lhsForeignAddress = this.getForeignAddress();
            ForeignAddressType rhsForeignAddress;
            rhsForeignAddress = that.getForeignAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "foreignAddress", lhsForeignAddress), LocatorUtils.property(thatLocator, "foreignAddress", rhsForeignAddress), lhsForeignAddress, rhsForeignAddress, (this.foreignAddress!= null), (that.foreignAddress!= 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.