oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.MonetaryTotalType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.07.19 at 05:08:29 PM CEST
//
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
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 oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.AllowanceTotalAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ChargeTotalAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineExtensionAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PayableAlternativeAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PayableAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PayableRoundingAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PrepaidAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxExclusiveAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxInclusiveAmountType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for MonetaryTotalType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MonetaryTotalType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LineExtensionAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxExclusiveAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxInclusiveAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AllowanceTotalAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ChargeTotalAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PrepaidAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PayableRoundingAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PayableAmount"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PayableAlternativeAmount" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MonetaryTotalType", propOrder = {
"lineExtensionAmount",
"taxExclusiveAmount",
"taxInclusiveAmount",
"allowanceTotalAmount",
"chargeTotalAmount",
"prepaidAmount",
"payableRoundingAmount",
"payableAmount",
"payableAlternativeAmount"
})
public class MonetaryTotalType
implements Serializable, Equals, HashCode, ToString
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "LineExtensionAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected LineExtensionAmountType lineExtensionAmount;
@XmlElement(name = "TaxExclusiveAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected TaxExclusiveAmountType taxExclusiveAmount;
@XmlElement(name = "TaxInclusiveAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected TaxInclusiveAmountType taxInclusiveAmount;
@XmlElement(name = "AllowanceTotalAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected AllowanceTotalAmountType allowanceTotalAmount;
@XmlElement(name = "ChargeTotalAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected ChargeTotalAmountType chargeTotalAmount;
@XmlElement(name = "PrepaidAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PrepaidAmountType prepaidAmount;
@XmlElement(name = "PayableRoundingAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PayableRoundingAmountType payableRoundingAmount;
@XmlElement(name = "PayableAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
protected PayableAmountType payableAmount;
@XmlElement(name = "PayableAlternativeAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PayableAlternativeAmountType payableAlternativeAmount;
/**
* Gets the value of the lineExtensionAmount property.
*
* @return
* possible object is
* {@link LineExtensionAmountType }
*
*/
public LineExtensionAmountType getLineExtensionAmount() {
return lineExtensionAmount;
}
/**
* Sets the value of the lineExtensionAmount property.
*
* @param value
* allowed object is
* {@link LineExtensionAmountType }
*
*/
public void setLineExtensionAmount(LineExtensionAmountType value) {
this.lineExtensionAmount = value;
}
/**
* Gets the value of the taxExclusiveAmount property.
*
* @return
* possible object is
* {@link TaxExclusiveAmountType }
*
*/
public TaxExclusiveAmountType getTaxExclusiveAmount() {
return taxExclusiveAmount;
}
/**
* Sets the value of the taxExclusiveAmount property.
*
* @param value
* allowed object is
* {@link TaxExclusiveAmountType }
*
*/
public void setTaxExclusiveAmount(TaxExclusiveAmountType value) {
this.taxExclusiveAmount = value;
}
/**
* Gets the value of the taxInclusiveAmount property.
*
* @return
* possible object is
* {@link TaxInclusiveAmountType }
*
*/
public TaxInclusiveAmountType getTaxInclusiveAmount() {
return taxInclusiveAmount;
}
/**
* Sets the value of the taxInclusiveAmount property.
*
* @param value
* allowed object is
* {@link TaxInclusiveAmountType }
*
*/
public void setTaxInclusiveAmount(TaxInclusiveAmountType value) {
this.taxInclusiveAmount = value;
}
/**
* Gets the value of the allowanceTotalAmount property.
*
* @return
* possible object is
* {@link AllowanceTotalAmountType }
*
*/
public AllowanceTotalAmountType getAllowanceTotalAmount() {
return allowanceTotalAmount;
}
/**
* Sets the value of the allowanceTotalAmount property.
*
* @param value
* allowed object is
* {@link AllowanceTotalAmountType }
*
*/
public void setAllowanceTotalAmount(AllowanceTotalAmountType value) {
this.allowanceTotalAmount = value;
}
/**
* Gets the value of the chargeTotalAmount property.
*
* @return
* possible object is
* {@link ChargeTotalAmountType }
*
*/
public ChargeTotalAmountType getChargeTotalAmount() {
return chargeTotalAmount;
}
/**
* Sets the value of the chargeTotalAmount property.
*
* @param value
* allowed object is
* {@link ChargeTotalAmountType }
*
*/
public void setChargeTotalAmount(ChargeTotalAmountType value) {
this.chargeTotalAmount = value;
}
/**
* Gets the value of the prepaidAmount property.
*
* @return
* possible object is
* {@link PrepaidAmountType }
*
*/
public PrepaidAmountType getPrepaidAmount() {
return prepaidAmount;
}
/**
* Sets the value of the prepaidAmount property.
*
* @param value
* allowed object is
* {@link PrepaidAmountType }
*
*/
public void setPrepaidAmount(PrepaidAmountType value) {
this.prepaidAmount = value;
}
/**
* Gets the value of the payableRoundingAmount property.
*
* @return
* possible object is
* {@link PayableRoundingAmountType }
*
*/
public PayableRoundingAmountType getPayableRoundingAmount() {
return payableRoundingAmount;
}
/**
* Sets the value of the payableRoundingAmount property.
*
* @param value
* allowed object is
* {@link PayableRoundingAmountType }
*
*/
public void setPayableRoundingAmount(PayableRoundingAmountType value) {
this.payableRoundingAmount = value;
}
/**
* Gets the value of the payableAmount property.
*
* @return
* possible object is
* {@link PayableAmountType }
*
*/
public PayableAmountType getPayableAmount() {
return payableAmount;
}
/**
* Sets the value of the payableAmount property.
*
* @param value
* allowed object is
* {@link PayableAmountType }
*
*/
public void setPayableAmount(PayableAmountType value) {
this.payableAmount = value;
}
/**
* Gets the value of the payableAlternativeAmount property.
*
* @return
* possible object is
* {@link PayableAlternativeAmountType }
*
*/
public PayableAlternativeAmountType getPayableAlternativeAmount() {
return payableAlternativeAmount;
}
/**
* Sets the value of the payableAlternativeAmount property.
*
* @param value
* allowed object is
* {@link PayableAlternativeAmountType }
*
*/
public void setPayableAlternativeAmount(PayableAlternativeAmountType value) {
this.payableAlternativeAmount = value;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
LineExtensionAmountType theLineExtensionAmount;
theLineExtensionAmount = this.getLineExtensionAmount();
strategy.appendField(locator, this, "lineExtensionAmount", buffer, theLineExtensionAmount);
}
{
TaxExclusiveAmountType theTaxExclusiveAmount;
theTaxExclusiveAmount = this.getTaxExclusiveAmount();
strategy.appendField(locator, this, "taxExclusiveAmount", buffer, theTaxExclusiveAmount);
}
{
TaxInclusiveAmountType theTaxInclusiveAmount;
theTaxInclusiveAmount = this.getTaxInclusiveAmount();
strategy.appendField(locator, this, "taxInclusiveAmount", buffer, theTaxInclusiveAmount);
}
{
AllowanceTotalAmountType theAllowanceTotalAmount;
theAllowanceTotalAmount = this.getAllowanceTotalAmount();
strategy.appendField(locator, this, "allowanceTotalAmount", buffer, theAllowanceTotalAmount);
}
{
ChargeTotalAmountType theChargeTotalAmount;
theChargeTotalAmount = this.getChargeTotalAmount();
strategy.appendField(locator, this, "chargeTotalAmount", buffer, theChargeTotalAmount);
}
{
PrepaidAmountType thePrepaidAmount;
thePrepaidAmount = this.getPrepaidAmount();
strategy.appendField(locator, this, "prepaidAmount", buffer, thePrepaidAmount);
}
{
PayableRoundingAmountType thePayableRoundingAmount;
thePayableRoundingAmount = this.getPayableRoundingAmount();
strategy.appendField(locator, this, "payableRoundingAmount", buffer, thePayableRoundingAmount);
}
{
PayableAmountType thePayableAmount;
thePayableAmount = this.getPayableAmount();
strategy.appendField(locator, this, "payableAmount", buffer, thePayableAmount);
}
{
PayableAlternativeAmountType thePayableAlternativeAmount;
thePayableAlternativeAmount = this.getPayableAlternativeAmount();
strategy.appendField(locator, this, "payableAlternativeAmount", buffer, thePayableAlternativeAmount);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof MonetaryTotalType)) {
return false;
}
if (this == object) {
return true;
}
final MonetaryTotalType that = ((MonetaryTotalType) object);
{
LineExtensionAmountType lhsLineExtensionAmount;
lhsLineExtensionAmount = this.getLineExtensionAmount();
LineExtensionAmountType rhsLineExtensionAmount;
rhsLineExtensionAmount = that.getLineExtensionAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lineExtensionAmount", lhsLineExtensionAmount), LocatorUtils.property(thatLocator, "lineExtensionAmount", rhsLineExtensionAmount), lhsLineExtensionAmount, rhsLineExtensionAmount)) {
return false;
}
}
{
TaxExclusiveAmountType lhsTaxExclusiveAmount;
lhsTaxExclusiveAmount = this.getTaxExclusiveAmount();
TaxExclusiveAmountType rhsTaxExclusiveAmount;
rhsTaxExclusiveAmount = that.getTaxExclusiveAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "taxExclusiveAmount", lhsTaxExclusiveAmount), LocatorUtils.property(thatLocator, "taxExclusiveAmount", rhsTaxExclusiveAmount), lhsTaxExclusiveAmount, rhsTaxExclusiveAmount)) {
return false;
}
}
{
TaxInclusiveAmountType lhsTaxInclusiveAmount;
lhsTaxInclusiveAmount = this.getTaxInclusiveAmount();
TaxInclusiveAmountType rhsTaxInclusiveAmount;
rhsTaxInclusiveAmount = that.getTaxInclusiveAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "taxInclusiveAmount", lhsTaxInclusiveAmount), LocatorUtils.property(thatLocator, "taxInclusiveAmount", rhsTaxInclusiveAmount), lhsTaxInclusiveAmount, rhsTaxInclusiveAmount)) {
return false;
}
}
{
AllowanceTotalAmountType lhsAllowanceTotalAmount;
lhsAllowanceTotalAmount = this.getAllowanceTotalAmount();
AllowanceTotalAmountType rhsAllowanceTotalAmount;
rhsAllowanceTotalAmount = that.getAllowanceTotalAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "allowanceTotalAmount", lhsAllowanceTotalAmount), LocatorUtils.property(thatLocator, "allowanceTotalAmount", rhsAllowanceTotalAmount), lhsAllowanceTotalAmount, rhsAllowanceTotalAmount)) {
return false;
}
}
{
ChargeTotalAmountType lhsChargeTotalAmount;
lhsChargeTotalAmount = this.getChargeTotalAmount();
ChargeTotalAmountType rhsChargeTotalAmount;
rhsChargeTotalAmount = that.getChargeTotalAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "chargeTotalAmount", lhsChargeTotalAmount), LocatorUtils.property(thatLocator, "chargeTotalAmount", rhsChargeTotalAmount), lhsChargeTotalAmount, rhsChargeTotalAmount)) {
return false;
}
}
{
PrepaidAmountType lhsPrepaidAmount;
lhsPrepaidAmount = this.getPrepaidAmount();
PrepaidAmountType rhsPrepaidAmount;
rhsPrepaidAmount = that.getPrepaidAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "prepaidAmount", lhsPrepaidAmount), LocatorUtils.property(thatLocator, "prepaidAmount", rhsPrepaidAmount), lhsPrepaidAmount, rhsPrepaidAmount)) {
return false;
}
}
{
PayableRoundingAmountType lhsPayableRoundingAmount;
lhsPayableRoundingAmount = this.getPayableRoundingAmount();
PayableRoundingAmountType rhsPayableRoundingAmount;
rhsPayableRoundingAmount = that.getPayableRoundingAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payableRoundingAmount", lhsPayableRoundingAmount), LocatorUtils.property(thatLocator, "payableRoundingAmount", rhsPayableRoundingAmount), lhsPayableRoundingAmount, rhsPayableRoundingAmount)) {
return false;
}
}
{
PayableAmountType lhsPayableAmount;
lhsPayableAmount = this.getPayableAmount();
PayableAmountType rhsPayableAmount;
rhsPayableAmount = that.getPayableAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payableAmount", lhsPayableAmount), LocatorUtils.property(thatLocator, "payableAmount", rhsPayableAmount), lhsPayableAmount, rhsPayableAmount)) {
return false;
}
}
{
PayableAlternativeAmountType lhsPayableAlternativeAmount;
lhsPayableAlternativeAmount = this.getPayableAlternativeAmount();
PayableAlternativeAmountType rhsPayableAlternativeAmount;
rhsPayableAlternativeAmount = that.getPayableAlternativeAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payableAlternativeAmount", lhsPayableAlternativeAmount), LocatorUtils.property(thatLocator, "payableAlternativeAmount", rhsPayableAlternativeAmount), lhsPayableAlternativeAmount, rhsPayableAlternativeAmount)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
LineExtensionAmountType theLineExtensionAmount;
theLineExtensionAmount = this.getLineExtensionAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lineExtensionAmount", theLineExtensionAmount), currentHashCode, theLineExtensionAmount);
}
{
TaxExclusiveAmountType theTaxExclusiveAmount;
theTaxExclusiveAmount = this.getTaxExclusiveAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "taxExclusiveAmount", theTaxExclusiveAmount), currentHashCode, theTaxExclusiveAmount);
}
{
TaxInclusiveAmountType theTaxInclusiveAmount;
theTaxInclusiveAmount = this.getTaxInclusiveAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "taxInclusiveAmount", theTaxInclusiveAmount), currentHashCode, theTaxInclusiveAmount);
}
{
AllowanceTotalAmountType theAllowanceTotalAmount;
theAllowanceTotalAmount = this.getAllowanceTotalAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allowanceTotalAmount", theAllowanceTotalAmount), currentHashCode, theAllowanceTotalAmount);
}
{
ChargeTotalAmountType theChargeTotalAmount;
theChargeTotalAmount = this.getChargeTotalAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chargeTotalAmount", theChargeTotalAmount), currentHashCode, theChargeTotalAmount);
}
{
PrepaidAmountType thePrepaidAmount;
thePrepaidAmount = this.getPrepaidAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prepaidAmount", thePrepaidAmount), currentHashCode, thePrepaidAmount);
}
{
PayableRoundingAmountType thePayableRoundingAmount;
thePayableRoundingAmount = this.getPayableRoundingAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payableRoundingAmount", thePayableRoundingAmount), currentHashCode, thePayableRoundingAmount);
}
{
PayableAmountType thePayableAmount;
thePayableAmount = this.getPayableAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payableAmount", thePayableAmount), currentHashCode, thePayableAmount);
}
{
PayableAlternativeAmountType thePayableAlternativeAmount;
thePayableAlternativeAmount = this.getPayableAlternativeAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payableAlternativeAmount", thePayableAlternativeAmount), currentHashCode, thePayableAlternativeAmount);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}