IRIS PrevSubmittedRecRecipientGrpType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: PrevSubmittedRecRecipientGrpType
|  +- uniqueRecordId: String
|  +- tin: String
|  +- personName: OtherCompletePersonNameType
|  |  +- personFirstNm: String
|  |  +- personMiddleNm: String
|  |  +- personLastNm: String
|  |  +- suffixNm: String
|  +- businessName: BusinessNameType
|  |  +- businessNameLine1Txt: String
|  |  +- businessNameLine2Txt: String


Flattened

PrevSubmittedRecRecipientGrpType.uniqueRecordId
PrevSubmittedRecRecipientGrpType.tin
PrevSubmittedRecRecipientGrpType.personName.personFirstNm
PrevSubmittedRecRecipientGrpType.personName.personMiddleNm
PrevSubmittedRecRecipientGrpType.personName.personLastNm
PrevSubmittedRecRecipientGrpType.personName.suffixNm
PrevSubmittedRecRecipientGrpType.businessName.businessNameLine1Txt
PrevSubmittedRecRecipientGrpType.businessName.businessNameLine2Txt

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"?><Description xmlns="urn:us:gov:treasury:irs:ir" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema">A group that wraps the data regarding previously submitted record recipient group information</Description>
 * </pre>
 * 
 * 
 * <p>Java class for PrevSubmittedRecRecipientGrpType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="PrevSubmittedRecRecipientGrpType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="UniqueRecordId" type="{urn:us:gov:treasury:irs:ir}UniqueRecordIdType"/>
 *         <element name="TIN" type="{urn:us:gov:treasury:irs:ir}TINType" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="PersonName" type="{urn:us:gov:treasury:irs:ir}OtherCompletePersonNameType"/>
 *           <element name="BusinessName" type="{urn:us:gov:treasury:irs:ir}BusinessNameType"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PrevSubmittedRecRecipientGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "uniqueRecordId",
    "tin",
    "personName",
    "businessName"
})
public class PrevSubmittedRecRecipientGrpType implements Equals2, ToString2
{

    @XmlElement(name = "UniqueRecordId", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected String uniqueRecordId;
    @XmlElement(name = "TIN", namespace = "urn:us:gov:treasury:irs:ir")
    protected String tin;
    @XmlElement(name = "PersonName", namespace = "urn:us:gov:treasury:irs:ir")
    protected OtherCompletePersonNameType personName;
    @XmlElement(name = "BusinessName", namespace = "urn:us:gov:treasury:irs:ir")
    protected BusinessNameType businessName;

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

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

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

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

    /**
     * Gets the value of the personName property.
     * 
     * @return
     *     possible object is
     *     {@link OtherCompletePersonNameType }
     *     
     */
    public OtherCompletePersonNameType getPersonName() {
        return personName;
    }

    /**
     * Sets the value of the personName property.
     * 
     * @param value
     *     allowed object is
     *     {@link OtherCompletePersonNameType }
     *     
     */
    public void setPersonName(OtherCompletePersonNameType value) {
        this.personName = value;
    }

    /**
     * Gets the value of the businessName property.
     * 
     * @return
     *     possible object is
     *     {@link BusinessNameType }
     *     
     */
    public BusinessNameType getBusinessName() {
        return businessName;
    }

    /**
     * Sets the value of the businessName property.
     * 
     * @param value
     *     allowed object is
     *     {@link BusinessNameType }
     *     
     */
    public void setBusinessName(BusinessNameType value) {
        this.businessName = 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 theUniqueRecordId;
            theUniqueRecordId = this.getUniqueRecordId();
            strategy.appendField(locator, this, "uniqueRecordId", buffer, theUniqueRecordId, (this.uniqueRecordId!= null));
        }
        {
            String theTIN;
            theTIN = this.getTIN();
            strategy.appendField(locator, this, "tin", buffer, theTIN, (this.tin!= null));
        }
        {
            OtherCompletePersonNameType thePersonName;
            thePersonName = this.getPersonName();
            strategy.appendField(locator, this, "personName", buffer, thePersonName, (this.personName!= null));
        }
        {
            BusinessNameType theBusinessName;
            theBusinessName = this.getBusinessName();
            strategy.appendField(locator, this, "businessName", buffer, theBusinessName, (this.businessName!= 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 PrevSubmittedRecRecipientGrpType that = ((PrevSubmittedRecRecipientGrpType) object);
        {
            String lhsUniqueRecordId;
            lhsUniqueRecordId = this.getUniqueRecordId();
            String rhsUniqueRecordId;
            rhsUniqueRecordId = that.getUniqueRecordId();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "uniqueRecordId", lhsUniqueRecordId), LocatorUtils.property(thatLocator, "uniqueRecordId", rhsUniqueRecordId), lhsUniqueRecordId, rhsUniqueRecordId, (this.uniqueRecordId!= null), (that.uniqueRecordId!= null))) {
                return false;
            }
        }
        {
            String lhsTIN;
            lhsTIN = this.getTIN();
            String rhsTIN;
            rhsTIN = that.getTIN();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "tin", lhsTIN), LocatorUtils.property(thatLocator, "tin", rhsTIN), lhsTIN, rhsTIN, (this.tin!= null), (that.tin!= null))) {
                return false;
            }
        }
        {
            OtherCompletePersonNameType lhsPersonName;
            lhsPersonName = this.getPersonName();
            OtherCompletePersonNameType rhsPersonName;
            rhsPersonName = that.getPersonName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "personName", lhsPersonName), LocatorUtils.property(thatLocator, "personName", rhsPersonName), lhsPersonName, rhsPersonName, (this.personName!= null), (that.personName!= null))) {
                return false;
            }
        }
        {
            BusinessNameType lhsBusinessName;
            lhsBusinessName = this.getBusinessName();
            BusinessNameType rhsBusinessName;
            rhsBusinessName = that.getBusinessName();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "businessName", lhsBusinessName), LocatorUtils.property(thatLocator, "businessName", rhsBusinessName), lhsBusinessName, rhsBusinessName, (this.businessName!= null), (that.businessName!= 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.