IRIS FormContactDetailType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: FormContactDetailType
|  +- contactNm: String
|  +- contactAddressGrp: 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
|  +- contactPhoneNum: String


Flattened

FormContactDetailType.contactNm
FormContactDetailType.contactAddressGrp.usAddress.addressLine1Txt
FormContactDetailType.contactAddressGrp.usAddress.addressLine2Txt
FormContactDetailType.contactAddressGrp.usAddress.cityNm
FormContactDetailType.contactAddressGrp.usAddress.stateAbbreviationCd
FormContactDetailType.contactAddressGrp.usAddress.zipCd
FormContactDetailType.contactAddressGrp.foreignAddress.addressLine1Txt
FormContactDetailType.contactAddressGrp.foreignAddress.addressLine2Txt
FormContactDetailType.contactAddressGrp.foreignAddress.cityNm
FormContactDetailType.contactAddressGrp.foreignAddress.provinceOrStateNm
FormContactDetailType.contactAddressGrp.foreignAddress.countryCd
FormContactDetailType.contactAddressGrp.foreignAddress.foreignPostalCd
FormContactDetailType.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>Contact Detail Type</DictionaryEntryNm><MajorVersionNum>1</MajorVersionNum><MinorVersionNum>0</MinorVersionNum><VersionEffectiveBeginDt>2022-01-12</VersionEffectiveBeginDt><VersionDescriptionTxt>Initial version</VersionDescriptionTxt><DescriptionTxt>The content model for the form Contact Detail.</DescriptionTxt></Component>
 * </pre>
 * 
 * 
 * <p>Java class for FormContactDetailType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="FormContactDetailType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ContactNm" type="{urn:us:gov:treasury:irs:ir}PersonNameType" minOccurs="0"/>
 *         <element name="ContactAddressGrp" type="{urn:us:gov:treasury:irs:ir}AddressGrpType" 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 = "FormContactDetailType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "contactNm",
    "contactAddressGrp",
    "contactPhoneNum"
})
public class FormContactDetailType implements Equals2, ToString2
{

    @XmlElement(name = "ContactNm", namespace = "urn:us:gov:treasury:irs:ir")
    protected String contactNm;
    @XmlElement(name = "ContactAddressGrp", namespace = "urn:us:gov:treasury:irs:ir")
    protected AddressGrpType contactAddressGrp;
    @XmlElement(name = "ContactPhoneNum", namespace = "urn:us:gov:treasury:irs:ir")
    protected String contactPhoneNum;

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

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

    /**
     * Gets the value of the contactAddressGrp property.
     * 
     * @return
     *     possible object is
     *     {@link AddressGrpType }
     *     
     */
    public AddressGrpType getContactAddressGrp() {
        return contactAddressGrp;
    }

    /**
     * Sets the value of the contactAddressGrp property.
     * 
     * @param value
     *     allowed object is
     *     {@link AddressGrpType }
     *     
     */
    public void setContactAddressGrp(AddressGrpType value) {
        this.contactAddressGrp = 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 theContactNm;
            theContactNm = this.getContactNm();
            strategy.appendField(locator, this, "contactNm", buffer, theContactNm, (this.contactNm!= null));
        }
        {
            AddressGrpType theContactAddressGrp;
            theContactAddressGrp = this.getContactAddressGrp();
            strategy.appendField(locator, this, "contactAddressGrp", buffer, theContactAddressGrp, (this.contactAddressGrp!= 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 FormContactDetailType that = ((FormContactDetailType) object);
        {
            String lhsContactNm;
            lhsContactNm = this.getContactNm();
            String rhsContactNm;
            rhsContactNm = that.getContactNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactNm", lhsContactNm), LocatorUtils.property(thatLocator, "contactNm", rhsContactNm), lhsContactNm, rhsContactNm, (this.contactNm!= null), (that.contactNm!= null))) {
                return false;
            }
        }
        {
            AddressGrpType lhsContactAddressGrp;
            lhsContactAddressGrp = this.getContactAddressGrp();
            AddressGrpType rhsContactAddressGrp;
            rhsContactAddressGrp = that.getContactAddressGrp();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactAddressGrp", lhsContactAddressGrp), LocatorUtils.property(thatLocator, "contactAddressGrp", rhsContactAddressGrp), lhsContactAddressGrp, rhsContactAddressGrp, (this.contactAddressGrp!= null), (that.contactAddressGrp!= 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);
    }

}

© Copyright 2024. All Rights Reserved.