Tree
+- root: Form1099SBTotalAmtGrpType
| +- totalReportedAmt: BigInteger
| +- investmentInContractAmt: BigInteger
| +- surrenderAmt: BigInteger
Flattened
Form1099SBTotalAmtGrpType.totalReportedAmt
Form1099SBTotalAmtGrpType.investmentInContractAmt
Form1099SBTotalAmtGrpType.surrenderAmt
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 SB 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 SB total amounts.</DescriptionTxt></Component>
* </pre>
*
*
* <p>Java class for Form1099SBTotalAmtGrpType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Form1099SBTotalAmtGrpType">
* <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="InvestmentInContractAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* <element name="SurrenderAmt" type="{urn:us:gov:treasury:irs:ir}USAmountNNType" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Form1099SBTotalAmtGrpType", namespace = "urn:us:gov:treasury:irs:ir", propOrder = {
"totalReportedAmt",
"investmentInContractAmt",
"surrenderAmt"
})
public class Form1099SBTotalAmtGrpType implements Equals2, ToString2
{
@XmlElement(name = "TotalReportedAmt", namespace = "urn:us:gov:treasury:irs:ir")
protected BigInteger totalReportedAmt;
@XmlElement(name = "InvestmentInContractAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger investmentInContractAmt;
@XmlElement(name = "SurrenderAmt", namespace = "urn:us:gov:treasury:irs:ir")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger surrenderAmt;
/**
* 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 investmentInContractAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getInvestmentInContractAmt() {
return investmentInContractAmt;
}
/**
* Sets the value of the investmentInContractAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setInvestmentInContractAmt(BigInteger value) {
this.investmentInContractAmt = value;
}
/**
* Gets the value of the surrenderAmt property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSurrenderAmt() {
return surrenderAmt;
}
/**
* Sets the value of the surrenderAmt property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSurrenderAmt(BigInteger value) {
this.surrenderAmt = 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 theInvestmentInContractAmt;
theInvestmentInContractAmt = this.getInvestmentInContractAmt();
strategy.appendField(locator, this, "investmentInContractAmt", buffer, theInvestmentInContractAmt, (this.investmentInContractAmt!= null));
}
{
BigInteger theSurrenderAmt;
theSurrenderAmt = this.getSurrenderAmt();
strategy.appendField(locator, this, "surrenderAmt", buffer, theSurrenderAmt, (this.surrenderAmt!= 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 Form1099SBTotalAmtGrpType that = ((Form1099SBTotalAmtGrpType) 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 lhsInvestmentInContractAmt;
lhsInvestmentInContractAmt = this.getInvestmentInContractAmt();
BigInteger rhsInvestmentInContractAmt;
rhsInvestmentInContractAmt = that.getInvestmentInContractAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "investmentInContractAmt", lhsInvestmentInContractAmt), LocatorUtils.property(thatLocator, "investmentInContractAmt", rhsInvestmentInContractAmt), lhsInvestmentInContractAmt, rhsInvestmentInContractAmt, (this.investmentInContractAmt!= null), (that.investmentInContractAmt!= null))) {
return false;
}
}
{
BigInteger lhsSurrenderAmt;
lhsSurrenderAmt = this.getSurrenderAmt();
BigInteger rhsSurrenderAmt;
rhsSurrenderAmt = that.getSurrenderAmt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "surrenderAmt", lhsSurrenderAmt), LocatorUtils.property(thatLocator, "surrenderAmt", rhsSurrenderAmt), lhsSurrenderAmt, rhsSurrenderAmt, (this.surrenderAmt!= null), (that.surrenderAmt!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}