IRIS USAddressType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: USAddressType
|  +- addressLine1Txt: String
|  +- addressLine2Txt: String
|  +- cityNm: String
|  +- stateAbbreviationCd: StateType
|  +- zipCd: String


Flattened

USAddressType.addressLine1Txt
USAddressType.addressLine2Txt
USAddressType.cityNm
USAddressType.stateAbbreviationCd
USAddressType.zipCd

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 USAddressType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="USAddressType">
 *   <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" type="{urn:us:gov:treasury:irs:ir}CityType"/>
 *         <element name="StateAbbreviationCd" type="{urn:us:gov:treasury:irs:ir}StateType"/>
 *         <element name="ZIPCd" type="{urn:us:gov:treasury:irs:ir}ZIPCodeType"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "USAddressType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "addressLine1Txt",
    "addressLine2Txt",
    "cityNm",
    "stateAbbreviationCd",
    "zipCd"
})
public class USAddressType 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", required = true)
    protected String cityNm;
    @XmlElement(name = "StateAbbreviationCd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    @XmlSchemaType(name = "string")
    protected StateType stateAbbreviationCd;
    @XmlElement(name = "ZIPCd", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected String zipCd;

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

    /**
     * Sets the value of the stateAbbreviationCd property.
     * 
     * @param value
     *     allowed object is
     *     {@link StateType }
     *     
     */
    public void setStateAbbreviationCd(StateType value) {
        this.stateAbbreviationCd = value;
    }

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

    /**
     * Sets the value of the zipCd property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setZIPCd(String value) {
        this.zipCd = 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));
        }
        {
            StateType theStateAbbreviationCd;
            theStateAbbreviationCd = this.getStateAbbreviationCd();
            strategy.appendField(locator, this, "stateAbbreviationCd", buffer, theStateAbbreviationCd, (this.stateAbbreviationCd!= null));
        }
        {
            String theZIPCd;
            theZIPCd = this.getZIPCd();
            strategy.appendField(locator, this, "zipCd", buffer, theZIPCd, (this.zipCd!= 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 USAddressType that = ((USAddressType) 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;
            }
        }
        {
            StateType lhsStateAbbreviationCd;
            lhsStateAbbreviationCd = this.getStateAbbreviationCd();
            StateType rhsStateAbbreviationCd;
            rhsStateAbbreviationCd = that.getStateAbbreviationCd();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "stateAbbreviationCd", lhsStateAbbreviationCd), LocatorUtils.property(thatLocator, "stateAbbreviationCd", rhsStateAbbreviationCd), lhsStateAbbreviationCd, rhsStateAbbreviationCd, (this.stateAbbreviationCd!= null), (that.stateAbbreviationCd!= null))) {
                return false;
            }
        }
        {
            String lhsZIPCd;
            lhsZIPCd = this.getZIPCd();
            String rhsZIPCd;
            rhsZIPCd = that.getZIPCd();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "zipCd", lhsZIPCd), LocatorUtils.property(thatLocator, "zipCd", rhsZIPCd), lhsZIPCd, rhsZIPCd, (this.zipCd!= null), (that.zipCd!= 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.