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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.SecondaryHazardType Maven / Gradle / Ivy


package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;

import java.io.Serializable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
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 com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.EmergencyProceduresCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ExtensionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlacardEndorsementType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PlacardNotationType;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>ABIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Details</ccts:DictionaryEntryName><ccts:Definition>Information about Secondary Hazard (related to a Hazardous Item).</ccts:Definition><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for SecondaryHazardType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SecondaryHazardType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <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}EmergencyProceduresCode" minOccurs="0"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Extension" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SecondaryHazardType", propOrder = { "id", "placardNotation", "placardEndorsement", "emergencyProceduresCode", "extension" }) public class SecondaryHazardType implements Serializable { @XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private IDType id; @XmlElement(name = "PlacardNotation", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PlacardNotationType placardNotation; @XmlElement(name = "PlacardEndorsement", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private PlacardEndorsementType placardEndorsement; @XmlElement(name = "EmergencyProceduresCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private EmergencyProceduresCodeType emergencyProceduresCode; @XmlElement(name = "Extension", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private ExtensionType extension; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public SecondaryHazardType() { } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the Secondary Hazard.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass><ccts:PropertyTerm>Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link IDType } * */ @Nullable public IDType getID() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link IDType } * */ public void setID( @Nullable IDType value) { this.id = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Placard Notation. Text</ccts:DictionaryEntryName><ccts:Definition>The placard notation corresponding to the hazard class of the hazardous commodity. Can also be the hazard identification number of the orange placard (upper part) required on the means of transport.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass><ccts:PropertyTerm>Placard Notation</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>"5.1"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link PlacardNotationType } * */ @Nullable public PlacardNotationType getPlacardNotation() { return placardNotation; } /** * Sets the value of the placardNotation property. * * @param value * allowed object is * {@link PlacardNotationType } * */ public void setPlacardNotation( @Nullable PlacardNotationType value) { this.placardNotation = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Placard Endorsement. Text</ccts:DictionaryEntryName><ccts:Definition>The placard endorsement that is to be shown on the shipping papers for the hazardous commodity. Can also be used for the number of the orange placard (lower part) required on the means of transport.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass><ccts:PropertyTerm>Placard Endorsement</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>"2"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link PlacardEndorsementType } * */ @Nullable public PlacardEndorsementType getPlacardEndorsement() { return placardEndorsement; } /** * Sets the value of the placardEndorsement property. * * @param value * allowed object is * {@link PlacardEndorsementType } * */ public void setPlacardEndorsement( @Nullable PlacardEndorsementType value) { this.placardEndorsement = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Emergency Procedures Code. Code</ccts:DictionaryEntryName><ccts:Definition>Emergency procedures for hazardous goods, expressed as a code.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass><ccts:PropertyTerm>Emergency Procedures Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>EMG code, EMS Page Number</ccts:AlternativeBusinessTerms></ccts:Component>
     * 
* * * @return * possible object is * {@link EmergencyProceduresCodeType } * */ @Nullable public EmergencyProceduresCodeType getEmergencyProceduresCode() { return emergencyProceduresCode; } /** * Sets the value of the emergencyProceduresCode property. * * @param value * allowed object is * {@link EmergencyProceduresCodeType } * */ public void setEmergencyProceduresCode( @Nullable EmergencyProceduresCodeType value) { this.emergencyProceduresCode = value; } /** * *
     * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>BBIE</ccts:ComponentType><ccts:DictionaryEntryName>Secondary Hazard. Extension. Text</ccts:DictionaryEntryName><ccts:Definition>Additional information about the hazardous substance. Can be used to specify information such as the type of regulatory requirements that apply to a description.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Secondary Hazard</ccts:ObjectClass><ccts:PropertyTerm>Extension</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:Examples>"N.O.S. or a Waste Characteristics Code in conjunction with an EPA Waste Stream code"</ccts:Examples></ccts:Component>
     * 
* * * @return * possible object is * {@link ExtensionType } * */ @Nullable public ExtensionType getExtension() { return extension; } /** * Sets the value of the extension property. * * @param value * allowed object is * {@link ExtensionType } * */ public void setExtension( @Nullable ExtensionType value) { this.extension = value; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final SecondaryHazardType rhs = ((SecondaryHazardType) o); if (!EqualsUtils.equals(id, rhs.id)) { return false; } if (!EqualsUtils.equals(placardNotation, rhs.placardNotation)) { return false; } if (!EqualsUtils.equals(placardEndorsement, rhs.placardEndorsement)) { return false; } if (!EqualsUtils.equals(emergencyProceduresCode, rhs.emergencyProceduresCode)) { return false; } if (!EqualsUtils.equals(extension, rhs.extension)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(id).append(placardNotation).append(placardEndorsement).append(emergencyProceduresCode).append(extension).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("id", id).append("placardNotation", placardNotation).append("placardEndorsement", placardEndorsement).append("emergencyProceduresCode", emergencyProceduresCode).append("extension", extension).toString(); } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PlacardNotationType and never null */ @Nonnull public PlacardNotationType setPlacardNotation( @Nullable final String valueParam) { PlacardNotationType aObj = getPlacardNotation(); if (aObj == null) { aObj = new PlacardNotationType(valueParam); setPlacardNotation(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type PlacardEndorsementType and never null */ @Nonnull public PlacardEndorsementType setPlacardEndorsement( @Nullable final String valueParam) { PlacardEndorsementType aObj = getPlacardEndorsement(); if (aObj == null) { aObj = new PlacardEndorsementType(valueParam); setPlacardEndorsement(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type ExtensionType and never null */ @Nonnull public ExtensionType setExtension( @Nullable final String valueParam) { ExtensionType aObj = getExtension(); if (aObj == null) { aObj = new ExtensionType(valueParam); setExtension(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type IDType and never null */ @Nonnull public IDType setID( @Nullable final String valueParam) { IDType aObj = getID(); if (aObj == null) { aObj = new IDType(valueParam); setID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Special setter with value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. * @return * The created intermediary object of type EmergencyProceduresCodeType and never null */ @Nonnull public EmergencyProceduresCodeType setEmergencyProceduresCode( @Nullable final String valueParam) { EmergencyProceduresCodeType aObj = getEmergencyProceduresCode(); if (aObj == null) { aObj = new EmergencyProceduresCodeType(valueParam); setEmergencyProceduresCode(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained IDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained IDType object or null */ @Nullable public String getIDValue() { IDType aObj = getID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PlacardNotationType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PlacardNotationType object or null */ @Nullable public String getPlacardNotationValue() { PlacardNotationType aObj = getPlacardNotation(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained PlacardEndorsementType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained PlacardEndorsementType object or null */ @Nullable public String getPlacardEndorsementValue() { PlacardEndorsementType aObj = getPlacardEndorsement(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained EmergencyProceduresCodeType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained EmergencyProceduresCodeType object or null */ @Nullable public String getEmergencyProceduresCodeValue() { EmergencyProceduresCodeType aObj = getEmergencyProceduresCode(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained ExtensionType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained ExtensionType object or null */ @Nullable public String getExtensionValue() { ExtensionType aObj = getExtension(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy