IRIS PersonFullNameType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: PersonFullNameType
|  +- personFirstNm: String
|  +- personLastNm: String


Flattened

PersonFullNameType.personFirstNm
PersonFullNameType.personLastNm

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;


/**
 * <p>Java class for PersonFullNameType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="PersonFullNameType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="PersonFirstNm" type="{urn:us:gov:treasury:irs:ir}PersonFirstNameType"/>
 *         <element name="PersonLastNm" type="{urn:us:gov:treasury:irs:ir}PersonLastNameType" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PersonFullNameType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "personFirstNm",
    "personLastNm"
})
public class PersonFullNameType implements Equals2, ToString2
{

    @XmlElement(name = "PersonFirstNm", namespace = "urn:us:gov:treasury:irs:ir", required = true)
    protected String personFirstNm;
    @XmlElement(name = "PersonLastNm", namespace = "urn:us:gov:treasury:irs:ir")
    protected String personLastNm;

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

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

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

    /**
     * Sets the value of the personLastNm property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPersonLastNm(String value) {
        this.personLastNm = 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 thePersonFirstNm;
            thePersonFirstNm = this.getPersonFirstNm();
            strategy.appendField(locator, this, "personFirstNm", buffer, thePersonFirstNm, (this.personFirstNm!= null));
        }
        {
            String thePersonLastNm;
            thePersonLastNm = this.getPersonLastNm();
            strategy.appendField(locator, this, "personLastNm", buffer, thePersonLastNm, (this.personLastNm!= 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 PersonFullNameType that = ((PersonFullNameType) object);
        {
            String lhsPersonFirstNm;
            lhsPersonFirstNm = this.getPersonFirstNm();
            String rhsPersonFirstNm;
            rhsPersonFirstNm = that.getPersonFirstNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "personFirstNm", lhsPersonFirstNm), LocatorUtils.property(thatLocator, "personFirstNm", rhsPersonFirstNm), lhsPersonFirstNm, rhsPersonFirstNm, (this.personFirstNm!= null), (that.personFirstNm!= null))) {
                return false;
            }
        }
        {
            String lhsPersonLastNm;
            lhsPersonLastNm = this.getPersonLastNm();
            String rhsPersonLastNm;
            rhsPersonLastNm = that.getPersonLastNm();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "personLastNm", lhsPersonLastNm), LocatorUtils.property(thatLocator, "personLastNm", rhsPersonLastNm), lhsPersonLastNm, rhsPersonLastNm, (this.personLastNm!= null), (that.personLastNm!= 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.