IRIS StateTaxGrpType

IRIS > IRIS XML

Under Development
as of April 11, 2023

Tree


+- root: StateTaxGrpType
|  +- stateIdNum: String
|  +- stateTaxWithheldAmt: BigInteger
|  +- stateIncomeAmt: BigInteger
|  +- stateDistributionAmt: BigInteger


Flattened

StateTaxGrpType.stateIdNum
StateTaxGrpType.stateTaxWithheldAmt
StateTaxGrpType.stateIncomeAmt
StateTaxGrpType.stateDistributionAmt

Java Code


package modelsiris;

import java.math.BigInteger;
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;


/**
 * 
 * <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 state tax information</Description>
 * </pre>
 * 
 * 
 * <p>Java class for StateTaxGrpType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * <complexType name="StateTaxGrpType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="StateIdNum" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{urn:us:gov:treasury:irs:ir}TextType">
 *               <maxLength value="25"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="StateTaxWithheldAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
 *         <element name="StateIncomeAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
 *         <element name="StateDistributionAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StateTaxGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
    "stateIdNum",
    "stateTaxWithheldAmt",
    "stateIncomeAmt",
    "stateDistributionAmt"
})
public class StateTaxGrpType implements Equals2, ToString2
{

    @XmlElement(name = "StateIdNum", namespace = "urn:us:gov:treasury:irs:ir")
    protected String stateIdNum;
    @XmlElement(name = "StateTaxWithheldAmt", namespace = "urn:us:gov:treasury:irs:ir")
    @XmlSchemaType(name = "nonNegativeInteger")
    protected BigInteger stateTaxWithheldAmt;
    @XmlElement(name = "StateIncomeAmt", namespace = "urn:us:gov:treasury:irs:ir")
    @XmlSchemaType(name = "nonNegativeInteger")
    protected BigInteger stateIncomeAmt;
    @XmlElement(name = "StateDistributionAmt", namespace = "urn:us:gov:treasury:irs:ir")
    @XmlSchemaType(name = "nonNegativeInteger")
    protected BigInteger stateDistributionAmt;

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

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

    /**
     * Gets the value of the stateTaxWithheldAmt property.
     * 
     * @return
     *     possible object is
     *     {@link BigInteger }
     *     
     */
    public BigInteger getStateTaxWithheldAmt() {
        return stateTaxWithheldAmt;
    }

    /**
     * Sets the value of the stateTaxWithheldAmt property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigInteger }
     *     
     */
    public void setStateTaxWithheldAmt(BigInteger value) {
        this.stateTaxWithheldAmt = value;
    }

    /**
     * Gets the value of the stateIncomeAmt property.
     * 
     * @return
     *     possible object is
     *     {@link BigInteger }
     *     
     */
    public BigInteger getStateIncomeAmt() {
        return stateIncomeAmt;
    }

    /**
     * Sets the value of the stateIncomeAmt property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigInteger }
     *     
     */
    public void setStateIncomeAmt(BigInteger value) {
        this.stateIncomeAmt = value;
    }

    /**
     * Gets the value of the stateDistributionAmt property.
     * 
     * @return
     *     possible object is
     *     {@link BigInteger }
     *     
     */
    public BigInteger getStateDistributionAmt() {
        return stateDistributionAmt;
    }

    /**
     * Sets the value of the stateDistributionAmt property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigInteger }
     *     
     */
    public void setStateDistributionAmt(BigInteger value) {
        this.stateDistributionAmt = 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 theStateIdNum;
            theStateIdNum = this.getStateIdNum();
            strategy.appendField(locator, this, "stateIdNum", buffer, theStateIdNum, (this.stateIdNum!= null));
        }
        {
            BigInteger theStateTaxWithheldAmt;
            theStateTaxWithheldAmt = this.getStateTaxWithheldAmt();
            strategy.appendField(locator, this, "stateTaxWithheldAmt", buffer, theStateTaxWithheldAmt, (this.stateTaxWithheldAmt!= null));
        }
        {
            BigInteger theStateIncomeAmt;
            theStateIncomeAmt = this.getStateIncomeAmt();
            strategy.appendField(locator, this, "stateIncomeAmt", buffer, theStateIncomeAmt, (this.stateIncomeAmt!= null));
        }
        {
            BigInteger theStateDistributionAmt;
            theStateDistributionAmt = this.getStateDistributionAmt();
            strategy.appendField(locator, this, "stateDistributionAmt", buffer, theStateDistributionAmt, (this.stateDistributionAmt!= 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 StateTaxGrpType that = ((StateTaxGrpType) object);
        {
            String lhsStateIdNum;
            lhsStateIdNum = this.getStateIdNum();
            String rhsStateIdNum;
            rhsStateIdNum = that.getStateIdNum();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "stateIdNum", lhsStateIdNum), LocatorUtils.property(thatLocator, "stateIdNum", rhsStateIdNum), lhsStateIdNum, rhsStateIdNum, (this.stateIdNum!= null), (that.stateIdNum!= null))) {
                return false;
            }
        }
        {
            BigInteger lhsStateTaxWithheldAmt;
            lhsStateTaxWithheldAmt = this.getStateTaxWithheldAmt();
            BigInteger rhsStateTaxWithheldAmt;
            rhsStateTaxWithheldAmt = that.getStateTaxWithheldAmt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "stateTaxWithheldAmt", lhsStateTaxWithheldAmt), LocatorUtils.property(thatLocator, "stateTaxWithheldAmt", rhsStateTaxWithheldAmt), lhsStateTaxWithheldAmt, rhsStateTaxWithheldAmt, (this.stateTaxWithheldAmt!= null), (that.stateTaxWithheldAmt!= null))) {
                return false;
            }
        }
        {
            BigInteger lhsStateIncomeAmt;
            lhsStateIncomeAmt = this.getStateIncomeAmt();
            BigInteger rhsStateIncomeAmt;
            rhsStateIncomeAmt = that.getStateIncomeAmt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "stateIncomeAmt", lhsStateIncomeAmt), LocatorUtils.property(thatLocator, "stateIncomeAmt", rhsStateIncomeAmt), lhsStateIncomeAmt, rhsStateIncomeAmt, (this.stateIncomeAmt!= null), (that.stateIncomeAmt!= null))) {
                return false;
            }
        }
        {
            BigInteger lhsStateDistributionAmt;
            lhsStateDistributionAmt = this.getStateDistributionAmt();
            BigInteger rhsStateDistributionAmt;
            rhsStateDistributionAmt = that.getStateDistributionAmt();
            if (!strategy.equals(LocatorUtils.property(thisLocator, "stateDistributionAmt", lhsStateDistributionAmt), LocatorUtils.property(thatLocator, "stateDistributionAmt", rhsStateDistributionAmt), lhsStateDistributionAmt, rhsStateDistributionAmt, (this.stateDistributionAmt!= null), (that.stateDistributionAmt!= 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.