oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PortCallType 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.CargoAndBallastTankConditionDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExpectedAnchorageIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlannedInspectionsDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlannedOperationsDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlannedWorksDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PositionInPortIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ShipRequirementsDescriptionType;
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 PortCallType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="PortCallType">
* <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" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PlannedOperationsDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PlannedWorksDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PlannedInspectionsDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ExpectedAnchorageIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PositionInPortID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CargoAndBallastTankConditionDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ShipRequirementsDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}PrimaryPortCallPurpose" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AdditionalPortCallPurpose" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}RequestedArrivalEvent" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PortCallType", propOrder = {
"ublExtensions",
"id",
"plannedOperationsDescription",
"plannedWorksDescription",
"plannedInspectionsDescription",
"expectedAnchorageIndicator",
"positionInPortID",
"cargoAndBallastTankConditionDescription",
"shipRequirementsDescription",
"primaryPortCallPurpose",
"additionalPortCallPurpose",
"requestedArrivalEvent"
})
public class PortCallType 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")
protected IDType id;
@XmlElement(name = "PlannedOperationsDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List plannedOperationsDescription;
@XmlElement(name = "PlannedWorksDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List plannedWorksDescription;
@XmlElement(name = "PlannedInspectionsDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List plannedInspectionsDescription;
@XmlElement(name = "ExpectedAnchorageIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected ExpectedAnchorageIndicatorType expectedAnchorageIndicator;
@XmlElement(name = "PositionInPortID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PositionInPortIDType positionInPortID;
@XmlElement(name = "CargoAndBallastTankConditionDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List cargoAndBallastTankConditionDescription;
@XmlElement(name = "ShipRequirementsDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List shipRequirementsDescription;
@XmlElement(name = "PrimaryPortCallPurpose")
protected PortCallPurposeType primaryPortCallPurpose;
@XmlElement(name = "AdditionalPortCallPurpose")
protected List additionalPortCallPurpose;
@XmlElement(name = "RequestedArrivalEvent")
protected EventType requestedArrivalEvent;
/**
* 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;
}
/**
* Gets the value of the plannedOperationsDescription 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 plannedOperationsDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getPlannedOperationsDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PlannedOperationsDescriptionType }
*
*
*/
public List getPlannedOperationsDescription() {
if (plannedOperationsDescription == null) {
plannedOperationsDescription = new ArrayList();
}
return this.plannedOperationsDescription;
}
/**
* Gets the value of the plannedWorksDescription 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 plannedWorksDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getPlannedWorksDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PlannedWorksDescriptionType }
*
*
*/
public List getPlannedWorksDescription() {
if (plannedWorksDescription == null) {
plannedWorksDescription = new ArrayList();
}
return this.plannedWorksDescription;
}
/**
* Gets the value of the plannedInspectionsDescription 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 plannedInspectionsDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getPlannedInspectionsDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PlannedInspectionsDescriptionType }
*
*
*/
public List getPlannedInspectionsDescription() {
if (plannedInspectionsDescription == null) {
plannedInspectionsDescription = new ArrayList();
}
return this.plannedInspectionsDescription;
}
/**
* Obtiene el valor de la propiedad expectedAnchorageIndicator.
*
* @return
* possible object is
* {@link ExpectedAnchorageIndicatorType }
*
*/
public ExpectedAnchorageIndicatorType getExpectedAnchorageIndicator() {
return expectedAnchorageIndicator;
}
/**
* Define el valor de la propiedad expectedAnchorageIndicator.
*
* @param value
* allowed object is
* {@link ExpectedAnchorageIndicatorType }
*
*/
public void setExpectedAnchorageIndicator(ExpectedAnchorageIndicatorType value) {
this.expectedAnchorageIndicator = value;
}
/**
* Obtiene el valor de la propiedad positionInPortID.
*
* @return
* possible object is
* {@link PositionInPortIDType }
*
*/
public PositionInPortIDType getPositionInPortID() {
return positionInPortID;
}
/**
* Define el valor de la propiedad positionInPortID.
*
* @param value
* allowed object is
* {@link PositionInPortIDType }
*
*/
public void setPositionInPortID(PositionInPortIDType value) {
this.positionInPortID = value;
}
/**
* Gets the value of the cargoAndBallastTankConditionDescription 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 cargoAndBallastTankConditionDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getCargoAndBallastTankConditionDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CargoAndBallastTankConditionDescriptionType }
*
*
*/
public List getCargoAndBallastTankConditionDescription() {
if (cargoAndBallastTankConditionDescription == null) {
cargoAndBallastTankConditionDescription = new ArrayList();
}
return this.cargoAndBallastTankConditionDescription;
}
/**
* Gets the value of the shipRequirementsDescription 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 shipRequirementsDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getShipRequirementsDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ShipRequirementsDescriptionType }
*
*
*/
public List getShipRequirementsDescription() {
if (shipRequirementsDescription == null) {
shipRequirementsDescription = new ArrayList();
}
return this.shipRequirementsDescription;
}
/**
* Obtiene el valor de la propiedad primaryPortCallPurpose.
*
* @return
* possible object is
* {@link PortCallPurposeType }
*
*/
public PortCallPurposeType getPrimaryPortCallPurpose() {
return primaryPortCallPurpose;
}
/**
* Define el valor de la propiedad primaryPortCallPurpose.
*
* @param value
* allowed object is
* {@link PortCallPurposeType }
*
*/
public void setPrimaryPortCallPurpose(PortCallPurposeType value) {
this.primaryPortCallPurpose = value;
}
/**
* Gets the value of the additionalPortCallPurpose 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 additionalPortCallPurpose property.
*
*
* For example, to add a new item, do as follows:
*
* getAdditionalPortCallPurpose().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PortCallPurposeType }
*
*
*/
public List getAdditionalPortCallPurpose() {
if (additionalPortCallPurpose == null) {
additionalPortCallPurpose = new ArrayList();
}
return this.additionalPortCallPurpose;
}
/**
* Obtiene el valor de la propiedad requestedArrivalEvent.
*
* @return
* possible object is
* {@link EventType }
*
*/
public EventType getRequestedArrivalEvent() {
return requestedArrivalEvent;
}
/**
* Define el valor de la propiedad requestedArrivalEvent.
*
* @param value
* allowed object is
* {@link EventType }
*
*/
public void setRequestedArrivalEvent(EventType value) {
this.requestedArrivalEvent = 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));
}
{
List thePlannedOperationsDescription;
thePlannedOperationsDescription = (((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty()))?this.getPlannedOperationsDescription():null);
strategy.appendField(locator, this, "plannedOperationsDescription", buffer, thePlannedOperationsDescription, ((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty())));
}
{
List thePlannedWorksDescription;
thePlannedWorksDescription = (((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty()))?this.getPlannedWorksDescription():null);
strategy.appendField(locator, this, "plannedWorksDescription", buffer, thePlannedWorksDescription, ((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty())));
}
{
List thePlannedInspectionsDescription;
thePlannedInspectionsDescription = (((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty()))?this.getPlannedInspectionsDescription():null);
strategy.appendField(locator, this, "plannedInspectionsDescription", buffer, thePlannedInspectionsDescription, ((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty())));
}
{
ExpectedAnchorageIndicatorType theExpectedAnchorageIndicator;
theExpectedAnchorageIndicator = this.getExpectedAnchorageIndicator();
strategy.appendField(locator, this, "expectedAnchorageIndicator", buffer, theExpectedAnchorageIndicator, (this.expectedAnchorageIndicator!= null));
}
{
PositionInPortIDType thePositionInPortID;
thePositionInPortID = this.getPositionInPortID();
strategy.appendField(locator, this, "positionInPortID", buffer, thePositionInPortID, (this.positionInPortID!= null));
}
{
List theCargoAndBallastTankConditionDescription;
theCargoAndBallastTankConditionDescription = (((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty()))?this.getCargoAndBallastTankConditionDescription():null);
strategy.appendField(locator, this, "cargoAndBallastTankConditionDescription", buffer, theCargoAndBallastTankConditionDescription, ((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty())));
}
{
List theShipRequirementsDescription;
theShipRequirementsDescription = (((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty()))?this.getShipRequirementsDescription():null);
strategy.appendField(locator, this, "shipRequirementsDescription", buffer, theShipRequirementsDescription, ((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty())));
}
{
PortCallPurposeType thePrimaryPortCallPurpose;
thePrimaryPortCallPurpose = this.getPrimaryPortCallPurpose();
strategy.appendField(locator, this, "primaryPortCallPurpose", buffer, thePrimaryPortCallPurpose, (this.primaryPortCallPurpose!= null));
}
{
List theAdditionalPortCallPurpose;
theAdditionalPortCallPurpose = (((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty()))?this.getAdditionalPortCallPurpose():null);
strategy.appendField(locator, this, "additionalPortCallPurpose", buffer, theAdditionalPortCallPurpose, ((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty())));
}
{
EventType theRequestedArrivalEvent;
theRequestedArrivalEvent = this.getRequestedArrivalEvent();
strategy.appendField(locator, this, "requestedArrivalEvent", buffer, theRequestedArrivalEvent, (this.requestedArrivalEvent!= 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 PortCallType that = ((PortCallType) 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;
}
}
{
List lhsPlannedOperationsDescription;
lhsPlannedOperationsDescription = (((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty()))?this.getPlannedOperationsDescription():null);
List rhsPlannedOperationsDescription;
rhsPlannedOperationsDescription = (((that.plannedOperationsDescription!= null)&&(!that.plannedOperationsDescription.isEmpty()))?that.getPlannedOperationsDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "plannedOperationsDescription", lhsPlannedOperationsDescription), LocatorUtils.property(thatLocator, "plannedOperationsDescription", rhsPlannedOperationsDescription), lhsPlannedOperationsDescription, rhsPlannedOperationsDescription, ((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty())), ((that.plannedOperationsDescription!= null)&&(!that.plannedOperationsDescription.isEmpty())))) {
return false;
}
}
{
List lhsPlannedWorksDescription;
lhsPlannedWorksDescription = (((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty()))?this.getPlannedWorksDescription():null);
List rhsPlannedWorksDescription;
rhsPlannedWorksDescription = (((that.plannedWorksDescription!= null)&&(!that.plannedWorksDescription.isEmpty()))?that.getPlannedWorksDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "plannedWorksDescription", lhsPlannedWorksDescription), LocatorUtils.property(thatLocator, "plannedWorksDescription", rhsPlannedWorksDescription), lhsPlannedWorksDescription, rhsPlannedWorksDescription, ((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty())), ((that.plannedWorksDescription!= null)&&(!that.plannedWorksDescription.isEmpty())))) {
return false;
}
}
{
List lhsPlannedInspectionsDescription;
lhsPlannedInspectionsDescription = (((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty()))?this.getPlannedInspectionsDescription():null);
List rhsPlannedInspectionsDescription;
rhsPlannedInspectionsDescription = (((that.plannedInspectionsDescription!= null)&&(!that.plannedInspectionsDescription.isEmpty()))?that.getPlannedInspectionsDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "plannedInspectionsDescription", lhsPlannedInspectionsDescription), LocatorUtils.property(thatLocator, "plannedInspectionsDescription", rhsPlannedInspectionsDescription), lhsPlannedInspectionsDescription, rhsPlannedInspectionsDescription, ((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty())), ((that.plannedInspectionsDescription!= null)&&(!that.plannedInspectionsDescription.isEmpty())))) {
return false;
}
}
{
ExpectedAnchorageIndicatorType lhsExpectedAnchorageIndicator;
lhsExpectedAnchorageIndicator = this.getExpectedAnchorageIndicator();
ExpectedAnchorageIndicatorType rhsExpectedAnchorageIndicator;
rhsExpectedAnchorageIndicator = that.getExpectedAnchorageIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "expectedAnchorageIndicator", lhsExpectedAnchorageIndicator), LocatorUtils.property(thatLocator, "expectedAnchorageIndicator", rhsExpectedAnchorageIndicator), lhsExpectedAnchorageIndicator, rhsExpectedAnchorageIndicator, (this.expectedAnchorageIndicator!= null), (that.expectedAnchorageIndicator!= null))) {
return false;
}
}
{
PositionInPortIDType lhsPositionInPortID;
lhsPositionInPortID = this.getPositionInPortID();
PositionInPortIDType rhsPositionInPortID;
rhsPositionInPortID = that.getPositionInPortID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "positionInPortID", lhsPositionInPortID), LocatorUtils.property(thatLocator, "positionInPortID", rhsPositionInPortID), lhsPositionInPortID, rhsPositionInPortID, (this.positionInPortID!= null), (that.positionInPortID!= null))) {
return false;
}
}
{
List lhsCargoAndBallastTankConditionDescription;
lhsCargoAndBallastTankConditionDescription = (((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty()))?this.getCargoAndBallastTankConditionDescription():null);
List rhsCargoAndBallastTankConditionDescription;
rhsCargoAndBallastTankConditionDescription = (((that.cargoAndBallastTankConditionDescription!= null)&&(!that.cargoAndBallastTankConditionDescription.isEmpty()))?that.getCargoAndBallastTankConditionDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "cargoAndBallastTankConditionDescription", lhsCargoAndBallastTankConditionDescription), LocatorUtils.property(thatLocator, "cargoAndBallastTankConditionDescription", rhsCargoAndBallastTankConditionDescription), lhsCargoAndBallastTankConditionDescription, rhsCargoAndBallastTankConditionDescription, ((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty())), ((that.cargoAndBallastTankConditionDescription!= null)&&(!that.cargoAndBallastTankConditionDescription.isEmpty())))) {
return false;
}
}
{
List lhsShipRequirementsDescription;
lhsShipRequirementsDescription = (((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty()))?this.getShipRequirementsDescription():null);
List rhsShipRequirementsDescription;
rhsShipRequirementsDescription = (((that.shipRequirementsDescription!= null)&&(!that.shipRequirementsDescription.isEmpty()))?that.getShipRequirementsDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "shipRequirementsDescription", lhsShipRequirementsDescription), LocatorUtils.property(thatLocator, "shipRequirementsDescription", rhsShipRequirementsDescription), lhsShipRequirementsDescription, rhsShipRequirementsDescription, ((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty())), ((that.shipRequirementsDescription!= null)&&(!that.shipRequirementsDescription.isEmpty())))) {
return false;
}
}
{
PortCallPurposeType lhsPrimaryPortCallPurpose;
lhsPrimaryPortCallPurpose = this.getPrimaryPortCallPurpose();
PortCallPurposeType rhsPrimaryPortCallPurpose;
rhsPrimaryPortCallPurpose = that.getPrimaryPortCallPurpose();
if (!strategy.equals(LocatorUtils.property(thisLocator, "primaryPortCallPurpose", lhsPrimaryPortCallPurpose), LocatorUtils.property(thatLocator, "primaryPortCallPurpose", rhsPrimaryPortCallPurpose), lhsPrimaryPortCallPurpose, rhsPrimaryPortCallPurpose, (this.primaryPortCallPurpose!= null), (that.primaryPortCallPurpose!= null))) {
return false;
}
}
{
List lhsAdditionalPortCallPurpose;
lhsAdditionalPortCallPurpose = (((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty()))?this.getAdditionalPortCallPurpose():null);
List rhsAdditionalPortCallPurpose;
rhsAdditionalPortCallPurpose = (((that.additionalPortCallPurpose!= null)&&(!that.additionalPortCallPurpose.isEmpty()))?that.getAdditionalPortCallPurpose():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "additionalPortCallPurpose", lhsAdditionalPortCallPurpose), LocatorUtils.property(thatLocator, "additionalPortCallPurpose", rhsAdditionalPortCallPurpose), lhsAdditionalPortCallPurpose, rhsAdditionalPortCallPurpose, ((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty())), ((that.additionalPortCallPurpose!= null)&&(!that.additionalPortCallPurpose.isEmpty())))) {
return false;
}
}
{
EventType lhsRequestedArrivalEvent;
lhsRequestedArrivalEvent = this.getRequestedArrivalEvent();
EventType rhsRequestedArrivalEvent;
rhsRequestedArrivalEvent = that.getRequestedArrivalEvent();
if (!strategy.equals(LocatorUtils.property(thisLocator, "requestedArrivalEvent", lhsRequestedArrivalEvent), LocatorUtils.property(thatLocator, "requestedArrivalEvent", rhsRequestedArrivalEvent), lhsRequestedArrivalEvent, rhsRequestedArrivalEvent, (this.requestedArrivalEvent!= null), (that.requestedArrivalEvent!= 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));
}
{
List thePlannedOperationsDescription;
thePlannedOperationsDescription = (((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty()))?this.getPlannedOperationsDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "plannedOperationsDescription", thePlannedOperationsDescription), currentHashCode, thePlannedOperationsDescription, ((this.plannedOperationsDescription!= null)&&(!this.plannedOperationsDescription.isEmpty())));
}
{
List thePlannedWorksDescription;
thePlannedWorksDescription = (((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty()))?this.getPlannedWorksDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "plannedWorksDescription", thePlannedWorksDescription), currentHashCode, thePlannedWorksDescription, ((this.plannedWorksDescription!= null)&&(!this.plannedWorksDescription.isEmpty())));
}
{
List thePlannedInspectionsDescription;
thePlannedInspectionsDescription = (((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty()))?this.getPlannedInspectionsDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "plannedInspectionsDescription", thePlannedInspectionsDescription), currentHashCode, thePlannedInspectionsDescription, ((this.plannedInspectionsDescription!= null)&&(!this.plannedInspectionsDescription.isEmpty())));
}
{
ExpectedAnchorageIndicatorType theExpectedAnchorageIndicator;
theExpectedAnchorageIndicator = this.getExpectedAnchorageIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expectedAnchorageIndicator", theExpectedAnchorageIndicator), currentHashCode, theExpectedAnchorageIndicator, (this.expectedAnchorageIndicator!= null));
}
{
PositionInPortIDType thePositionInPortID;
thePositionInPortID = this.getPositionInPortID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "positionInPortID", thePositionInPortID), currentHashCode, thePositionInPortID, (this.positionInPortID!= null));
}
{
List theCargoAndBallastTankConditionDescription;
theCargoAndBallastTankConditionDescription = (((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty()))?this.getCargoAndBallastTankConditionDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cargoAndBallastTankConditionDescription", theCargoAndBallastTankConditionDescription), currentHashCode, theCargoAndBallastTankConditionDescription, ((this.cargoAndBallastTankConditionDescription!= null)&&(!this.cargoAndBallastTankConditionDescription.isEmpty())));
}
{
List theShipRequirementsDescription;
theShipRequirementsDescription = (((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty()))?this.getShipRequirementsDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "shipRequirementsDescription", theShipRequirementsDescription), currentHashCode, theShipRequirementsDescription, ((this.shipRequirementsDescription!= null)&&(!this.shipRequirementsDescription.isEmpty())));
}
{
PortCallPurposeType thePrimaryPortCallPurpose;
thePrimaryPortCallPurpose = this.getPrimaryPortCallPurpose();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "primaryPortCallPurpose", thePrimaryPortCallPurpose), currentHashCode, thePrimaryPortCallPurpose, (this.primaryPortCallPurpose!= null));
}
{
List theAdditionalPortCallPurpose;
theAdditionalPortCallPurpose = (((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty()))?this.getAdditionalPortCallPurpose():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additionalPortCallPurpose", theAdditionalPortCallPurpose), currentHashCode, theAdditionalPortCallPurpose, ((this.additionalPortCallPurpose!= null)&&(!this.additionalPortCallPurpose.isEmpty())));
}
{
EventType theRequestedArrivalEvent;
theRequestedArrivalEvent = this.getRequestedArrivalEvent();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestedArrivalEvent", theRequestedArrivalEvent), currentHashCode, theRequestedArrivalEvent, (this.requestedArrivalEvent!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}