oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.EconomicOperatorShortListType 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 java.util.ArrayList;
import java.util.List;
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.ExpectedQuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LimitationDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MaximumQuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MinimumQuantityType;
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 EconomicOperatorShortListType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="EconomicOperatorShortListType">
* <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}LimitationDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExpectedQuantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MaximumQuantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MinimumQuantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PreSelectedParty" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EconomicOperatorShortListType", propOrder = {
"ublExtensions",
"limitationDescription",
"expectedQuantity",
"maximumQuantity",
"minimumQuantity",
"preSelectedParty"
})
public class EconomicOperatorShortListType 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 = "LimitationDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List limitationDescription;
@XmlElement(name = "ExpectedQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected ExpectedQuantityType expectedQuantity;
@XmlElement(name = "MaximumQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected MaximumQuantityType maximumQuantity;
@XmlElement(name = "MinimumQuantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected MinimumQuantityType minimumQuantity;
@XmlElement(name = "PreSelectedParty")
protected List preSelectedParty;
/**
* 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;
}
/**
* Gets the value of the limitationDescription property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the limitationDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getLimitationDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LimitationDescriptionType }
*
*
*/
public List getLimitationDescription() {
if (limitationDescription == null) {
limitationDescription = new ArrayList();
}
return this.limitationDescription;
}
/**
* Obtiene el valor de la propiedad expectedQuantity.
*
* @return
* possible object is
* {@link ExpectedQuantityType }
*
*/
public ExpectedQuantityType getExpectedQuantity() {
return expectedQuantity;
}
/**
* Define el valor de la propiedad expectedQuantity.
*
* @param value
* allowed object is
* {@link ExpectedQuantityType }
*
*/
public void setExpectedQuantity(ExpectedQuantityType value) {
this.expectedQuantity = value;
}
/**
* Obtiene el valor de la propiedad maximumQuantity.
*
* @return
* possible object is
* {@link MaximumQuantityType }
*
*/
public MaximumQuantityType getMaximumQuantity() {
return maximumQuantity;
}
/**
* Define el valor de la propiedad maximumQuantity.
*
* @param value
* allowed object is
* {@link MaximumQuantityType }
*
*/
public void setMaximumQuantity(MaximumQuantityType value) {
this.maximumQuantity = value;
}
/**
* Obtiene el valor de la propiedad minimumQuantity.
*
* @return
* possible object is
* {@link MinimumQuantityType }
*
*/
public MinimumQuantityType getMinimumQuantity() {
return minimumQuantity;
}
/**
* Define el valor de la propiedad minimumQuantity.
*
* @param value
* allowed object is
* {@link MinimumQuantityType }
*
*/
public void setMinimumQuantity(MinimumQuantityType value) {
this.minimumQuantity = value;
}
/**
* Gets the value of the preSelectedParty property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the preSelectedParty property.
*
*
* For example, to add a new item, do as follows:
*
* getPreSelectedParty().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PartyType }
*
*
*/
public List getPreSelectedParty() {
if (preSelectedParty == null) {
preSelectedParty = new ArrayList();
}
return this.preSelectedParty;
}
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));
}
{
List theLimitationDescription;
theLimitationDescription = (((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty()))?this.getLimitationDescription():null);
strategy.appendField(locator, this, "limitationDescription", buffer, theLimitationDescription, ((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty())));
}
{
ExpectedQuantityType theExpectedQuantity;
theExpectedQuantity = this.getExpectedQuantity();
strategy.appendField(locator, this, "expectedQuantity", buffer, theExpectedQuantity, (this.expectedQuantity!= null));
}
{
MaximumQuantityType theMaximumQuantity;
theMaximumQuantity = this.getMaximumQuantity();
strategy.appendField(locator, this, "maximumQuantity", buffer, theMaximumQuantity, (this.maximumQuantity!= null));
}
{
MinimumQuantityType theMinimumQuantity;
theMinimumQuantity = this.getMinimumQuantity();
strategy.appendField(locator, this, "minimumQuantity", buffer, theMinimumQuantity, (this.minimumQuantity!= null));
}
{
List thePreSelectedParty;
thePreSelectedParty = (((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty()))?this.getPreSelectedParty():null);
strategy.appendField(locator, this, "preSelectedParty", buffer, thePreSelectedParty, ((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty())));
}
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 EconomicOperatorShortListType that = ((EconomicOperatorShortListType) 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;
}
}
{
List lhsLimitationDescription;
lhsLimitationDescription = (((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty()))?this.getLimitationDescription():null);
List rhsLimitationDescription;
rhsLimitationDescription = (((that.limitationDescription!= null)&&(!that.limitationDescription.isEmpty()))?that.getLimitationDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "limitationDescription", lhsLimitationDescription), LocatorUtils.property(thatLocator, "limitationDescription", rhsLimitationDescription), lhsLimitationDescription, rhsLimitationDescription, ((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty())), ((that.limitationDescription!= null)&&(!that.limitationDescription.isEmpty())))) {
return false;
}
}
{
ExpectedQuantityType lhsExpectedQuantity;
lhsExpectedQuantity = this.getExpectedQuantity();
ExpectedQuantityType rhsExpectedQuantity;
rhsExpectedQuantity = that.getExpectedQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "expectedQuantity", lhsExpectedQuantity), LocatorUtils.property(thatLocator, "expectedQuantity", rhsExpectedQuantity), lhsExpectedQuantity, rhsExpectedQuantity, (this.expectedQuantity!= null), (that.expectedQuantity!= null))) {
return false;
}
}
{
MaximumQuantityType lhsMaximumQuantity;
lhsMaximumQuantity = this.getMaximumQuantity();
MaximumQuantityType rhsMaximumQuantity;
rhsMaximumQuantity = that.getMaximumQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "maximumQuantity", lhsMaximumQuantity), LocatorUtils.property(thatLocator, "maximumQuantity", rhsMaximumQuantity), lhsMaximumQuantity, rhsMaximumQuantity, (this.maximumQuantity!= null), (that.maximumQuantity!= null))) {
return false;
}
}
{
MinimumQuantityType lhsMinimumQuantity;
lhsMinimumQuantity = this.getMinimumQuantity();
MinimumQuantityType rhsMinimumQuantity;
rhsMinimumQuantity = that.getMinimumQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "minimumQuantity", lhsMinimumQuantity), LocatorUtils.property(thatLocator, "minimumQuantity", rhsMinimumQuantity), lhsMinimumQuantity, rhsMinimumQuantity, (this.minimumQuantity!= null), (that.minimumQuantity!= null))) {
return false;
}
}
{
List lhsPreSelectedParty;
lhsPreSelectedParty = (((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty()))?this.getPreSelectedParty():null);
List rhsPreSelectedParty;
rhsPreSelectedParty = (((that.preSelectedParty!= null)&&(!that.preSelectedParty.isEmpty()))?that.getPreSelectedParty():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "preSelectedParty", lhsPreSelectedParty), LocatorUtils.property(thatLocator, "preSelectedParty", rhsPreSelectedParty), lhsPreSelectedParty, rhsPreSelectedParty, ((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty())), ((that.preSelectedParty!= null)&&(!that.preSelectedParty.isEmpty())))) {
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));
}
{
List theLimitationDescription;
theLimitationDescription = (((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty()))?this.getLimitationDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "limitationDescription", theLimitationDescription), currentHashCode, theLimitationDescription, ((this.limitationDescription!= null)&&(!this.limitationDescription.isEmpty())));
}
{
ExpectedQuantityType theExpectedQuantity;
theExpectedQuantity = this.getExpectedQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expectedQuantity", theExpectedQuantity), currentHashCode, theExpectedQuantity, (this.expectedQuantity!= null));
}
{
MaximumQuantityType theMaximumQuantity;
theMaximumQuantity = this.getMaximumQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maximumQuantity", theMaximumQuantity), currentHashCode, theMaximumQuantity, (this.maximumQuantity!= null));
}
{
MinimumQuantityType theMinimumQuantity;
theMinimumQuantity = this.getMinimumQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "minimumQuantity", theMinimumQuantity), currentHashCode, theMinimumQuantity, (this.minimumQuantity!= null));
}
{
List thePreSelectedParty;
thePreSelectedParty = (((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty()))?this.getPreSelectedParty():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "preSelectedParty", thePreSelectedParty), currentHashCode, thePreSelectedParty, ((this.preSelectedParty!= null)&&(!this.preSelectedParty.isEmpty())));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}