IRIS ForeignAddressType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: ForeignAddressType
|  +- addressLine1Txt: String
|  +- addressLine2Txt: String
|  +- cityNm: String
|  +- provinceOrStateNm: String
|  +- countryCd: CountryType
|  +- foreignPostalCd: String


Flattened

ForeignAddressType.addressLine1Txt
ForeignAddressType.addressLine2Txt
ForeignAddressType.cityNm
ForeignAddressType.provinceOrStateNm
ForeignAddressType.countryCd
ForeignAddressType.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;


/**
 * <p>Java class for ForeignAddressType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="ForeignAddressType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="AddressLine1Txt" type="{urn:us:gov:treasury:irs:ir}StreetAddressType"/>
 *         <element name="AddressLine2Txt" type="{urn:us:gov:treasury:irs:ir}StreetAddressType" minOccurs="0"/>
 *         <element name="CityNm" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{urn:us:gov:treasury:irs:ir}StringType">
 *               <maxLength value="50"/>
 *               <pattern value="([A-Za-z] ?)*[A-Za-z]"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="ProvinceOrStateNm" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{urn:us:gov:treasury:irs:ir}TextType">
 *               <maxLength value="17"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="CountryCd" type="{urn:us:gov:treasury:irs:ir}CountryType"/>
 *         <element name="ForeignPostalCd" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{urn:us:gov:treasury:irs:ir}TextType">
 *               <maxLength value="16"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ForeignAddressType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "addressLine1Txt",
    "addressLine2Txt",
    "cityNm",
    "provinceOrStateNm",
    "countryCd",
    "foreignPostalCd"
})
public class ForeignAddressType implements Equals2, ToString2
{

    @XmlElement(name = "AddressLine1Txt", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected String addressLine1Txt;
    @XmlElement(name = "AddressLine2Txt", namespace = "urn:us:gov:treasury:irs:ir")
    protected String addressLine2Txt;
    @XmlElement(name = "CityNm", namespace = "urn:us:gov:treasury:irs:ir")
    protected String cityNm;
    @XmlElement(name = "ProvinceOrStateNm", namespace = "urn:us:gov:treasury:irs:ir")
    protected String provinceOrStateNm;
    @XmlElement(name = "CountryCd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    @XmlSchemaType(name = "string")
    protected CountryType countryCd;
    @XmlElement(name = "ForeignPostalCd", namespace = "urn:us:gov:treasury:irs:ir")
    protected String foreignPostalCd;

    /**
     * Gets the value of the addressLine1Txt property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAddressLine1Txt() {
        return addressLine1Txt;
    }

    /**
     * Sets the value of the addressLine1Txt property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAddressLine1Txt(String value) {
        this.addressLine1Txt = value;
    }

    /**
     * Gets the value of the addressLine2Txt property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAddressLine2Txt() {
        return addressLine2Txt;
    }

    /**
     * Sets the value of the addressLine2Txt property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAddressLine2Txt(String value) {
        this.addressLine2Txt = value;
    }

    /**
     * Gets the value of the cityNm property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCityNm() {
        return cityNm;
    }

    /**
     * Sets the value of the cityNm property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCityNm(String value) {
        this.cityNm = value;
    }

    /**
     * Gets the value of the provinceOrStateNm property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getProvinceOrStateNm() {
        return provinceOrStateNm;
    }

    /**
     * Sets the value of the provinceOrStateNm property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setProvinceOrStateNm(String value) {
        this.provinceOrStateNm = value;
    }

    /**
     * Gets the value of the countryCd property.
     * 
     * @return
     *     possible object is
     *     {@link CountryType }
     *     
     */
    public CountryType getCountryCd() {
        return countryCd;
    }

    /**
     * Sets the value of the countryCd property.
     * 
     * @param value
     *     allowed object is
     *     {@link CountryType }
     *     
     */
    public void setCountryCd(CountryType value) {
        this.countryCd = value;
    }

    /**
     * Gets the value of the foreignPostalCd property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getForeignPostalCd() {
        return foreignPostalCd;
    }

    /**
     * Sets the value of the foreignPostalCd property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setForeignPostalCd(String value) {
        this.foreignPostalCd = 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 theAddressLine1Txt;
            theAddressLine1Txt = this.getAddressLine1Txt();
            strategy.appendField(locator, this, "addressLine1Txt", buffer, theAddressLine1Txt, (this.addressLine1Txt!= null));
        }
        {
            String theAddressLine2Txt;
            theAddressLine2Txt = this.getAddressLine2Txt();
            strategy.appendField(locator, this, "addressLine2Txt", buffer, theAddressLine2Txt, (this.addressLine2Txt!= null));
        }
        {
            String theCityNm;
            theCityNm = this.getCityNm();
            strategy.appendField(locator, this, "cityNm", buffer, theCityNm, (this.cityNm!= null));
        }
        {
            String theProvinceOrStateNm;
            theProvinceOrStateNm = this.getProvinceOrStateNm();
            strategy.appendField(locator, this, "provinceOrStateNm", buffer, theProvinceOrStateNm, (this.provinceOrStateNm!= null));
        }
        {
            CountryType theCountryCd;
            theCountryCd = this.getCountryCd();
            strategy.appendField(locator, this, "countryCd", buffer, theCountryCd, (this.countryCd!= null));
        }
        {
            String theForeignPostalCd;
            theForeignPostalCd = this.getForeignPostalCd();
            strategy.appendField(locator, this, "foreignPostalCd", buffer, theForeignPostalCd, (this.foreignPostalCd!= 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 ForeignAddressType that = ((ForeignAddressType) object);
        {
            String lhsAddressLine1Txt;
            lhsAddressLine1Txt = this.getAddressLine1Txt();
            String rhsAddressLine1Txt;
            rhsAddressLine1Txt = that.getAddressLine1Txt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "addressLine1Txt", lhsAddressLine1Txt), LocatorUtils.property(thatLocator, "addressLine1Txt", rhsAddressLine1Txt), lhsAddressLine1Txt, rhsAddressLine1Txt, (this.addressLine1Txt!= null), (that.addressLine1Txt!= null))) {
                return false;
            }
        }
        {
            String lhsAddressLine2Txt;
            lhsAddressLine2Txt = this.getAddressLine2Txt();
            String rhsAddressLine2Txt;
            rhsAddressLine2Txt = that.getAddressLine2Txt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "addressLine2Txt", lhsAddressLine2Txt), LocatorUtils.property(thatLocator, "addressLine2Txt", rhsAddressLine2Txt), lhsAddressLine2Txt, rhsAddressLine2Txt, (this.addressLine2Txt!= null), (that.addressLine2Txt!= null))) {
                return false;
            }
        }
        {
            String lhsCityNm;
            lhsCityNm = this.getCityNm();
            String rhsCityNm;
            rhsCityNm = that.getCityNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "cityNm", lhsCityNm), LocatorUtils.property(thatLocator, "cityNm", rhsCityNm), lhsCityNm, rhsCityNm, (this.cityNm!= null), (that.cityNm!= null))) {
                return false;
            }
        }
        {
            String lhsProvinceOrStateNm;
            lhsProvinceOrStateNm = this.getProvinceOrStateNm();
            String rhsProvinceOrStateNm;
            rhsProvinceOrStateNm = that.getProvinceOrStateNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "provinceOrStateNm", lhsProvinceOrStateNm), LocatorUtils.property(thatLocator, "provinceOrStateNm", rhsProvinceOrStateNm), lhsProvinceOrStateNm, rhsProvinceOrStateNm, (this.provinceOrStateNm!= null), (that.provinceOrStateNm!= null))) {
                return false;
            }
        }
        {
            CountryType lhsCountryCd;
            lhsCountryCd = this.getCountryCd();
            CountryType rhsCountryCd;
            rhsCountryCd = that.getCountryCd();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "countryCd", lhsCountryCd), LocatorUtils.property(thatLocator, "countryCd", rhsCountryCd), lhsCountryCd, rhsCountryCd, (this.countryCd!= null), (that.countryCd!= null))) {
                return false;
            }
        }
        {
            String lhsForeignPostalCd;
            lhsForeignPostalCd = this.getForeignPostalCd();
            String rhsForeignPostalCd;
            rhsForeignPostalCd = that.getForeignPostalCd();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "foreignPostalCd", lhsForeignPostalCd), LocatorUtils.property(thatLocator, "foreignPostalCd", rhsForeignPostalCd), lhsForeignPostalCd, rhsForeignPostalCd, (this.foreignPostalCd!= null), (that.foreignPostalCd!= null))) {
                return false;
            }
        }
        return true;
    }

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

}

© Copyright 2023. All Rights Reserved.