Tree
+- root: Form1099CTotalAmtGrpType
| +- totalReportedAmt: BigInteger
| +- debtDischargeAmt: BigInteger
| +- interestAmt: BigInteger
| +- fairMarketValueAmt: BigInteger
Flattened
Form1099CTotalAmtGrpType.totalReportedAmt
Form1099CTotalAmtGrpType.debtDischargeAmt
Form1099CTotalAmtGrpType.interestAmt
Form1099CTotalAmtGrpType.fairMarketValueAmt
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"?><Component xmlns="urn:us:gov:treasury:irs:ir" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntryNm>Form 1099 C Total Amount Group Type</DictionaryEntryNm><MajorVersionNum>1</MajorVersionNum><MinorVersionNum>0</MinorVersionNum><VersionEffectiveBeginDt>2021-10-21</VersionEffectiveBeginDt><VersionDescriptionTxt>Initial version</VersionDescriptionTxt><DescriptionTxt>The content model for the form 1099 C total amounts.</DescriptionTxt></Component>
* </pre>
*
*
* <p>Java class for Form1099CTotalAmtGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Form1099CTotalAmtGrpType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="TotalReportedAmt" type="{urn:us:gov:treasury:irs:ir}USAmountType" minOccurs="0"/>
* <element name="DebtDischargeAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* <element name="InterestAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* <element name="FairMarketValueAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Form1099CTotalAmtGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"totalReportedAmt",
"debtDischargeAmt",
"interestAmt",
"fairMarketValueAmt"
})
public class Form1099CTotalAmtGrpType implements Equals2, ToString2
{
@XmlElement(name = "TotalReportedAmt", namespace = "urn:us:gov:treasury:irs:ir")
protected BigInteger totalReportedAmt;
@XmlElement(name = "DebtDischargeAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger debtDischargeAmt;
@XmlElement(name = "InterestAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger interestAmt;
@XmlElement(name = "FairMarketValueAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger fairMarketValueAmt;
/**
* Gets the value of the totalReportedAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getTotalReportedAmt() {
return totalReportedAmt;
}
/**
* Sets the value of the totalReportedAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setTotalReportedAmt(BigInteger value) {
this.totalReportedAmt = value;
}
/**
* Gets the value of the debtDischargeAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDebtDischargeAmt() {
return debtDischargeAmt;
}
/**
* Sets the value of the debtDischargeAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDebtDischargeAmt(BigInteger value) {
this.debtDischargeAmt = value;
}
/**
* Gets the value of the interestAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getInterestAmt() {
return interestAmt;
}
/**
* Sets the value of the interestAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setInterestAmt(BigInteger value) {
this.interestAmt = value;
}
/**
* Gets the value of the fairMarketValueAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getFairMarketValueAmt() {
return fairMarketValueAmt;
}
/**
* Sets the value of the fairMarketValueAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setFairMarketValueAmt(BigInteger value) {
this.fairMarketValueAmt = 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 theTotalReportedAmt;
theTotalReportedAmt = this.getTotalReportedAmt();
strategy.appendField(locator, this, "totalReportedAmt", buffer, theTotalReportedAmt, (this.totalReportedAmt!= null));
}
{
BigInteger theDebtDischargeAmt;
theDebtDischargeAmt = this.getDebtDischargeAmt();
strategy.appendField(locator, this, "debtDischargeAmt", buffer, theDebtDischargeAmt, (this.debtDischargeAmt!= null));
}
{
BigInteger theInterestAmt;
theInterestAmt = this.getInterestAmt();
strategy.appendField(locator, this, "interestAmt", buffer, theInterestAmt, (this.interestAmt!= null));
}
{
BigInteger theFairMarketValueAmt;
theFairMarketValueAmt = this.getFairMarketValueAmt();
strategy.appendField(locator, this, "fairMarketValueAmt", buffer, theFairMarketValueAmt, (this.fairMarketValueAmt!= 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 Form1099CTotalAmtGrpType that = ((Form1099CTotalAmtGrpType) object);
{
BigInteger lhsTotalReportedAmt;
lhsTotalReportedAmt = this.getTotalReportedAmt();
BigInteger rhsTotalReportedAmt;
rhsTotalReportedAmt = that.getTotalReportedAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "totalReportedAmt", lhsTotalReportedAmt), LocatorUtils.property(thatLocator, "totalReportedAmt", rhsTotalReportedAmt), lhsTotalReportedAmt, rhsTotalReportedAmt, (this.totalReportedAmt!= null), (that.totalReportedAmt!= null))) {
return false;
}
}
{
BigInteger lhsDebtDischargeAmt;
lhsDebtDischargeAmt = this.getDebtDischargeAmt();
BigInteger rhsDebtDischargeAmt;
rhsDebtDischargeAmt = that.getDebtDischargeAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "debtDischargeAmt", lhsDebtDischargeAmt), LocatorUtils.property(thatLocator, "debtDischargeAmt", rhsDebtDischargeAmt), lhsDebtDischargeAmt, rhsDebtDischargeAmt, (this.debtDischargeAmt!= null), (that.debtDischargeAmt!= null))) {
return false;
}
}
{
BigInteger lhsInterestAmt;
lhsInterestAmt = this.getInterestAmt();
BigInteger rhsInterestAmt;
rhsInterestAmt = that.getInterestAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "interestAmt", lhsInterestAmt), LocatorUtils.property(thatLocator, "interestAmt", rhsInterestAmt), lhsInterestAmt, rhsInterestAmt, (this.interestAmt!= null), (that.interestAmt!= null))) {
return false;
}
}
{
BigInteger lhsFairMarketValueAmt;
lhsFairMarketValueAmt = this.getFairMarketValueAmt();
BigInteger rhsFairMarketValueAmt;
rhsFairMarketValueAmt = that.getFairMarketValueAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fairMarketValueAmt", lhsFairMarketValueAmt), LocatorUtils.property(thatLocator, "fairMarketValueAmt", rhsFairMarketValueAmt), lhsFairMarketValueAmt, rhsFairMarketValueAmt, (this.fairMarketValueAmt!= null), (that.fairMarketValueAmt!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}