oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentType 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.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.InstructionIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidAmountType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PaidTimeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ReceivedDateType;
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 PaymentType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PaymentType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaidAmount" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ReceivedDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaidDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PaidTime" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}InstructionID" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentType", propOrder = {
"id",
"paidAmount",
"receivedDate",
"paidDate",
"paidTime",
"instructionID"
})
public class PaymentType
implements Serializable, Equals, HashCode, ToString
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected IDType id;
@XmlElement(name = "PaidAmount", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PaidAmountType paidAmount;
@XmlElement(name = "ReceivedDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected ReceivedDateType receivedDate;
@XmlElement(name = "PaidDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PaidDateType paidDate;
@XmlElement(name = "PaidTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PaidTimeType paidTime;
@XmlElement(name = "InstructionID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected InstructionIDType instructionID;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link IDType }
*
*/
public IDType getID() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link IDType }
*
*/
public void setID(IDType value) {
this.id = value;
}
/**
* Gets the value of the paidAmount property.
*
* @return
* possible object is
* {@link PaidAmountType }
*
*/
public PaidAmountType getPaidAmount() {
return paidAmount;
}
/**
* Sets the value of the paidAmount property.
*
* @param value
* allowed object is
* {@link PaidAmountType }
*
*/
public void setPaidAmount(PaidAmountType value) {
this.paidAmount = value;
}
/**
* Gets the value of the receivedDate property.
*
* @return
* possible object is
* {@link ReceivedDateType }
*
*/
public ReceivedDateType getReceivedDate() {
return receivedDate;
}
/**
* Sets the value of the receivedDate property.
*
* @param value
* allowed object is
* {@link ReceivedDateType }
*
*/
public void setReceivedDate(ReceivedDateType value) {
this.receivedDate = value;
}
/**
* Gets the value of the paidDate property.
*
* @return
* possible object is
* {@link PaidDateType }
*
*/
public PaidDateType getPaidDate() {
return paidDate;
}
/**
* Sets the value of the paidDate property.
*
* @param value
* allowed object is
* {@link PaidDateType }
*
*/
public void setPaidDate(PaidDateType value) {
this.paidDate = value;
}
/**
* Gets the value of the paidTime property.
*
* @return
* possible object is
* {@link PaidTimeType }
*
*/
public PaidTimeType getPaidTime() {
return paidTime;
}
/**
* Sets the value of the paidTime property.
*
* @param value
* allowed object is
* {@link PaidTimeType }
*
*/
public void setPaidTime(PaidTimeType value) {
this.paidTime = value;
}
/**
* Gets the value of the instructionID property.
*
* @return
* possible object is
* {@link InstructionIDType }
*
*/
public InstructionIDType getInstructionID() {
return instructionID;
}
/**
* Sets the value of the instructionID property.
*
* @param value
* allowed object is
* {@link InstructionIDType }
*
*/
public void setInstructionID(InstructionIDType value) {
this.instructionID = 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) {
{
IDType theID;
theID = this.getID();
strategy.appendField(locator, this, "id", buffer, theID);
}
{
PaidAmountType thePaidAmount;
thePaidAmount = this.getPaidAmount();
strategy.appendField(locator, this, "paidAmount", buffer, thePaidAmount);
}
{
ReceivedDateType theReceivedDate;
theReceivedDate = this.getReceivedDate();
strategy.appendField(locator, this, "receivedDate", buffer, theReceivedDate);
}
{
PaidDateType thePaidDate;
thePaidDate = this.getPaidDate();
strategy.appendField(locator, this, "paidDate", buffer, thePaidDate);
}
{
PaidTimeType thePaidTime;
thePaidTime = this.getPaidTime();
strategy.appendField(locator, this, "paidTime", buffer, thePaidTime);
}
{
InstructionIDType theInstructionID;
theInstructionID = this.getInstructionID();
strategy.appendField(locator, this, "instructionID", buffer, theInstructionID);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof PaymentType)) {
return false;
}
if (this == object) {
return true;
}
final PaymentType that = ((PaymentType) object);
{
IDType lhsID;
lhsID = this.getID();
IDType rhsID;
rhsID = that.getID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsID), LocatorUtils.property(thatLocator, "id", rhsID), lhsID, rhsID)) {
return false;
}
}
{
PaidAmountType lhsPaidAmount;
lhsPaidAmount = this.getPaidAmount();
PaidAmountType rhsPaidAmount;
rhsPaidAmount = that.getPaidAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paidAmount", lhsPaidAmount), LocatorUtils.property(thatLocator, "paidAmount", rhsPaidAmount), lhsPaidAmount, rhsPaidAmount)) {
return false;
}
}
{
ReceivedDateType lhsReceivedDate;
lhsReceivedDate = this.getReceivedDate();
ReceivedDateType rhsReceivedDate;
rhsReceivedDate = that.getReceivedDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "receivedDate", lhsReceivedDate), LocatorUtils.property(thatLocator, "receivedDate", rhsReceivedDate), lhsReceivedDate, rhsReceivedDate)) {
return false;
}
}
{
PaidDateType lhsPaidDate;
lhsPaidDate = this.getPaidDate();
PaidDateType rhsPaidDate;
rhsPaidDate = that.getPaidDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paidDate", lhsPaidDate), LocatorUtils.property(thatLocator, "paidDate", rhsPaidDate), lhsPaidDate, rhsPaidDate)) {
return false;
}
}
{
PaidTimeType lhsPaidTime;
lhsPaidTime = this.getPaidTime();
PaidTimeType rhsPaidTime;
rhsPaidTime = that.getPaidTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "paidTime", lhsPaidTime), LocatorUtils.property(thatLocator, "paidTime", rhsPaidTime), lhsPaidTime, rhsPaidTime)) {
return false;
}
}
{
InstructionIDType lhsInstructionID;
lhsInstructionID = this.getInstructionID();
InstructionIDType rhsInstructionID;
rhsInstructionID = that.getInstructionID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "instructionID", lhsInstructionID), LocatorUtils.property(thatLocator, "instructionID", rhsInstructionID), lhsInstructionID, rhsInstructionID)) {
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;
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID);
}
{
PaidAmountType thePaidAmount;
thePaidAmount = this.getPaidAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paidAmount", thePaidAmount), currentHashCode, thePaidAmount);
}
{
ReceivedDateType theReceivedDate;
theReceivedDate = this.getReceivedDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "receivedDate", theReceivedDate), currentHashCode, theReceivedDate);
}
{
PaidDateType thePaidDate;
thePaidDate = this.getPaidDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paidDate", thePaidDate), currentHashCode, thePaidDate);
}
{
PaidTimeType thePaidTime;
thePaidTime = this.getPaidTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "paidTime", thePaidTime), currentHashCode, thePaidTime);
}
{
InstructionIDType theInstructionID;
theInstructionID = this.getInstructionID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instructionID", theInstructionID), currentHashCode, theInstructionID);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}