All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.BallastWaterTransactionType 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.ExchangeMethodCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExchangedPercentType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SalinityMeasureType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SeaHeightMeasureType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TankIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TankTypeCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TransactionDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.VolumeMeasureType;
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 BallastWaterTransactionType complex type. * *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. * *

 * <complexType name="BallastWaterTransactionType">
 *   <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}TankID" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TankTypeCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExchangeMethodCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExchangedPercent" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}VolumeMeasure" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SeaHeightMeasure" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}SalinityMeasure" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TransactionDate" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Location" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}BallastWaterTemperature" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BallastWaterTransactionType", propOrder = { "ublExtensions", "tankID", "tankTypeCode", "exchangeMethodCode", "exchangedPercent", "volumeMeasure", "seaHeightMeasure", "salinityMeasure", "transactionDate", "location", "ballastWaterTemperature" }) public class BallastWaterTransactionType 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 = "TankID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected TankIDType tankID; @XmlElement(name = "TankTypeCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected TankTypeCodeType tankTypeCode; @XmlElement(name = "ExchangeMethodCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected ExchangeMethodCodeType exchangeMethodCode; @XmlElement(name = "ExchangedPercent", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected ExchangedPercentType exchangedPercent; @XmlElement(name = "VolumeMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected VolumeMeasureType volumeMeasure; @XmlElement(name = "SeaHeightMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected SeaHeightMeasureType seaHeightMeasure; @XmlElement(name = "SalinityMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected SalinityMeasureType salinityMeasure; @XmlElement(name = "TransactionDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") protected TransactionDateType transactionDate; @XmlElement(name = "Location") protected LocationType location; @XmlElement(name = "BallastWaterTemperature") protected TemperatureType ballastWaterTemperature; /** * 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 tankID. * * @return * possible object is * {@link TankIDType } * */ public TankIDType getTankID() { return tankID; } /** * Define el valor de la propiedad tankID. * * @param value * allowed object is * {@link TankIDType } * */ public void setTankID(TankIDType value) { this.tankID = value; } /** * Obtiene el valor de la propiedad tankTypeCode. * * @return * possible object is * {@link TankTypeCodeType } * */ public TankTypeCodeType getTankTypeCode() { return tankTypeCode; } /** * Define el valor de la propiedad tankTypeCode. * * @param value * allowed object is * {@link TankTypeCodeType } * */ public void setTankTypeCode(TankTypeCodeType value) { this.tankTypeCode = value; } /** * Obtiene el valor de la propiedad exchangeMethodCode. * * @return * possible object is * {@link ExchangeMethodCodeType } * */ public ExchangeMethodCodeType getExchangeMethodCode() { return exchangeMethodCode; } /** * Define el valor de la propiedad exchangeMethodCode. * * @param value * allowed object is * {@link ExchangeMethodCodeType } * */ public void setExchangeMethodCode(ExchangeMethodCodeType value) { this.exchangeMethodCode = value; } /** * Obtiene el valor de la propiedad exchangedPercent. * * @return * possible object is * {@link ExchangedPercentType } * */ public ExchangedPercentType getExchangedPercent() { return exchangedPercent; } /** * Define el valor de la propiedad exchangedPercent. * * @param value * allowed object is * {@link ExchangedPercentType } * */ public void setExchangedPercent(ExchangedPercentType value) { this.exchangedPercent = value; } /** * Obtiene el valor de la propiedad volumeMeasure. * * @return * possible object is * {@link VolumeMeasureType } * */ public VolumeMeasureType getVolumeMeasure() { return volumeMeasure; } /** * Define el valor de la propiedad volumeMeasure. * * @param value * allowed object is * {@link VolumeMeasureType } * */ public void setVolumeMeasure(VolumeMeasureType value) { this.volumeMeasure = value; } /** * Obtiene el valor de la propiedad seaHeightMeasure. * * @return * possible object is * {@link SeaHeightMeasureType } * */ public SeaHeightMeasureType getSeaHeightMeasure() { return seaHeightMeasure; } /** * Define el valor de la propiedad seaHeightMeasure. * * @param value * allowed object is * {@link SeaHeightMeasureType } * */ public void setSeaHeightMeasure(SeaHeightMeasureType value) { this.seaHeightMeasure = value; } /** * Obtiene el valor de la propiedad salinityMeasure. * * @return * possible object is * {@link SalinityMeasureType } * */ public SalinityMeasureType getSalinityMeasure() { return salinityMeasure; } /** * Define el valor de la propiedad salinityMeasure. * * @param value * allowed object is * {@link SalinityMeasureType } * */ public void setSalinityMeasure(SalinityMeasureType value) { this.salinityMeasure = value; } /** * Obtiene el valor de la propiedad transactionDate. * * @return * possible object is * {@link TransactionDateType } * */ public TransactionDateType getTransactionDate() { return transactionDate; } /** * Define el valor de la propiedad transactionDate. * * @param value * allowed object is * {@link TransactionDateType } * */ public void setTransactionDate(TransactionDateType value) { this.transactionDate = value; } /** * Obtiene el valor de la propiedad location. * * @return * possible object is * {@link LocationType } * */ public LocationType getLocation() { return location; } /** * Define el valor de la propiedad location. * * @param value * allowed object is * {@link LocationType } * */ public void setLocation(LocationType value) { this.location = value; } /** * Obtiene el valor de la propiedad ballastWaterTemperature. * * @return * possible object is * {@link TemperatureType } * */ public TemperatureType getBallastWaterTemperature() { return ballastWaterTemperature; } /** * Define el valor de la propiedad ballastWaterTemperature. * * @param value * allowed object is * {@link TemperatureType } * */ public void setBallastWaterTemperature(TemperatureType value) { this.ballastWaterTemperature = 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)); } { TankIDType theTankID; theTankID = this.getTankID(); strategy.appendField(locator, this, "tankID", buffer, theTankID, (this.tankID!= null)); } { TankTypeCodeType theTankTypeCode; theTankTypeCode = this.getTankTypeCode(); strategy.appendField(locator, this, "tankTypeCode", buffer, theTankTypeCode, (this.tankTypeCode!= null)); } { ExchangeMethodCodeType theExchangeMethodCode; theExchangeMethodCode = this.getExchangeMethodCode(); strategy.appendField(locator, this, "exchangeMethodCode", buffer, theExchangeMethodCode, (this.exchangeMethodCode!= null)); } { ExchangedPercentType theExchangedPercent; theExchangedPercent = this.getExchangedPercent(); strategy.appendField(locator, this, "exchangedPercent", buffer, theExchangedPercent, (this.exchangedPercent!= null)); } { VolumeMeasureType theVolumeMeasure; theVolumeMeasure = this.getVolumeMeasure(); strategy.appendField(locator, this, "volumeMeasure", buffer, theVolumeMeasure, (this.volumeMeasure!= null)); } { SeaHeightMeasureType theSeaHeightMeasure; theSeaHeightMeasure = this.getSeaHeightMeasure(); strategy.appendField(locator, this, "seaHeightMeasure", buffer, theSeaHeightMeasure, (this.seaHeightMeasure!= null)); } { SalinityMeasureType theSalinityMeasure; theSalinityMeasure = this.getSalinityMeasure(); strategy.appendField(locator, this, "salinityMeasure", buffer, theSalinityMeasure, (this.salinityMeasure!= null)); } { TransactionDateType theTransactionDate; theTransactionDate = this.getTransactionDate(); strategy.appendField(locator, this, "transactionDate", buffer, theTransactionDate, (this.transactionDate!= null)); } { LocationType theLocation; theLocation = this.getLocation(); strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null)); } { TemperatureType theBallastWaterTemperature; theBallastWaterTemperature = this.getBallastWaterTemperature(); strategy.appendField(locator, this, "ballastWaterTemperature", buffer, theBallastWaterTemperature, (this.ballastWaterTemperature!= 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 BallastWaterTransactionType that = ((BallastWaterTransactionType) 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; } } { TankIDType lhsTankID; lhsTankID = this.getTankID(); TankIDType rhsTankID; rhsTankID = that.getTankID(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tankID", lhsTankID), LocatorUtils.property(thatLocator, "tankID", rhsTankID), lhsTankID, rhsTankID, (this.tankID!= null), (that.tankID!= null))) { return false; } } { TankTypeCodeType lhsTankTypeCode; lhsTankTypeCode = this.getTankTypeCode(); TankTypeCodeType rhsTankTypeCode; rhsTankTypeCode = that.getTankTypeCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tankTypeCode", lhsTankTypeCode), LocatorUtils.property(thatLocator, "tankTypeCode", rhsTankTypeCode), lhsTankTypeCode, rhsTankTypeCode, (this.tankTypeCode!= null), (that.tankTypeCode!= null))) { return false; } } { ExchangeMethodCodeType lhsExchangeMethodCode; lhsExchangeMethodCode = this.getExchangeMethodCode(); ExchangeMethodCodeType rhsExchangeMethodCode; rhsExchangeMethodCode = that.getExchangeMethodCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "exchangeMethodCode", lhsExchangeMethodCode), LocatorUtils.property(thatLocator, "exchangeMethodCode", rhsExchangeMethodCode), lhsExchangeMethodCode, rhsExchangeMethodCode, (this.exchangeMethodCode!= null), (that.exchangeMethodCode!= null))) { return false; } } { ExchangedPercentType lhsExchangedPercent; lhsExchangedPercent = this.getExchangedPercent(); ExchangedPercentType rhsExchangedPercent; rhsExchangedPercent = that.getExchangedPercent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "exchangedPercent", lhsExchangedPercent), LocatorUtils.property(thatLocator, "exchangedPercent", rhsExchangedPercent), lhsExchangedPercent, rhsExchangedPercent, (this.exchangedPercent!= null), (that.exchangedPercent!= null))) { return false; } } { VolumeMeasureType lhsVolumeMeasure; lhsVolumeMeasure = this.getVolumeMeasure(); VolumeMeasureType rhsVolumeMeasure; rhsVolumeMeasure = that.getVolumeMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "volumeMeasure", lhsVolumeMeasure), LocatorUtils.property(thatLocator, "volumeMeasure", rhsVolumeMeasure), lhsVolumeMeasure, rhsVolumeMeasure, (this.volumeMeasure!= null), (that.volumeMeasure!= null))) { return false; } } { SeaHeightMeasureType lhsSeaHeightMeasure; lhsSeaHeightMeasure = this.getSeaHeightMeasure(); SeaHeightMeasureType rhsSeaHeightMeasure; rhsSeaHeightMeasure = that.getSeaHeightMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "seaHeightMeasure", lhsSeaHeightMeasure), LocatorUtils.property(thatLocator, "seaHeightMeasure", rhsSeaHeightMeasure), lhsSeaHeightMeasure, rhsSeaHeightMeasure, (this.seaHeightMeasure!= null), (that.seaHeightMeasure!= null))) { return false; } } { SalinityMeasureType lhsSalinityMeasure; lhsSalinityMeasure = this.getSalinityMeasure(); SalinityMeasureType rhsSalinityMeasure; rhsSalinityMeasure = that.getSalinityMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "salinityMeasure", lhsSalinityMeasure), LocatorUtils.property(thatLocator, "salinityMeasure", rhsSalinityMeasure), lhsSalinityMeasure, rhsSalinityMeasure, (this.salinityMeasure!= null), (that.salinityMeasure!= null))) { return false; } } { TransactionDateType lhsTransactionDate; lhsTransactionDate = this.getTransactionDate(); TransactionDateType rhsTransactionDate; rhsTransactionDate = that.getTransactionDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "transactionDate", lhsTransactionDate), LocatorUtils.property(thatLocator, "transactionDate", rhsTransactionDate), lhsTransactionDate, rhsTransactionDate, (this.transactionDate!= null), (that.transactionDate!= null))) { return false; } } { LocationType lhsLocation; lhsLocation = this.getLocation(); LocationType rhsLocation; rhsLocation = that.getLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation, (this.location!= null), (that.location!= null))) { return false; } } { TemperatureType lhsBallastWaterTemperature; lhsBallastWaterTemperature = this.getBallastWaterTemperature(); TemperatureType rhsBallastWaterTemperature; rhsBallastWaterTemperature = that.getBallastWaterTemperature(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ballastWaterTemperature", lhsBallastWaterTemperature), LocatorUtils.property(thatLocator, "ballastWaterTemperature", rhsBallastWaterTemperature), lhsBallastWaterTemperature, rhsBallastWaterTemperature, (this.ballastWaterTemperature!= null), (that.ballastWaterTemperature!= 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)); } { TankIDType theTankID; theTankID = this.getTankID(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tankID", theTankID), currentHashCode, theTankID, (this.tankID!= null)); } { TankTypeCodeType theTankTypeCode; theTankTypeCode = this.getTankTypeCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tankTypeCode", theTankTypeCode), currentHashCode, theTankTypeCode, (this.tankTypeCode!= null)); } { ExchangeMethodCodeType theExchangeMethodCode; theExchangeMethodCode = this.getExchangeMethodCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exchangeMethodCode", theExchangeMethodCode), currentHashCode, theExchangeMethodCode, (this.exchangeMethodCode!= null)); } { ExchangedPercentType theExchangedPercent; theExchangedPercent = this.getExchangedPercent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exchangedPercent", theExchangedPercent), currentHashCode, theExchangedPercent, (this.exchangedPercent!= null)); } { VolumeMeasureType theVolumeMeasure; theVolumeMeasure = this.getVolumeMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "volumeMeasure", theVolumeMeasure), currentHashCode, theVolumeMeasure, (this.volumeMeasure!= null)); } { SeaHeightMeasureType theSeaHeightMeasure; theSeaHeightMeasure = this.getSeaHeightMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "seaHeightMeasure", theSeaHeightMeasure), currentHashCode, theSeaHeightMeasure, (this.seaHeightMeasure!= null)); } { SalinityMeasureType theSalinityMeasure; theSalinityMeasure = this.getSalinityMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "salinityMeasure", theSalinityMeasure), currentHashCode, theSalinityMeasure, (this.salinityMeasure!= null)); } { TransactionDateType theTransactionDate; theTransactionDate = this.getTransactionDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "transactionDate", theTransactionDate), currentHashCode, theTransactionDate, (this.transactionDate!= null)); } { LocationType theLocation; theLocation = this.getLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null)); } { TemperatureType theBallastWaterTemperature; theBallastWaterTemperature = this.getBallastWaterTemperature(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ballastWaterTemperature", theBallastWaterTemperature), currentHashCode, theBallastWaterTemperature, (this.ballastWaterTemperature!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy