oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.OrderReferenceType Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2021.03.22 a las 07:02:09 PM CET
//
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.CopyIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CustomerReferenceType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IssueDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IssueTimeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.OrderTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SalesOrderIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UUIDType;
import oasis.names.specification.ubl.schema.xsd.commonextensioncomponents_2.UBLExtensionsType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Clase Java para OrderReferenceType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="OrderReferenceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2}UBLExtensions" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SalesOrderID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CopyIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UUID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}IssueDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}IssueTime" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CustomerReference" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}OrderTypeCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}DocumentReference" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrderReferenceType", propOrder = {
"ublExtensions",
"id",
"salesOrderID",
"copyIndicator",
"uuid",
"issueDate",
"issueTime",
"customerReference",
"orderTypeCode",
"documentReference"
})
public class OrderReferenceType implements Serializable, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "UBLExtensions", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2")
protected UBLExtensionsType ublExtensions;
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
protected IDType id;
@XmlElement(name = "SalesOrderID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected SalesOrderIDType salesOrderID;
@XmlElement(name = "CopyIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected CopyIndicatorType copyIndicator;
@XmlElement(name = "UUID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected UUIDType uuid;
@XmlElement(name = "IssueDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected IssueDateType issueDate;
@XmlElement(name = "IssueTime", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected IssueTimeType issueTime;
@XmlElement(name = "CustomerReference", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected CustomerReferenceType customerReference;
@XmlElement(name = "OrderTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected OrderTypeCodeType orderTypeCode;
@XmlElement(name = "DocumentReference")
protected DocumentReferenceType documentReference;
/**
* Obtiene el valor de la propiedad ublExtensions.
*
* @return
* possible object is
* {@link UBLExtensionsType }
*
*/
public UBLExtensionsType getUBLExtensions() {
return ublExtensions;
}
/**
* Define el valor de la propiedad ublExtensions.
*
* @param value
* allowed object is
* {@link UBLExtensionsType }
*
*/
public void setUBLExtensions(UBLExtensionsType value) {
this.ublExtensions = value;
}
/**
* Obtiene el valor de la propiedad id.
*
* @return
* possible object is
* {@link IDType }
*
*/
public IDType getID() {
return id;
}
/**
* Define el valor de la propiedad id.
*
* @param value
* allowed object is
* {@link IDType }
*
*/
public void setID(IDType value) {
this.id = value;
}
/**
* Obtiene el valor de la propiedad salesOrderID.
*
* @return
* possible object is
* {@link SalesOrderIDType }
*
*/
public SalesOrderIDType getSalesOrderID() {
return salesOrderID;
}
/**
* Define el valor de la propiedad salesOrderID.
*
* @param value
* allowed object is
* {@link SalesOrderIDType }
*
*/
public void setSalesOrderID(SalesOrderIDType value) {
this.salesOrderID = value;
}
/**
* Obtiene el valor de la propiedad copyIndicator.
*
* @return
* possible object is
* {@link CopyIndicatorType }
*
*/
public CopyIndicatorType getCopyIndicator() {
return copyIndicator;
}
/**
* Define el valor de la propiedad copyIndicator.
*
* @param value
* allowed object is
* {@link CopyIndicatorType }
*
*/
public void setCopyIndicator(CopyIndicatorType value) {
this.copyIndicator = value;
}
/**
* Obtiene el valor de la propiedad uuid.
*
* @return
* possible object is
* {@link UUIDType }
*
*/
public UUIDType getUUID() {
return uuid;
}
/**
* Define el valor de la propiedad uuid.
*
* @param value
* allowed object is
* {@link UUIDType }
*
*/
public void setUUID(UUIDType value) {
this.uuid = value;
}
/**
* Obtiene el valor de la propiedad issueDate.
*
* @return
* possible object is
* {@link IssueDateType }
*
*/
public IssueDateType getIssueDate() {
return issueDate;
}
/**
* Define el valor de la propiedad issueDate.
*
* @param value
* allowed object is
* {@link IssueDateType }
*
*/
public void setIssueDate(IssueDateType value) {
this.issueDate = value;
}
/**
* Obtiene el valor de la propiedad issueTime.
*
* @return
* possible object is
* {@link IssueTimeType }
*
*/
public IssueTimeType getIssueTime() {
return issueTime;
}
/**
* Define el valor de la propiedad issueTime.
*
* @param value
* allowed object is
* {@link IssueTimeType }
*
*/
public void setIssueTime(IssueTimeType value) {
this.issueTime = value;
}
/**
* Obtiene el valor de la propiedad customerReference.
*
* @return
* possible object is
* {@link CustomerReferenceType }
*
*/
public CustomerReferenceType getCustomerReference() {
return customerReference;
}
/**
* Define el valor de la propiedad customerReference.
*
* @param value
* allowed object is
* {@link CustomerReferenceType }
*
*/
public void setCustomerReference(CustomerReferenceType value) {
this.customerReference = value;
}
/**
* Obtiene el valor de la propiedad orderTypeCode.
*
* @return
* possible object is
* {@link OrderTypeCodeType }
*
*/
public OrderTypeCodeType getOrderTypeCode() {
return orderTypeCode;
}
/**
* Define el valor de la propiedad orderTypeCode.
*
* @param value
* allowed object is
* {@link OrderTypeCodeType }
*
*/
public void setOrderTypeCode(OrderTypeCodeType value) {
this.orderTypeCode = value;
}
/**
* Obtiene el valor de la propiedad documentReference.
*
* @return
* possible object is
* {@link DocumentReferenceType }
*
*/
public DocumentReferenceType getDocumentReference() {
return documentReference;
}
/**
* Define el valor de la propiedad documentReference.
*
* @param value
* allowed object is
* {@link DocumentReferenceType }
*
*/
public void setDocumentReference(DocumentReferenceType value) {
this.documentReference = 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) {
{
UBLExtensionsType theUBLExtensions;
theUBLExtensions = this.getUBLExtensions();
strategy.appendField(locator, this, "ublExtensions", buffer, theUBLExtensions, (this.ublExtensions!= null));
}
{
IDType theID;
theID = this.getID();
strategy.appendField(locator, this, "id", buffer, theID, (this.id!= null));
}
{
SalesOrderIDType theSalesOrderID;
theSalesOrderID = this.getSalesOrderID();
strategy.appendField(locator, this, "salesOrderID", buffer, theSalesOrderID, (this.salesOrderID!= null));
}
{
CopyIndicatorType theCopyIndicator;
theCopyIndicator = this.getCopyIndicator();
strategy.appendField(locator, this, "copyIndicator", buffer, theCopyIndicator, (this.copyIndicator!= null));
}
{
UUIDType theUUID;
theUUID = this.getUUID();
strategy.appendField(locator, this, "uuid", buffer, theUUID, (this.uuid!= null));
}
{
IssueDateType theIssueDate;
theIssueDate = this.getIssueDate();
strategy.appendField(locator, this, "issueDate", buffer, theIssueDate, (this.issueDate!= null));
}
{
IssueTimeType theIssueTime;
theIssueTime = this.getIssueTime();
strategy.appendField(locator, this, "issueTime", buffer, theIssueTime, (this.issueTime!= null));
}
{
CustomerReferenceType theCustomerReference;
theCustomerReference = this.getCustomerReference();
strategy.appendField(locator, this, "customerReference", buffer, theCustomerReference, (this.customerReference!= null));
}
{
OrderTypeCodeType theOrderTypeCode;
theOrderTypeCode = this.getOrderTypeCode();
strategy.appendField(locator, this, "orderTypeCode", buffer, theOrderTypeCode, (this.orderTypeCode!= null));
}
{
DocumentReferenceType theDocumentReference;
theDocumentReference = this.getDocumentReference();
strategy.appendField(locator, this, "documentReference", buffer, theDocumentReference, (this.documentReference!= 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 OrderReferenceType that = ((OrderReferenceType) object);
{
UBLExtensionsType lhsUBLExtensions;
lhsUBLExtensions = this.getUBLExtensions();
UBLExtensionsType rhsUBLExtensions;
rhsUBLExtensions = that.getUBLExtensions();
if (!strategy.equals(LocatorUtils.property(thisLocator, "ublExtensions", lhsUBLExtensions), LocatorUtils.property(thatLocator, "ublExtensions", rhsUBLExtensions), lhsUBLExtensions, rhsUBLExtensions, (this.ublExtensions!= null), (that.ublExtensions!= null))) {
return false;
}
}
{
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, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
SalesOrderIDType lhsSalesOrderID;
lhsSalesOrderID = this.getSalesOrderID();
SalesOrderIDType rhsSalesOrderID;
rhsSalesOrderID = that.getSalesOrderID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "salesOrderID", lhsSalesOrderID), LocatorUtils.property(thatLocator, "salesOrderID", rhsSalesOrderID), lhsSalesOrderID, rhsSalesOrderID, (this.salesOrderID!= null), (that.salesOrderID!= null))) {
return false;
}
}
{
CopyIndicatorType lhsCopyIndicator;
lhsCopyIndicator = this.getCopyIndicator();
CopyIndicatorType rhsCopyIndicator;
rhsCopyIndicator = that.getCopyIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "copyIndicator", lhsCopyIndicator), LocatorUtils.property(thatLocator, "copyIndicator", rhsCopyIndicator), lhsCopyIndicator, rhsCopyIndicator, (this.copyIndicator!= null), (that.copyIndicator!= null))) {
return false;
}
}
{
UUIDType lhsUUID;
lhsUUID = this.getUUID();
UUIDType rhsUUID;
rhsUUID = that.getUUID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "uuid", lhsUUID), LocatorUtils.property(thatLocator, "uuid", rhsUUID), lhsUUID, rhsUUID, (this.uuid!= null), (that.uuid!= null))) {
return false;
}
}
{
IssueDateType lhsIssueDate;
lhsIssueDate = this.getIssueDate();
IssueDateType rhsIssueDate;
rhsIssueDate = that.getIssueDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "issueDate", lhsIssueDate), LocatorUtils.property(thatLocator, "issueDate", rhsIssueDate), lhsIssueDate, rhsIssueDate, (this.issueDate!= null), (that.issueDate!= null))) {
return false;
}
}
{
IssueTimeType lhsIssueTime;
lhsIssueTime = this.getIssueTime();
IssueTimeType rhsIssueTime;
rhsIssueTime = that.getIssueTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "issueTime", lhsIssueTime), LocatorUtils.property(thatLocator, "issueTime", rhsIssueTime), lhsIssueTime, rhsIssueTime, (this.issueTime!= null), (that.issueTime!= null))) {
return false;
}
}
{
CustomerReferenceType lhsCustomerReference;
lhsCustomerReference = this.getCustomerReference();
CustomerReferenceType rhsCustomerReference;
rhsCustomerReference = that.getCustomerReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "customerReference", lhsCustomerReference), LocatorUtils.property(thatLocator, "customerReference", rhsCustomerReference), lhsCustomerReference, rhsCustomerReference, (this.customerReference!= null), (that.customerReference!= null))) {
return false;
}
}
{
OrderTypeCodeType lhsOrderTypeCode;
lhsOrderTypeCode = this.getOrderTypeCode();
OrderTypeCodeType rhsOrderTypeCode;
rhsOrderTypeCode = that.getOrderTypeCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "orderTypeCode", lhsOrderTypeCode), LocatorUtils.property(thatLocator, "orderTypeCode", rhsOrderTypeCode), lhsOrderTypeCode, rhsOrderTypeCode, (this.orderTypeCode!= null), (that.orderTypeCode!= null))) {
return false;
}
}
{
DocumentReferenceType lhsDocumentReference;
lhsDocumentReference = this.getDocumentReference();
DocumentReferenceType rhsDocumentReference;
rhsDocumentReference = that.getDocumentReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "documentReference", lhsDocumentReference), LocatorUtils.property(thatLocator, "documentReference", rhsDocumentReference), lhsDocumentReference, rhsDocumentReference, (this.documentReference!= null), (that.documentReference!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
UBLExtensionsType theUBLExtensions;
theUBLExtensions = this.getUBLExtensions();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ublExtensions", theUBLExtensions), currentHashCode, theUBLExtensions, (this.ublExtensions!= null));
}
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID, (this.id!= null));
}
{
SalesOrderIDType theSalesOrderID;
theSalesOrderID = this.getSalesOrderID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "salesOrderID", theSalesOrderID), currentHashCode, theSalesOrderID, (this.salesOrderID!= null));
}
{
CopyIndicatorType theCopyIndicator;
theCopyIndicator = this.getCopyIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "copyIndicator", theCopyIndicator), currentHashCode, theCopyIndicator, (this.copyIndicator!= null));
}
{
UUIDType theUUID;
theUUID = this.getUUID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uuid", theUUID), currentHashCode, theUUID, (this.uuid!= null));
}
{
IssueDateType theIssueDate;
theIssueDate = this.getIssueDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issueDate", theIssueDate), currentHashCode, theIssueDate, (this.issueDate!= null));
}
{
IssueTimeType theIssueTime;
theIssueTime = this.getIssueTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issueTime", theIssueTime), currentHashCode, theIssueTime, (this.issueTime!= null));
}
{
CustomerReferenceType theCustomerReference;
theCustomerReference = this.getCustomerReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "customerReference", theCustomerReference), currentHashCode, theCustomerReference, (this.customerReference!= null));
}
{
OrderTypeCodeType theOrderTypeCode;
theOrderTypeCode = this.getOrderTypeCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderTypeCode", theOrderTypeCode), currentHashCode, theOrderTypeCode, (this.orderTypeCode!= null));
}
{
DocumentReferenceType theDocumentReference;
theDocumentReference = this.getDocumentReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentReference", theDocumentReference), currentHashCode, theDocumentReference, (this.documentReference!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}