oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.HazardousItemType 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.AdditionalInformationType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.CategoryNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.EmergencyProceduresCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.HazardClassIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.HazardousCategoryCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LowerOrangeHazardPlacardIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MarkingIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.MedicalFirstAidGuideCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NetVolumeMeasureType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NetWeightMeasureType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlacardEndorsementType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlacardNotationType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.QuantityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TechnicalNameType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TunnelRestrictionCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UNDGCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UNPackingGroupCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UNPackingGroupType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.UpperOrangeHazardPlacardIDType;
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 HazardousItemType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="HazardousItemType">
* <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}PlacardNotation" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}PlacardEndorsement" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}AdditionalInformation" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UNDGCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UNPackingGroupCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UNPackingGroup" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}EmergencyProceduresCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MedicalFirstAidGuideCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TunnelRestrictionCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TechnicalName" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CategoryName" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}HazardousCategoryCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}UpperOrangeHazardPlacardID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LowerOrangeHazardPlacardID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}MarkingID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}HazardClassID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}NetWeightMeasure" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}NetVolumeMeasure" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Quantity" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ContactParty" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}SecondaryHazard" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}HazardousGoodsTransit" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}EmergencyTemperature" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}FlashpointTemperature" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AdditionalTemperature" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HazardousItemType", propOrder = {
"ublExtensions",
"id",
"placardNotation",
"placardEndorsement",
"additionalInformation",
"undgCode",
"unPackingGroupCode",
"unPackingGroup",
"emergencyProceduresCode",
"medicalFirstAidGuideCode",
"tunnelRestrictionCode",
"technicalName",
"categoryName",
"hazardousCategoryCode",
"upperOrangeHazardPlacardID",
"lowerOrangeHazardPlacardID",
"markingID",
"hazardClassID",
"netWeightMeasure",
"netVolumeMeasure",
"quantity",
"contactParty",
"secondaryHazard",
"hazardousGoodsTransit",
"emergencyTemperature",
"flashpointTemperature",
"additionalTemperature"
})
public class HazardousItemType 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 = "PlacardNotation", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PlacardNotationType placardNotation;
@XmlElement(name = "PlacardEndorsement", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected PlacardEndorsementType placardEndorsement;
@XmlElement(name = "AdditionalInformation", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List additionalInformation;
@XmlElement(name = "UNDGCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected UNDGCodeType undgCode;
@XmlElement(name = "UNPackingGroupCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected UNPackingGroupCodeType unPackingGroupCode;
@XmlElement(name = "UNPackingGroup", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List unPackingGroup;
@XmlElement(name = "EmergencyProceduresCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected EmergencyProceduresCodeType emergencyProceduresCode;
@XmlElement(name = "MedicalFirstAidGuideCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected MedicalFirstAidGuideCodeType medicalFirstAidGuideCode;
@XmlElement(name = "TunnelRestrictionCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected TunnelRestrictionCodeType tunnelRestrictionCode;
@XmlElement(name = "TechnicalName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected TechnicalNameType technicalName;
@XmlElement(name = "CategoryName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected CategoryNameType categoryName;
@XmlElement(name = "HazardousCategoryCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected HazardousCategoryCodeType hazardousCategoryCode;
@XmlElement(name = "UpperOrangeHazardPlacardID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected UpperOrangeHazardPlacardIDType upperOrangeHazardPlacardID;
@XmlElement(name = "LowerOrangeHazardPlacardID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected LowerOrangeHazardPlacardIDType lowerOrangeHazardPlacardID;
@XmlElement(name = "MarkingID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected MarkingIDType markingID;
@XmlElement(name = "HazardClassID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected HazardClassIDType hazardClassID;
@XmlElement(name = "NetWeightMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected NetWeightMeasureType netWeightMeasure;
@XmlElement(name = "NetVolumeMeasure", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected NetVolumeMeasureType netVolumeMeasure;
@XmlElement(name = "Quantity", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected QuantityType quantity;
@XmlElement(name = "ContactParty")
protected PartyType contactParty;
@XmlElement(name = "SecondaryHazard")
protected List secondaryHazard;
@XmlElement(name = "HazardousGoodsTransit")
protected List hazardousGoodsTransit;
@XmlElement(name = "EmergencyTemperature")
protected TemperatureType emergencyTemperature;
@XmlElement(name = "FlashpointTemperature")
protected TemperatureType flashpointTemperature;
@XmlElement(name = "AdditionalTemperature")
protected List additionalTemperature;
/**
* 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 placardNotation.
*
* @return
* possible object is
* {@link PlacardNotationType }
*
*/
public PlacardNotationType getPlacardNotation() {
return placardNotation;
}
/**
* Define el valor de la propiedad placardNotation.
*
* @param value
* allowed object is
* {@link PlacardNotationType }
*
*/
public void setPlacardNotation(PlacardNotationType value) {
this.placardNotation = value;
}
/**
* Obtiene el valor de la propiedad placardEndorsement.
*
* @return
* possible object is
* {@link PlacardEndorsementType }
*
*/
public PlacardEndorsementType getPlacardEndorsement() {
return placardEndorsement;
}
/**
* Define el valor de la propiedad placardEndorsement.
*
* @param value
* allowed object is
* {@link PlacardEndorsementType }
*
*/
public void setPlacardEndorsement(PlacardEndorsementType value) {
this.placardEndorsement = value;
}
/**
* Gets the value of the additionalInformation 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 additionalInformation property.
*
*
* For example, to add a new item, do as follows:
*
* getAdditionalInformation().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalInformationType }
*
*
*/
public List getAdditionalInformation() {
if (additionalInformation == null) {
additionalInformation = new ArrayList();
}
return this.additionalInformation;
}
/**
* Obtiene el valor de la propiedad undgCode.
*
* @return
* possible object is
* {@link UNDGCodeType }
*
*/
public UNDGCodeType getUNDGCode() {
return undgCode;
}
/**
* Define el valor de la propiedad undgCode.
*
* @param value
* allowed object is
* {@link UNDGCodeType }
*
*/
public void setUNDGCode(UNDGCodeType value) {
this.undgCode = value;
}
/**
* Obtiene el valor de la propiedad unPackingGroupCode.
*
* @return
* possible object is
* {@link UNPackingGroupCodeType }
*
*/
public UNPackingGroupCodeType getUNPackingGroupCode() {
return unPackingGroupCode;
}
/**
* Define el valor de la propiedad unPackingGroupCode.
*
* @param value
* allowed object is
* {@link UNPackingGroupCodeType }
*
*/
public void setUNPackingGroupCode(UNPackingGroupCodeType value) {
this.unPackingGroupCode = value;
}
/**
* Gets the value of the unPackingGroup 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 unPackingGroup property.
*
*
* For example, to add a new item, do as follows:
*
* getUNPackingGroup().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link UNPackingGroupType }
*
*
*/
public List getUNPackingGroup() {
if (unPackingGroup == null) {
unPackingGroup = new ArrayList();
}
return this.unPackingGroup;
}
/**
* Obtiene el valor de la propiedad emergencyProceduresCode.
*
* @return
* possible object is
* {@link EmergencyProceduresCodeType }
*
*/
public EmergencyProceduresCodeType getEmergencyProceduresCode() {
return emergencyProceduresCode;
}
/**
* Define el valor de la propiedad emergencyProceduresCode.
*
* @param value
* allowed object is
* {@link EmergencyProceduresCodeType }
*
*/
public void setEmergencyProceduresCode(EmergencyProceduresCodeType value) {
this.emergencyProceduresCode = value;
}
/**
* Obtiene el valor de la propiedad medicalFirstAidGuideCode.
*
* @return
* possible object is
* {@link MedicalFirstAidGuideCodeType }
*
*/
public MedicalFirstAidGuideCodeType getMedicalFirstAidGuideCode() {
return medicalFirstAidGuideCode;
}
/**
* Define el valor de la propiedad medicalFirstAidGuideCode.
*
* @param value
* allowed object is
* {@link MedicalFirstAidGuideCodeType }
*
*/
public void setMedicalFirstAidGuideCode(MedicalFirstAidGuideCodeType value) {
this.medicalFirstAidGuideCode = value;
}
/**
* Obtiene el valor de la propiedad tunnelRestrictionCode.
*
* @return
* possible object is
* {@link TunnelRestrictionCodeType }
*
*/
public TunnelRestrictionCodeType getTunnelRestrictionCode() {
return tunnelRestrictionCode;
}
/**
* Define el valor de la propiedad tunnelRestrictionCode.
*
* @param value
* allowed object is
* {@link TunnelRestrictionCodeType }
*
*/
public void setTunnelRestrictionCode(TunnelRestrictionCodeType value) {
this.tunnelRestrictionCode = value;
}
/**
* Obtiene el valor de la propiedad technicalName.
*
* @return
* possible object is
* {@link TechnicalNameType }
*
*/
public TechnicalNameType getTechnicalName() {
return technicalName;
}
/**
* Define el valor de la propiedad technicalName.
*
* @param value
* allowed object is
* {@link TechnicalNameType }
*
*/
public void setTechnicalName(TechnicalNameType value) {
this.technicalName = value;
}
/**
* Obtiene el valor de la propiedad categoryName.
*
* @return
* possible object is
* {@link CategoryNameType }
*
*/
public CategoryNameType getCategoryName() {
return categoryName;
}
/**
* Define el valor de la propiedad categoryName.
*
* @param value
* allowed object is
* {@link CategoryNameType }
*
*/
public void setCategoryName(CategoryNameType value) {
this.categoryName = value;
}
/**
* Obtiene el valor de la propiedad hazardousCategoryCode.
*
* @return
* possible object is
* {@link HazardousCategoryCodeType }
*
*/
public HazardousCategoryCodeType getHazardousCategoryCode() {
return hazardousCategoryCode;
}
/**
* Define el valor de la propiedad hazardousCategoryCode.
*
* @param value
* allowed object is
* {@link HazardousCategoryCodeType }
*
*/
public void setHazardousCategoryCode(HazardousCategoryCodeType value) {
this.hazardousCategoryCode = value;
}
/**
* Obtiene el valor de la propiedad upperOrangeHazardPlacardID.
*
* @return
* possible object is
* {@link UpperOrangeHazardPlacardIDType }
*
*/
public UpperOrangeHazardPlacardIDType getUpperOrangeHazardPlacardID() {
return upperOrangeHazardPlacardID;
}
/**
* Define el valor de la propiedad upperOrangeHazardPlacardID.
*
* @param value
* allowed object is
* {@link UpperOrangeHazardPlacardIDType }
*
*/
public void setUpperOrangeHazardPlacardID(UpperOrangeHazardPlacardIDType value) {
this.upperOrangeHazardPlacardID = value;
}
/**
* Obtiene el valor de la propiedad lowerOrangeHazardPlacardID.
*
* @return
* possible object is
* {@link LowerOrangeHazardPlacardIDType }
*
*/
public LowerOrangeHazardPlacardIDType getLowerOrangeHazardPlacardID() {
return lowerOrangeHazardPlacardID;
}
/**
* Define el valor de la propiedad lowerOrangeHazardPlacardID.
*
* @param value
* allowed object is
* {@link LowerOrangeHazardPlacardIDType }
*
*/
public void setLowerOrangeHazardPlacardID(LowerOrangeHazardPlacardIDType value) {
this.lowerOrangeHazardPlacardID = value;
}
/**
* Obtiene el valor de la propiedad markingID.
*
* @return
* possible object is
* {@link MarkingIDType }
*
*/
public MarkingIDType getMarkingID() {
return markingID;
}
/**
* Define el valor de la propiedad markingID.
*
* @param value
* allowed object is
* {@link MarkingIDType }
*
*/
public void setMarkingID(MarkingIDType value) {
this.markingID = value;
}
/**
* Obtiene el valor de la propiedad hazardClassID.
*
* @return
* possible object is
* {@link HazardClassIDType }
*
*/
public HazardClassIDType getHazardClassID() {
return hazardClassID;
}
/**
* Define el valor de la propiedad hazardClassID.
*
* @param value
* allowed object is
* {@link HazardClassIDType }
*
*/
public void setHazardClassID(HazardClassIDType value) {
this.hazardClassID = value;
}
/**
* Obtiene el valor de la propiedad netWeightMeasure.
*
* @return
* possible object is
* {@link NetWeightMeasureType }
*
*/
public NetWeightMeasureType getNetWeightMeasure() {
return netWeightMeasure;
}
/**
* Define el valor de la propiedad netWeightMeasure.
*
* @param value
* allowed object is
* {@link NetWeightMeasureType }
*
*/
public void setNetWeightMeasure(NetWeightMeasureType value) {
this.netWeightMeasure = value;
}
/**
* Obtiene el valor de la propiedad netVolumeMeasure.
*
* @return
* possible object is
* {@link NetVolumeMeasureType }
*
*/
public NetVolumeMeasureType getNetVolumeMeasure() {
return netVolumeMeasure;
}
/**
* Define el valor de la propiedad netVolumeMeasure.
*
* @param value
* allowed object is
* {@link NetVolumeMeasureType }
*
*/
public void setNetVolumeMeasure(NetVolumeMeasureType value) {
this.netVolumeMeasure = value;
}
/**
* Obtiene el valor de la propiedad quantity.
*
* @return
* possible object is
* {@link QuantityType }
*
*/
public QuantityType getQuantity() {
return quantity;
}
/**
* Define el valor de la propiedad quantity.
*
* @param value
* allowed object is
* {@link QuantityType }
*
*/
public void setQuantity(QuantityType value) {
this.quantity = value;
}
/**
* Obtiene el valor de la propiedad contactParty.
*
* @return
* possible object is
* {@link PartyType }
*
*/
public PartyType getContactParty() {
return contactParty;
}
/**
* Define el valor de la propiedad contactParty.
*
* @param value
* allowed object is
* {@link PartyType }
*
*/
public void setContactParty(PartyType value) {
this.contactParty = value;
}
/**
* Gets the value of the secondaryHazard 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 secondaryHazard property.
*
*
* For example, to add a new item, do as follows:
*
* getSecondaryHazard().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SecondaryHazardType }
*
*
*/
public List getSecondaryHazard() {
if (secondaryHazard == null) {
secondaryHazard = new ArrayList();
}
return this.secondaryHazard;
}
/**
* Gets the value of the hazardousGoodsTransit 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 hazardousGoodsTransit property.
*
*
* For example, to add a new item, do as follows:
*
* getHazardousGoodsTransit().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HazardousGoodsTransitType }
*
*
*/
public List getHazardousGoodsTransit() {
if (hazardousGoodsTransit == null) {
hazardousGoodsTransit = new ArrayList();
}
return this.hazardousGoodsTransit;
}
/**
* Obtiene el valor de la propiedad emergencyTemperature.
*
* @return
* possible object is
* {@link TemperatureType }
*
*/
public TemperatureType getEmergencyTemperature() {
return emergencyTemperature;
}
/**
* Define el valor de la propiedad emergencyTemperature.
*
* @param value
* allowed object is
* {@link TemperatureType }
*
*/
public void setEmergencyTemperature(TemperatureType value) {
this.emergencyTemperature = value;
}
/**
* Obtiene el valor de la propiedad flashpointTemperature.
*
* @return
* possible object is
* {@link TemperatureType }
*
*/
public TemperatureType getFlashpointTemperature() {
return flashpointTemperature;
}
/**
* Define el valor de la propiedad flashpointTemperature.
*
* @param value
* allowed object is
* {@link TemperatureType }
*
*/
public void setFlashpointTemperature(TemperatureType value) {
this.flashpointTemperature = value;
}
/**
* Gets the value of the additionalTemperature 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 additionalTemperature property.
*
*
* For example, to add a new item, do as follows:
*
* getAdditionalTemperature().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TemperatureType }
*
*
*/
public List getAdditionalTemperature() {
if (additionalTemperature == null) {
additionalTemperature = new ArrayList();
}
return this.additionalTemperature;
}
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));
}
{
PlacardNotationType thePlacardNotation;
thePlacardNotation = this.getPlacardNotation();
strategy.appendField(locator, this, "placardNotation", buffer, thePlacardNotation, (this.placardNotation!= null));
}
{
PlacardEndorsementType thePlacardEndorsement;
thePlacardEndorsement = this.getPlacardEndorsement();
strategy.appendField(locator, this, "placardEndorsement", buffer, thePlacardEndorsement, (this.placardEndorsement!= null));
}
{
List theAdditionalInformation;
theAdditionalInformation = (((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty()))?this.getAdditionalInformation():null);
strategy.appendField(locator, this, "additionalInformation", buffer, theAdditionalInformation, ((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty())));
}
{
UNDGCodeType theUNDGCode;
theUNDGCode = this.getUNDGCode();
strategy.appendField(locator, this, "undgCode", buffer, theUNDGCode, (this.undgCode!= null));
}
{
UNPackingGroupCodeType theUNPackingGroupCode;
theUNPackingGroupCode = this.getUNPackingGroupCode();
strategy.appendField(locator, this, "unPackingGroupCode", buffer, theUNPackingGroupCode, (this.unPackingGroupCode!= null));
}
{
List theUNPackingGroup;
theUNPackingGroup = (((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty()))?this.getUNPackingGroup():null);
strategy.appendField(locator, this, "unPackingGroup", buffer, theUNPackingGroup, ((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty())));
}
{
EmergencyProceduresCodeType theEmergencyProceduresCode;
theEmergencyProceduresCode = this.getEmergencyProceduresCode();
strategy.appendField(locator, this, "emergencyProceduresCode", buffer, theEmergencyProceduresCode, (this.emergencyProceduresCode!= null));
}
{
MedicalFirstAidGuideCodeType theMedicalFirstAidGuideCode;
theMedicalFirstAidGuideCode = this.getMedicalFirstAidGuideCode();
strategy.appendField(locator, this, "medicalFirstAidGuideCode", buffer, theMedicalFirstAidGuideCode, (this.medicalFirstAidGuideCode!= null));
}
{
TunnelRestrictionCodeType theTunnelRestrictionCode;
theTunnelRestrictionCode = this.getTunnelRestrictionCode();
strategy.appendField(locator, this, "tunnelRestrictionCode", buffer, theTunnelRestrictionCode, (this.tunnelRestrictionCode!= null));
}
{
TechnicalNameType theTechnicalName;
theTechnicalName = this.getTechnicalName();
strategy.appendField(locator, this, "technicalName", buffer, theTechnicalName, (this.technicalName!= null));
}
{
CategoryNameType theCategoryName;
theCategoryName = this.getCategoryName();
strategy.appendField(locator, this, "categoryName", buffer, theCategoryName, (this.categoryName!= null));
}
{
HazardousCategoryCodeType theHazardousCategoryCode;
theHazardousCategoryCode = this.getHazardousCategoryCode();
strategy.appendField(locator, this, "hazardousCategoryCode", buffer, theHazardousCategoryCode, (this.hazardousCategoryCode!= null));
}
{
UpperOrangeHazardPlacardIDType theUpperOrangeHazardPlacardID;
theUpperOrangeHazardPlacardID = this.getUpperOrangeHazardPlacardID();
strategy.appendField(locator, this, "upperOrangeHazardPlacardID", buffer, theUpperOrangeHazardPlacardID, (this.upperOrangeHazardPlacardID!= null));
}
{
LowerOrangeHazardPlacardIDType theLowerOrangeHazardPlacardID;
theLowerOrangeHazardPlacardID = this.getLowerOrangeHazardPlacardID();
strategy.appendField(locator, this, "lowerOrangeHazardPlacardID", buffer, theLowerOrangeHazardPlacardID, (this.lowerOrangeHazardPlacardID!= null));
}
{
MarkingIDType theMarkingID;
theMarkingID = this.getMarkingID();
strategy.appendField(locator, this, "markingID", buffer, theMarkingID, (this.markingID!= null));
}
{
HazardClassIDType theHazardClassID;
theHazardClassID = this.getHazardClassID();
strategy.appendField(locator, this, "hazardClassID", buffer, theHazardClassID, (this.hazardClassID!= null));
}
{
NetWeightMeasureType theNetWeightMeasure;
theNetWeightMeasure = this.getNetWeightMeasure();
strategy.appendField(locator, this, "netWeightMeasure", buffer, theNetWeightMeasure, (this.netWeightMeasure!= null));
}
{
NetVolumeMeasureType theNetVolumeMeasure;
theNetVolumeMeasure = this.getNetVolumeMeasure();
strategy.appendField(locator, this, "netVolumeMeasure", buffer, theNetVolumeMeasure, (this.netVolumeMeasure!= null));
}
{
QuantityType theQuantity;
theQuantity = this.getQuantity();
strategy.appendField(locator, this, "quantity", buffer, theQuantity, (this.quantity!= null));
}
{
PartyType theContactParty;
theContactParty = this.getContactParty();
strategy.appendField(locator, this, "contactParty", buffer, theContactParty, (this.contactParty!= null));
}
{
List theSecondaryHazard;
theSecondaryHazard = (((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty()))?this.getSecondaryHazard():null);
strategy.appendField(locator, this, "secondaryHazard", buffer, theSecondaryHazard, ((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty())));
}
{
List theHazardousGoodsTransit;
theHazardousGoodsTransit = (((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty()))?this.getHazardousGoodsTransit():null);
strategy.appendField(locator, this, "hazardousGoodsTransit", buffer, theHazardousGoodsTransit, ((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty())));
}
{
TemperatureType theEmergencyTemperature;
theEmergencyTemperature = this.getEmergencyTemperature();
strategy.appendField(locator, this, "emergencyTemperature", buffer, theEmergencyTemperature, (this.emergencyTemperature!= null));
}
{
TemperatureType theFlashpointTemperature;
theFlashpointTemperature = this.getFlashpointTemperature();
strategy.appendField(locator, this, "flashpointTemperature", buffer, theFlashpointTemperature, (this.flashpointTemperature!= null));
}
{
List theAdditionalTemperature;
theAdditionalTemperature = (((this.additionalTemperature!= null)&&(!this.additionalTemperature.isEmpty()))?this.getAdditionalTemperature():null);
strategy.appendField(locator, this, "additionalTemperature", buffer, theAdditionalTemperature, ((this.additionalTemperature!= null)&&(!this.additionalTemperature.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 HazardousItemType that = ((HazardousItemType) 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;
}
}
{
PlacardNotationType lhsPlacardNotation;
lhsPlacardNotation = this.getPlacardNotation();
PlacardNotationType rhsPlacardNotation;
rhsPlacardNotation = that.getPlacardNotation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "placardNotation", lhsPlacardNotation), LocatorUtils.property(thatLocator, "placardNotation", rhsPlacardNotation), lhsPlacardNotation, rhsPlacardNotation, (this.placardNotation!= null), (that.placardNotation!= null))) {
return false;
}
}
{
PlacardEndorsementType lhsPlacardEndorsement;
lhsPlacardEndorsement = this.getPlacardEndorsement();
PlacardEndorsementType rhsPlacardEndorsement;
rhsPlacardEndorsement = that.getPlacardEndorsement();
if (!strategy.equals(LocatorUtils.property(thisLocator, "placardEndorsement", lhsPlacardEndorsement), LocatorUtils.property(thatLocator, "placardEndorsement", rhsPlacardEndorsement), lhsPlacardEndorsement, rhsPlacardEndorsement, (this.placardEndorsement!= null), (that.placardEndorsement!= null))) {
return false;
}
}
{
List lhsAdditionalInformation;
lhsAdditionalInformation = (((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty()))?this.getAdditionalInformation():null);
List rhsAdditionalInformation;
rhsAdditionalInformation = (((that.additionalInformation!= null)&&(!that.additionalInformation.isEmpty()))?that.getAdditionalInformation():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "additionalInformation", lhsAdditionalInformation), LocatorUtils.property(thatLocator, "additionalInformation", rhsAdditionalInformation), lhsAdditionalInformation, rhsAdditionalInformation, ((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty())), ((that.additionalInformation!= null)&&(!that.additionalInformation.isEmpty())))) {
return false;
}
}
{
UNDGCodeType lhsUNDGCode;
lhsUNDGCode = this.getUNDGCode();
UNDGCodeType rhsUNDGCode;
rhsUNDGCode = that.getUNDGCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "undgCode", lhsUNDGCode), LocatorUtils.property(thatLocator, "undgCode", rhsUNDGCode), lhsUNDGCode, rhsUNDGCode, (this.undgCode!= null), (that.undgCode!= null))) {
return false;
}
}
{
UNPackingGroupCodeType lhsUNPackingGroupCode;
lhsUNPackingGroupCode = this.getUNPackingGroupCode();
UNPackingGroupCodeType rhsUNPackingGroupCode;
rhsUNPackingGroupCode = that.getUNPackingGroupCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "unPackingGroupCode", lhsUNPackingGroupCode), LocatorUtils.property(thatLocator, "unPackingGroupCode", rhsUNPackingGroupCode), lhsUNPackingGroupCode, rhsUNPackingGroupCode, (this.unPackingGroupCode!= null), (that.unPackingGroupCode!= null))) {
return false;
}
}
{
List lhsUNPackingGroup;
lhsUNPackingGroup = (((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty()))?this.getUNPackingGroup():null);
List rhsUNPackingGroup;
rhsUNPackingGroup = (((that.unPackingGroup!= null)&&(!that.unPackingGroup.isEmpty()))?that.getUNPackingGroup():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "unPackingGroup", lhsUNPackingGroup), LocatorUtils.property(thatLocator, "unPackingGroup", rhsUNPackingGroup), lhsUNPackingGroup, rhsUNPackingGroup, ((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty())), ((that.unPackingGroup!= null)&&(!that.unPackingGroup.isEmpty())))) {
return false;
}
}
{
EmergencyProceduresCodeType lhsEmergencyProceduresCode;
lhsEmergencyProceduresCode = this.getEmergencyProceduresCode();
EmergencyProceduresCodeType rhsEmergencyProceduresCode;
rhsEmergencyProceduresCode = that.getEmergencyProceduresCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "emergencyProceduresCode", lhsEmergencyProceduresCode), LocatorUtils.property(thatLocator, "emergencyProceduresCode", rhsEmergencyProceduresCode), lhsEmergencyProceduresCode, rhsEmergencyProceduresCode, (this.emergencyProceduresCode!= null), (that.emergencyProceduresCode!= null))) {
return false;
}
}
{
MedicalFirstAidGuideCodeType lhsMedicalFirstAidGuideCode;
lhsMedicalFirstAidGuideCode = this.getMedicalFirstAidGuideCode();
MedicalFirstAidGuideCodeType rhsMedicalFirstAidGuideCode;
rhsMedicalFirstAidGuideCode = that.getMedicalFirstAidGuideCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "medicalFirstAidGuideCode", lhsMedicalFirstAidGuideCode), LocatorUtils.property(thatLocator, "medicalFirstAidGuideCode", rhsMedicalFirstAidGuideCode), lhsMedicalFirstAidGuideCode, rhsMedicalFirstAidGuideCode, (this.medicalFirstAidGuideCode!= null), (that.medicalFirstAidGuideCode!= null))) {
return false;
}
}
{
TunnelRestrictionCodeType lhsTunnelRestrictionCode;
lhsTunnelRestrictionCode = this.getTunnelRestrictionCode();
TunnelRestrictionCodeType rhsTunnelRestrictionCode;
rhsTunnelRestrictionCode = that.getTunnelRestrictionCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tunnelRestrictionCode", lhsTunnelRestrictionCode), LocatorUtils.property(thatLocator, "tunnelRestrictionCode", rhsTunnelRestrictionCode), lhsTunnelRestrictionCode, rhsTunnelRestrictionCode, (this.tunnelRestrictionCode!= null), (that.tunnelRestrictionCode!= null))) {
return false;
}
}
{
TechnicalNameType lhsTechnicalName;
lhsTechnicalName = this.getTechnicalName();
TechnicalNameType rhsTechnicalName;
rhsTechnicalName = that.getTechnicalName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "technicalName", lhsTechnicalName), LocatorUtils.property(thatLocator, "technicalName", rhsTechnicalName), lhsTechnicalName, rhsTechnicalName, (this.technicalName!= null), (that.technicalName!= null))) {
return false;
}
}
{
CategoryNameType lhsCategoryName;
lhsCategoryName = this.getCategoryName();
CategoryNameType rhsCategoryName;
rhsCategoryName = that.getCategoryName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "categoryName", lhsCategoryName), LocatorUtils.property(thatLocator, "categoryName", rhsCategoryName), lhsCategoryName, rhsCategoryName, (this.categoryName!= null), (that.categoryName!= null))) {
return false;
}
}
{
HazardousCategoryCodeType lhsHazardousCategoryCode;
lhsHazardousCategoryCode = this.getHazardousCategoryCode();
HazardousCategoryCodeType rhsHazardousCategoryCode;
rhsHazardousCategoryCode = that.getHazardousCategoryCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "hazardousCategoryCode", lhsHazardousCategoryCode), LocatorUtils.property(thatLocator, "hazardousCategoryCode", rhsHazardousCategoryCode), lhsHazardousCategoryCode, rhsHazardousCategoryCode, (this.hazardousCategoryCode!= null), (that.hazardousCategoryCode!= null))) {
return false;
}
}
{
UpperOrangeHazardPlacardIDType lhsUpperOrangeHazardPlacardID;
lhsUpperOrangeHazardPlacardID = this.getUpperOrangeHazardPlacardID();
UpperOrangeHazardPlacardIDType rhsUpperOrangeHazardPlacardID;
rhsUpperOrangeHazardPlacardID = that.getUpperOrangeHazardPlacardID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "upperOrangeHazardPlacardID", lhsUpperOrangeHazardPlacardID), LocatorUtils.property(thatLocator, "upperOrangeHazardPlacardID", rhsUpperOrangeHazardPlacardID), lhsUpperOrangeHazardPlacardID, rhsUpperOrangeHazardPlacardID, (this.upperOrangeHazardPlacardID!= null), (that.upperOrangeHazardPlacardID!= null))) {
return false;
}
}
{
LowerOrangeHazardPlacardIDType lhsLowerOrangeHazardPlacardID;
lhsLowerOrangeHazardPlacardID = this.getLowerOrangeHazardPlacardID();
LowerOrangeHazardPlacardIDType rhsLowerOrangeHazardPlacardID;
rhsLowerOrangeHazardPlacardID = that.getLowerOrangeHazardPlacardID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lowerOrangeHazardPlacardID", lhsLowerOrangeHazardPlacardID), LocatorUtils.property(thatLocator, "lowerOrangeHazardPlacardID", rhsLowerOrangeHazardPlacardID), lhsLowerOrangeHazardPlacardID, rhsLowerOrangeHazardPlacardID, (this.lowerOrangeHazardPlacardID!= null), (that.lowerOrangeHazardPlacardID!= null))) {
return false;
}
}
{
MarkingIDType lhsMarkingID;
lhsMarkingID = this.getMarkingID();
MarkingIDType rhsMarkingID;
rhsMarkingID = that.getMarkingID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "markingID", lhsMarkingID), LocatorUtils.property(thatLocator, "markingID", rhsMarkingID), lhsMarkingID, rhsMarkingID, (this.markingID!= null), (that.markingID!= null))) {
return false;
}
}
{
HazardClassIDType lhsHazardClassID;
lhsHazardClassID = this.getHazardClassID();
HazardClassIDType rhsHazardClassID;
rhsHazardClassID = that.getHazardClassID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "hazardClassID", lhsHazardClassID), LocatorUtils.property(thatLocator, "hazardClassID", rhsHazardClassID), lhsHazardClassID, rhsHazardClassID, (this.hazardClassID!= null), (that.hazardClassID!= null))) {
return false;
}
}
{
NetWeightMeasureType lhsNetWeightMeasure;
lhsNetWeightMeasure = this.getNetWeightMeasure();
NetWeightMeasureType rhsNetWeightMeasure;
rhsNetWeightMeasure = that.getNetWeightMeasure();
if (!strategy.equals(LocatorUtils.property(thisLocator, "netWeightMeasure", lhsNetWeightMeasure), LocatorUtils.property(thatLocator, "netWeightMeasure", rhsNetWeightMeasure), lhsNetWeightMeasure, rhsNetWeightMeasure, (this.netWeightMeasure!= null), (that.netWeightMeasure!= null))) {
return false;
}
}
{
NetVolumeMeasureType lhsNetVolumeMeasure;
lhsNetVolumeMeasure = this.getNetVolumeMeasure();
NetVolumeMeasureType rhsNetVolumeMeasure;
rhsNetVolumeMeasure = that.getNetVolumeMeasure();
if (!strategy.equals(LocatorUtils.property(thisLocator, "netVolumeMeasure", lhsNetVolumeMeasure), LocatorUtils.property(thatLocator, "netVolumeMeasure", rhsNetVolumeMeasure), lhsNetVolumeMeasure, rhsNetVolumeMeasure, (this.netVolumeMeasure!= null), (that.netVolumeMeasure!= null))) {
return false;
}
}
{
QuantityType lhsQuantity;
lhsQuantity = this.getQuantity();
QuantityType rhsQuantity;
rhsQuantity = that.getQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity, (this.quantity!= null), (that.quantity!= null))) {
return false;
}
}
{
PartyType lhsContactParty;
lhsContactParty = this.getContactParty();
PartyType rhsContactParty;
rhsContactParty = that.getContactParty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "contactParty", lhsContactParty), LocatorUtils.property(thatLocator, "contactParty", rhsContactParty), lhsContactParty, rhsContactParty, (this.contactParty!= null), (that.contactParty!= null))) {
return false;
}
}
{
List lhsSecondaryHazard;
lhsSecondaryHazard = (((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty()))?this.getSecondaryHazard():null);
List rhsSecondaryHazard;
rhsSecondaryHazard = (((that.secondaryHazard!= null)&&(!that.secondaryHazard.isEmpty()))?that.getSecondaryHazard():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "secondaryHazard", lhsSecondaryHazard), LocatorUtils.property(thatLocator, "secondaryHazard", rhsSecondaryHazard), lhsSecondaryHazard, rhsSecondaryHazard, ((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty())), ((that.secondaryHazard!= null)&&(!that.secondaryHazard.isEmpty())))) {
return false;
}
}
{
List lhsHazardousGoodsTransit;
lhsHazardousGoodsTransit = (((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty()))?this.getHazardousGoodsTransit():null);
List rhsHazardousGoodsTransit;
rhsHazardousGoodsTransit = (((that.hazardousGoodsTransit!= null)&&(!that.hazardousGoodsTransit.isEmpty()))?that.getHazardousGoodsTransit():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "hazardousGoodsTransit", lhsHazardousGoodsTransit), LocatorUtils.property(thatLocator, "hazardousGoodsTransit", rhsHazardousGoodsTransit), lhsHazardousGoodsTransit, rhsHazardousGoodsTransit, ((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty())), ((that.hazardousGoodsTransit!= null)&&(!that.hazardousGoodsTransit.isEmpty())))) {
return false;
}
}
{
TemperatureType lhsEmergencyTemperature;
lhsEmergencyTemperature = this.getEmergencyTemperature();
TemperatureType rhsEmergencyTemperature;
rhsEmergencyTemperature = that.getEmergencyTemperature();
if (!strategy.equals(LocatorUtils.property(thisLocator, "emergencyTemperature", lhsEmergencyTemperature), LocatorUtils.property(thatLocator, "emergencyTemperature", rhsEmergencyTemperature), lhsEmergencyTemperature, rhsEmergencyTemperature, (this.emergencyTemperature!= null), (that.emergencyTemperature!= null))) {
return false;
}
}
{
TemperatureType lhsFlashpointTemperature;
lhsFlashpointTemperature = this.getFlashpointTemperature();
TemperatureType rhsFlashpointTemperature;
rhsFlashpointTemperature = that.getFlashpointTemperature();
if (!strategy.equals(LocatorUtils.property(thisLocator, "flashpointTemperature", lhsFlashpointTemperature), LocatorUtils.property(thatLocator, "flashpointTemperature", rhsFlashpointTemperature), lhsFlashpointTemperature, rhsFlashpointTemperature, (this.flashpointTemperature!= null), (that.flashpointTemperature!= null))) {
return false;
}
}
{
List lhsAdditionalTemperature;
lhsAdditionalTemperature = (((this.additionalTemperature!= null)&&(!this.additionalTemperature.isEmpty()))?this.getAdditionalTemperature():null);
List rhsAdditionalTemperature;
rhsAdditionalTemperature = (((that.additionalTemperature!= null)&&(!that.additionalTemperature.isEmpty()))?that.getAdditionalTemperature():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "additionalTemperature", lhsAdditionalTemperature), LocatorUtils.property(thatLocator, "additionalTemperature", rhsAdditionalTemperature), lhsAdditionalTemperature, rhsAdditionalTemperature, ((this.additionalTemperature!= null)&&(!this.additionalTemperature.isEmpty())), ((that.additionalTemperature!= null)&&(!that.additionalTemperature.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));
}
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID, (this.id!= null));
}
{
PlacardNotationType thePlacardNotation;
thePlacardNotation = this.getPlacardNotation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "placardNotation", thePlacardNotation), currentHashCode, thePlacardNotation, (this.placardNotation!= null));
}
{
PlacardEndorsementType thePlacardEndorsement;
thePlacardEndorsement = this.getPlacardEndorsement();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "placardEndorsement", thePlacardEndorsement), currentHashCode, thePlacardEndorsement, (this.placardEndorsement!= null));
}
{
List theAdditionalInformation;
theAdditionalInformation = (((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty()))?this.getAdditionalInformation():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additionalInformation", theAdditionalInformation), currentHashCode, theAdditionalInformation, ((this.additionalInformation!= null)&&(!this.additionalInformation.isEmpty())));
}
{
UNDGCodeType theUNDGCode;
theUNDGCode = this.getUNDGCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "undgCode", theUNDGCode), currentHashCode, theUNDGCode, (this.undgCode!= null));
}
{
UNPackingGroupCodeType theUNPackingGroupCode;
theUNPackingGroupCode = this.getUNPackingGroupCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "unPackingGroupCode", theUNPackingGroupCode), currentHashCode, theUNPackingGroupCode, (this.unPackingGroupCode!= null));
}
{
List theUNPackingGroup;
theUNPackingGroup = (((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty()))?this.getUNPackingGroup():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "unPackingGroup", theUNPackingGroup), currentHashCode, theUNPackingGroup, ((this.unPackingGroup!= null)&&(!this.unPackingGroup.isEmpty())));
}
{
EmergencyProceduresCodeType theEmergencyProceduresCode;
theEmergencyProceduresCode = this.getEmergencyProceduresCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emergencyProceduresCode", theEmergencyProceduresCode), currentHashCode, theEmergencyProceduresCode, (this.emergencyProceduresCode!= null));
}
{
MedicalFirstAidGuideCodeType theMedicalFirstAidGuideCode;
theMedicalFirstAidGuideCode = this.getMedicalFirstAidGuideCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "medicalFirstAidGuideCode", theMedicalFirstAidGuideCode), currentHashCode, theMedicalFirstAidGuideCode, (this.medicalFirstAidGuideCode!= null));
}
{
TunnelRestrictionCodeType theTunnelRestrictionCode;
theTunnelRestrictionCode = this.getTunnelRestrictionCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tunnelRestrictionCode", theTunnelRestrictionCode), currentHashCode, theTunnelRestrictionCode, (this.tunnelRestrictionCode!= null));
}
{
TechnicalNameType theTechnicalName;
theTechnicalName = this.getTechnicalName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "technicalName", theTechnicalName), currentHashCode, theTechnicalName, (this.technicalName!= null));
}
{
CategoryNameType theCategoryName;
theCategoryName = this.getCategoryName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "categoryName", theCategoryName), currentHashCode, theCategoryName, (this.categoryName!= null));
}
{
HazardousCategoryCodeType theHazardousCategoryCode;
theHazardousCategoryCode = this.getHazardousCategoryCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "hazardousCategoryCode", theHazardousCategoryCode), currentHashCode, theHazardousCategoryCode, (this.hazardousCategoryCode!= null));
}
{
UpperOrangeHazardPlacardIDType theUpperOrangeHazardPlacardID;
theUpperOrangeHazardPlacardID = this.getUpperOrangeHazardPlacardID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "upperOrangeHazardPlacardID", theUpperOrangeHazardPlacardID), currentHashCode, theUpperOrangeHazardPlacardID, (this.upperOrangeHazardPlacardID!= null));
}
{
LowerOrangeHazardPlacardIDType theLowerOrangeHazardPlacardID;
theLowerOrangeHazardPlacardID = this.getLowerOrangeHazardPlacardID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lowerOrangeHazardPlacardID", theLowerOrangeHazardPlacardID), currentHashCode, theLowerOrangeHazardPlacardID, (this.lowerOrangeHazardPlacardID!= null));
}
{
MarkingIDType theMarkingID;
theMarkingID = this.getMarkingID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "markingID", theMarkingID), currentHashCode, theMarkingID, (this.markingID!= null));
}
{
HazardClassIDType theHazardClassID;
theHazardClassID = this.getHazardClassID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "hazardClassID", theHazardClassID), currentHashCode, theHazardClassID, (this.hazardClassID!= null));
}
{
NetWeightMeasureType theNetWeightMeasure;
theNetWeightMeasure = this.getNetWeightMeasure();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "netWeightMeasure", theNetWeightMeasure), currentHashCode, theNetWeightMeasure, (this.netWeightMeasure!= null));
}
{
NetVolumeMeasureType theNetVolumeMeasure;
theNetVolumeMeasure = this.getNetVolumeMeasure();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "netVolumeMeasure", theNetVolumeMeasure), currentHashCode, theNetVolumeMeasure, (this.netVolumeMeasure!= null));
}
{
QuantityType theQuantity;
theQuantity = this.getQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity, (this.quantity!= null));
}
{
PartyType theContactParty;
theContactParty = this.getContactParty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contactParty", theContactParty), currentHashCode, theContactParty, (this.contactParty!= null));
}
{
List theSecondaryHazard;
theSecondaryHazard = (((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty()))?this.getSecondaryHazard():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "secondaryHazard", theSecondaryHazard), currentHashCode, theSecondaryHazard, ((this.secondaryHazard!= null)&&(!this.secondaryHazard.isEmpty())));
}
{
List theHazardousGoodsTransit;
theHazardousGoodsTransit = (((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty()))?this.getHazardousGoodsTransit():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "hazardousGoodsTransit", theHazardousGoodsTransit), currentHashCode, theHazardousGoodsTransit, ((this.hazardousGoodsTransit!= null)&&(!this.hazardousGoodsTransit.isEmpty())));
}
{
TemperatureType theEmergencyTemperature;
theEmergencyTemperature = this.getEmergencyTemperature();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emergencyTemperature", theEmergencyTemperature), currentHashCode, theEmergencyTemperature, (this.emergencyTemperature!= null));
}
{
TemperatureType theFlashpointTemperature;
theFlashpointTemperature = this.getFlashpointTemperature();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "flashpointTemperature", theFlashpointTemperature), currentHashCode, theFlashpointTemperature, (this.flashpointTemperature!= null));
}
{
List theAdditionalTemperature;
theAdditionalTemperature = (((this.additionalTemperature!= null)&&(!this.additionalTemperature.isEmpty()))?this.getAdditionalTemperature():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "additionalTemperature", theAdditionalTemperature), currentHashCode, theAdditionalTemperature, ((this.additionalTemperature!= null)&&(!this.additionalTemperature.isEmpty())));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}