Tree
+- root: LocalTaxGrpType
| +- localTaxWithheldAmt: BigInteger
| +- localIncomeAmt: BigInteger
| +- localityNm: String
| +- localAbbreviationCd: String
| +- localDistributionAmt: BigInteger
Flattened
LocalTaxGrpType.localTaxWithheldAmt
LocalTaxGrpType.localIncomeAmt
LocalTaxGrpType.localityNm
LocalTaxGrpType.localAbbreviationCd
LocalTaxGrpType.localDistributionAmt
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 local tax information</Description>
* </pre>
*
*
* <p>Java class for LocalTaxGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="LocalTaxGrpType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="LocalTaxWithheldAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* <element name="LocalIncomeAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* <element name="LocalityNm" type="{urn:us:gov:treasury:irs:ir}ShortDescriptionType" minOccurs="0"/>
* <element name="LocalAbbreviationCd" minOccurs="0">
* <simpleType>
* <restriction base="{urn:us:gov:treasury:irs:ir}TextType">
* <maxLength value="10"/>
* </restriction>
* </simpleType>
* </element>
* <element name="LocalDistributionAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LocalTaxGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"localTaxWithheldAmt",
"localIncomeAmt",
"localityNm",
"localAbbreviationCd",
"localDistributionAmt"
})
public class LocalTaxGrpType implements Equals2, ToString2
{
@XmlElement(name = "LocalTaxWithheldAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger localTaxWithheldAmt;
@XmlElement(name = "LocalIncomeAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger localIncomeAmt;
@XmlElement(name = "LocalityNm", namespace = "urn:us:gov:treasury:irs:ir")
protected String localityNm;
@XmlElement(name = "LocalAbbreviationCd", namespace = "urn:us:gov:treasury:irs:ir")
protected String localAbbreviationCd;
@XmlElement(name = "LocalDistributionAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger localDistributionAmt;
/**
* Gets the value of the localTaxWithheldAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLocalTaxWithheldAmt() {
return localTaxWithheldAmt;
}
/**
* Sets the value of the localTaxWithheldAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLocalTaxWithheldAmt(BigInteger value) {
this.localTaxWithheldAmt = value;
}
/**
* Gets the value of the localIncomeAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLocalIncomeAmt() {
return localIncomeAmt;
}
/**
* Sets the value of the localIncomeAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLocalIncomeAmt(BigInteger value) {
this.localIncomeAmt = value;
}
/**
* Gets the value of the localityNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocalityNm() {
return localityNm;
}
/**
* Sets the value of the localityNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocalityNm(String value) {
this.localityNm = value;
}
/**
* Gets the value of the localAbbreviationCd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocalAbbreviationCd() {
return localAbbreviationCd;
}
/**
* Sets the value of the localAbbreviationCd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocalAbbreviationCd(String value) {
this.localAbbreviationCd = value;
}
/**
* Gets the value of the localDistributionAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getLocalDistributionAmt() {
return localDistributionAmt;
}
/**
* Sets the value of the localDistributionAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setLocalDistributionAmt(BigInteger value) {
this.localDistributionAmt = 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) {
{
BigInteger theLocalTaxWithheldAmt;
theLocalTaxWithheldAmt = this.getLocalTaxWithheldAmt();
strategy.appendField(locator, this, "localTaxWithheldAmt", buffer, theLocalTaxWithheldAmt, (this.localTaxWithheldAmt!= null));
}
{
BigInteger theLocalIncomeAmt;
theLocalIncomeAmt = this.getLocalIncomeAmt();
strategy.appendField(locator, this, "localIncomeAmt", buffer, theLocalIncomeAmt, (this.localIncomeAmt!= null));
}
{
String theLocalityNm;
theLocalityNm = this.getLocalityNm();
strategy.appendField(locator, this, "localityNm", buffer, theLocalityNm, (this.localityNm!= null));
}
{
String theLocalAbbreviationCd;
theLocalAbbreviationCd = this.getLocalAbbreviationCd();
strategy.appendField(locator, this, "localAbbreviationCd", buffer, theLocalAbbreviationCd, (this.localAbbreviationCd!= null));
}
{
BigInteger theLocalDistributionAmt;
theLocalDistributionAmt = this.getLocalDistributionAmt();
strategy.appendField(locator, this, "localDistributionAmt", buffer, theLocalDistributionAmt, (this.localDistributionAmt!= 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 LocalTaxGrpType that = ((LocalTaxGrpType) object);
{
BigInteger lhsLocalTaxWithheldAmt;
lhsLocalTaxWithheldAmt = this.getLocalTaxWithheldAmt();
BigInteger rhsLocalTaxWithheldAmt;
rhsLocalTaxWithheldAmt = that.getLocalTaxWithheldAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "localTaxWithheldAmt", lhsLocalTaxWithheldAmt), LocatorUtils.property(thatLocator, "localTaxWithheldAmt", rhsLocalTaxWithheldAmt), lhsLocalTaxWithheldAmt, rhsLocalTaxWithheldAmt, (this.localTaxWithheldAmt!= null), (that.localTaxWithheldAmt!= null))) {
return false;
}
}
{
BigInteger lhsLocalIncomeAmt;
lhsLocalIncomeAmt = this.getLocalIncomeAmt();
BigInteger rhsLocalIncomeAmt;
rhsLocalIncomeAmt = that.getLocalIncomeAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "localIncomeAmt", lhsLocalIncomeAmt), LocatorUtils.property(thatLocator, "localIncomeAmt", rhsLocalIncomeAmt), lhsLocalIncomeAmt, rhsLocalIncomeAmt, (this.localIncomeAmt!= null), (that.localIncomeAmt!= null))) {
return false;
}
}
{
String lhsLocalityNm;
lhsLocalityNm = this.getLocalityNm();
String rhsLocalityNm;
rhsLocalityNm = that.getLocalityNm();
if (!strategy.equals(LocatorUtils.property(thisLocator, "localityNm", lhsLocalityNm), LocatorUtils.property(thatLocator, "localityNm", rhsLocalityNm), lhsLocalityNm, rhsLocalityNm, (this.localityNm!= null), (that.localityNm!= null))) {
return false;
}
}
{
String lhsLocalAbbreviationCd;
lhsLocalAbbreviationCd = this.getLocalAbbreviationCd();
String rhsLocalAbbreviationCd;
rhsLocalAbbreviationCd = that.getLocalAbbreviationCd();
if (!strategy.equals(LocatorUtils.property(thisLocator, "localAbbreviationCd", lhsLocalAbbreviationCd), LocatorUtils.property(thatLocator, "localAbbreviationCd", rhsLocalAbbreviationCd), lhsLocalAbbreviationCd, rhsLocalAbbreviationCd, (this.localAbbreviationCd!= null), (that.localAbbreviationCd!= null))) {
return false;
}
}
{
BigInteger lhsLocalDistributionAmt;
lhsLocalDistributionAmt = this.getLocalDistributionAmt();
BigInteger rhsLocalDistributionAmt;
rhsLocalDistributionAmt = that.getLocalDistributionAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "localDistributionAmt", lhsLocalDistributionAmt), LocatorUtils.property(thatLocator, "localDistributionAmt", rhsLocalDistributionAmt), lhsLocalDistributionAmt, rhsLocalDistributionAmt, (this.localDistributionAmt!= null), (that.localDistributionAmt!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}