IRIS ContactPersonInformationGrpType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: ContactPersonInformationGrpType
|  +- contactPersonNm: String
|  +- contactPhoneNum: String
|  +- contactEmailAddressTxt: String
|  +- contactFaxNum: String


Flattened

ContactPersonInformationGrpType.contactPersonNm
ContactPersonInformationGrpType.contactPhoneNum
ContactPersonInformationGrpType.contactEmailAddressTxt
ContactPersonInformationGrpType.contactFaxNum

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 Person Information Group Type</DictionaryEntryNm><MajorVersionNum>1</MajorVersionNum><MinorVersionNum>0</MinorVersionNum><VersionEffectiveBeginDt>2015-09-01</VersionEffectiveBeginDt><VersionDescriptionTxt>Initial version</VersionDescriptionTxt><DescriptionTxt>A group that wraps information related to the contact person.</DescriptionTxt></Component>
 * </pre>
 * 
 * 
 * <p>Java class for ContactPersonInformationGrpType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="ContactPersonInformationGrpType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ContactPersonNm" type="{urn:us:gov:treasury:irs:ir}PersonNameType"/>
 *         <element name="ContactPhoneNum" type="{urn:us:gov:treasury:irs:ir}ContactPhoneNumberType" minOccurs="0"/>
 *         <element name="ContactEmailAddressTxt" type="{urn:us:gov:treasury:irs:ir}EmailAddressType" minOccurs="0"/>
 *         <element name="ContactFaxNum" type="{urn:us:gov:treasury:irs:ir}ContactPhoneNumberType" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ContactPersonInformationGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "contactPersonNm",
    "contactPhoneNum",
    "contactEmailAddressTxt",
    "contactFaxNum"
})
public class ContactPersonInformationGrpType implements Equals2, ToString2
{

    @XmlElement(name = "ContactPersonNm", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected String contactPersonNm;
    @XmlElement(name = "ContactPhoneNum", namespace = "urn:us:gov:treasury:irs:ir")
    protected String contactPhoneNum;
    @XmlElement(name = "ContactEmailAddressTxt", namespace = "urn:us:gov:treasury:irs:ir")
    protected String contactEmailAddressTxt;
    @XmlElement(name = "ContactFaxNum", namespace = "urn:us:gov:treasury:irs:ir")
    protected String contactFaxNum;

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

    /**
     * Sets the value of the contactPersonNm property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setContactPersonNm(String value) {
        this.contactPersonNm = 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;
    }

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

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

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

    /**
     * Sets the value of the contactFaxNum property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setContactFaxNum(String value) {
        this.contactFaxNum = 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 theContactPersonNm;
            theContactPersonNm = this.getContactPersonNm();
            strategy.appendField(locator, this, "contactPersonNm", buffer, theContactPersonNm, (this.contactPersonNm!= null));
        }
        {
            String theContactPhoneNum;
            theContactPhoneNum = this.getContactPhoneNum();
            strategy.appendField(locator, this, "contactPhoneNum", buffer, theContactPhoneNum, (this.contactPhoneNum!= null));
        }
        {
            String theContactEmailAddressTxt;
            theContactEmailAddressTxt = this.getContactEmailAddressTxt();
            strategy.appendField(locator, this, "contactEmailAddressTxt", buffer, theContactEmailAddressTxt, (this.contactEmailAddressTxt!= null));
        }
        {
            String theContactFaxNum;
            theContactFaxNum = this.getContactFaxNum();
            strategy.appendField(locator, this, "contactFaxNum", buffer, theContactFaxNum, (this.contactFaxNum!= 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 ContactPersonInformationGrpType that = ((ContactPersonInformationGrpType) object);
        {
            String lhsContactPersonNm;
            lhsContactPersonNm = this.getContactPersonNm();
            String rhsContactPersonNm;
            rhsContactPersonNm = that.getContactPersonNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactPersonNm", lhsContactPersonNm), LocatorUtils.property(thatLocator, "contactPersonNm", rhsContactPersonNm), lhsContactPersonNm, rhsContactPersonNm, (this.contactPersonNm!= null), (that.contactPersonNm!= 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;
            }
        }
        {
            String lhsContactEmailAddressTxt;
            lhsContactEmailAddressTxt = this.getContactEmailAddressTxt();
            String rhsContactEmailAddressTxt;
            rhsContactEmailAddressTxt = that.getContactEmailAddressTxt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactEmailAddressTxt", lhsContactEmailAddressTxt), LocatorUtils.property(thatLocator, "contactEmailAddressTxt", rhsContactEmailAddressTxt), lhsContactEmailAddressTxt, rhsContactEmailAddressTxt, (this.contactEmailAddressTxt!= null), (that.contactEmailAddressTxt!= null))) {
                return false;
            }
        }
        {
            String lhsContactFaxNum;
            lhsContactFaxNum = this.getContactFaxNum();
            String rhsContactFaxNum;
            rhsContactFaxNum = that.getContactFaxNum();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "contactFaxNum", lhsContactFaxNum), LocatorUtils.property(thatLocator, "contactFaxNum", rhsContactFaxNum), lhsContactFaxNum, rhsContactFaxNum, (this.contactFaxNum!= null), (that.contactFaxNum!= 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.