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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.RoadTransportType 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.LicensePlateIDType;


/**
 * 
 * 
 * <?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>Road Transport. Details</ccts:DictionaryEntryName><ccts:Definition>Describes a road transport vehicle.</ccts:Definition><ccts:ObjectClass>Road Transport</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for RoadTransportType complex type. * *

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

 * <complexType name="RoadTransportType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}LicensePlateID"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RoadTransportType", propOrder = { "licensePlateID" }) public class RoadTransportType implements Serializable { @XmlElement(name = "LicensePlateID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private LicensePlateIDType licensePlateID; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public RoadTransportType() { } /** * *
     * <?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>Road Transport. License Plate Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies a specific vehicle.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Road Transport</ccts:ObjectClass><ccts:PropertyTerm>License Plate Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Vehicle registration number (WCO ID 167)</ccts:AlternativeBusinessTerms></ccts:Component>
     * 
* * * @return * possible object is * {@link LicensePlateIDType } * */ @Nullable public LicensePlateIDType getLicensePlateID() { return licensePlateID; } /** * Sets the value of the licensePlateID property. * * @param value * allowed object is * {@link LicensePlateIDType } * */ public void setLicensePlateID( @Nullable LicensePlateIDType value) { this.licensePlateID = 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 RoadTransportType rhs = ((RoadTransportType) o); if (!EqualsUtils.equals(licensePlateID, rhs.licensePlateID)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(licensePlateID).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("licensePlateID", licensePlateID).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 LicensePlateIDType and never null */ @Nonnull public LicensePlateIDType setLicensePlateID( @Nullable final String valueParam) { LicensePlateIDType aObj = getLicensePlateID(); if (aObj == null) { aObj = new LicensePlateIDType(valueParam); setLicensePlateID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained LicensePlateIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained LicensePlateIDType object or null */ @Nullable public String getLicensePlateIDValue() { LicensePlateIDType aObj = getLicensePlateID(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy