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

oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.RailTransportType 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.RailCarIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TrainIDType;


/**
 * 
 * 
 * <?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>Rail Transport. Details</ccts:DictionaryEntryName><ccts:Definition>Describes a train.</ccts:Definition><ccts:ObjectClass>Rail Transport</ccts:ObjectClass></ccts:Component>
 * 
* * *

Java class for RailTransportType complex type. * *

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

 * <complexType name="RailTransportType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TrainID"/>
 *         <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}RailCarID" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RailTransportType", propOrder = { "trainID", "railCarID" }) public class RailTransportType implements Serializable { @XmlElement(name = "TrainID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true) private TrainIDType trainID; @XmlElement(name = "RailCarID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2") private RailCarIDType railCarID; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public RailTransportType() { } /** * *
     * <?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>Rail Transport. Train Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies a train.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Rail Transport</ccts:ObjectClass><ccts:PropertyTerm>Train Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Train Number (WCO ID 167)</ccts:AlternativeBusinessTerms></ccts:Component>
     * 
* * * @return * possible object is * {@link TrainIDType } * */ @Nullable public TrainIDType getTrainID() { return trainID; } /** * Sets the value of the trainID property. * * @param value * allowed object is * {@link TrainIDType } * */ public void setTrainID( @Nullable TrainIDType value) { this.trainID = 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>Rail Transport. Rail Car Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies the rail car on the train used for the means of transport.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Rail Transport</ccts:ObjectClass><ccts:PropertyTerm>Rail Car Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType></ccts:Component>
     * 
* * * @return * possible object is * {@link RailCarIDType } * */ @Nullable public RailCarIDType getRailCarID() { return railCarID; } /** * Sets the value of the railCarID property. * * @param value * allowed object is * {@link RailCarIDType } * */ public void setRailCarID( @Nullable RailCarIDType value) { this.railCarID = 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 RailTransportType rhs = ((RailTransportType) o); if (!EqualsUtils.equals(trainID, rhs.trainID)) { return false; } if (!EqualsUtils.equals(railCarID, rhs.railCarID)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(trainID).append(railCarID).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("trainID", trainID).append("railCarID", railCarID).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 TrainIDType and never null */ @Nonnull public TrainIDType setTrainID( @Nullable final String valueParam) { TrainIDType aObj = getTrainID(); if (aObj == null) { aObj = new TrainIDType(valueParam); setTrainID(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 RailCarIDType and never null */ @Nonnull public RailCarIDType setRailCarID( @Nullable final String valueParam) { RailCarIDType aObj = getRailCarID(); if (aObj == null) { aObj = new RailCarIDType(valueParam); setRailCarID(aObj); } else { aObj.setValue(valueParam); } return aObj; } /** * Get the value of the contained TrainIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained TrainIDType object or null */ @Nullable public String getTrainIDValue() { TrainIDType aObj = getTrainID(); return ((aObj == null)?null:aObj.getValue()); } /** * Get the value of the contained RailCarIDType object * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @return * Either the value of the contained RailCarIDType object or null */ @Nullable public String getRailCarIDValue() { RailCarIDType aObj = getRailCarID(); return ((aObj == null)?null:aObj.getValue()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy