oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TransportMeansType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnegative;
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.annotations.ReturnsMutableObject;
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.DirectionCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.JourneyIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.RegistrationNationalityIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.RegistrationNationalityType;
/**
*
*
* <?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>Transport Means. Details</ccts:DictionaryEntryName><ccts:Definition>The particular vehicle used for the transport of goods or persons.</ccts:Definition><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:AlternativeBusinessTerms>Conveyance</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* Java class for TransportMeansType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TransportMeansType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}JourneyID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}RegistrationNationalityID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}RegistrationNationality" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DirectionCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Stowage" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}AirTransport" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}RoadTransport" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}RailTransport" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}MaritimeTransport" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}OwnerParty" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransportMeansType", propOrder = {
"journeyID",
"registrationNationalityID",
"registrationNationality",
"directionCode",
"stowage",
"airTransport",
"roadTransport",
"railTransport",
"maritimeTransport",
"ownerParty"
})
public class TransportMeansType implements Serializable
{
@XmlElement(name = "JourneyID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private JourneyIDType journeyID;
@XmlElement(name = "RegistrationNationalityID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private RegistrationNationalityIDType registrationNationalityID;
@XmlElement(name = "RegistrationNationality", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private List registrationNationality;
@XmlElement(name = "DirectionCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private DirectionCodeType directionCode;
@XmlElement(name = "Stowage")
private StowageType stowage;
@XmlElement(name = "AirTransport")
private AirTransportType airTransport;
@XmlElement(name = "RoadTransport")
private RoadTransportType roadTransport;
@XmlElement(name = "RailTransport")
private RailTransportType railTransport;
@XmlElement(name = "MaritimeTransport")
private MaritimeTransportType maritimeTransport;
@XmlElement(name = "OwnerParty")
private PartyType ownerParty;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public TransportMeansType() {
}
/**
*
*
* <?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>Transport Means. Journey Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>An identifier assigned to a regularly scheduled service of a means of transport.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Journey Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Voyage Number, Scheduled Conveyance Identifier (WCO ID 205), Flight Number</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* @return
* possible object is
* {@link JourneyIDType }
*
*/
@Nullable
public JourneyIDType getJourneyID() {
return journeyID;
}
/**
* Sets the value of the journeyID property.
*
* @param value
* allowed object is
* {@link JourneyIDType }
*
*/
public void setJourneyID(
@Nullable
JourneyIDType value) {
this.journeyID = 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>Transport Means. Registration_ Nationality Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Formal identification of the country in which a means of transport is registered.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTermQualifier>Registration</ccts:PropertyTermQualifier><ccts:PropertyTerm>Nationality Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Nationality of Means of Transport (WCO 175, 178 and 179)</ccts:AlternativeBusinessTerms><ccts:Examples>"LIB"</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link RegistrationNationalityIDType }
*
*/
@Nullable
public RegistrationNationalityIDType getRegistrationNationalityID() {
return registrationNationalityID;
}
/**
* Sets the value of the registrationNationalityID property.
*
* @param value
* allowed object is
* {@link RegistrationNationalityIDType }
*
*/
public void setRegistrationNationalityID(
@Nullable
RegistrationNationalityIDType value) {
this.registrationNationalityID = 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>Transport Means. Registration_ Nationality. Text</ccts:DictionaryEntryName><ccts:Definition>Name of the country in which a means of transport is registered.</ccts:Definition><ccts:Cardinality>0..n</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTermQualifier>Registration</ccts:PropertyTermQualifier><ccts:PropertyTerm>Nationality</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Flag of Vessel, Nationality of Ship</ccts:AlternativeBusinessTerms><ccts:Examples>Liberia</ccts:Examples></ccts:Component>
*
* Gets the value of the registrationNationality 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 registrationNationality property.
*
*
* For example, to add a new item, do as follows:
*
* getRegistrationNationality().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link RegistrationNationalityType }
*
*
*/
@Nonnull
@ReturnsMutableObject(reason = "JAXB implementation style")
public List getRegistrationNationality() {
if (registrationNationality == null) {
registrationNationality = new ArrayList();
}
return this.registrationNationality;
}
/**
*
*
* <?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>Transport Means. Direction Code. Code</ccts:DictionaryEntryName><ccts:Definition>The direction of the transport means.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Direction Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Transit Direction</ccts:AlternativeBusinessTerms><ccts:Examples>"North","East"</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link DirectionCodeType }
*
*/
@Nullable
public DirectionCodeType getDirectionCode() {
return directionCode;
}
/**
* Sets the value of the directionCode property.
*
* @param value
* allowed object is
* {@link DirectionCodeType }
*
*/
public void setDirectionCode(
@Nullable
DirectionCodeType value) {
this.directionCode = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Stowage</ccts:DictionaryEntryName><ccts:Definition>Association to a location on board a means of transport where specified goods or transport equipment have been or are to be stowed.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Stowage</ccts:PropertyTerm><ccts:AssociatedObjectClass>Stowage</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link StowageType }
*
*/
@Nullable
public StowageType getStowage() {
return stowage;
}
/**
* Sets the value of the stowage property.
*
* @param value
* allowed object is
* {@link StowageType }
*
*/
public void setStowage(
@Nullable
StowageType value) {
this.stowage = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Air Transport</ccts:DictionaryEntryName><ccts:Definition>Association to identify an aircraft.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Air Transport</ccts:PropertyTerm><ccts:AssociatedObjectClass>Air Transport</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link AirTransportType }
*
*/
@Nullable
public AirTransportType getAirTransport() {
return airTransport;
}
/**
* Sets the value of the airTransport property.
*
* @param value
* allowed object is
* {@link AirTransportType }
*
*/
public void setAirTransport(
@Nullable
AirTransportType value) {
this.airTransport = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Road Transport</ccts:DictionaryEntryName><ccts:Definition>Association to identify a road vehicle.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Road Transport</ccts:PropertyTerm><ccts:AssociatedObjectClass>Road Transport</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link RoadTransportType }
*
*/
@Nullable
public RoadTransportType getRoadTransport() {
return roadTransport;
}
/**
* Sets the value of the roadTransport property.
*
* @param value
* allowed object is
* {@link RoadTransportType }
*
*/
public void setRoadTransport(
@Nullable
RoadTransportType value) {
this.roadTransport = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Rail Transport</ccts:DictionaryEntryName><ccts:Definition>Association to identify a train.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Rail Transport</ccts:PropertyTerm><ccts:AssociatedObjectClass>Rail Transport</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link RailTransportType }
*
*/
@Nullable
public RailTransportType getRailTransport() {
return railTransport;
}
/**
* Sets the value of the railTransport property.
*
* @param value
* allowed object is
* {@link RailTransportType }
*
*/
public void setRailTransport(
@Nullable
RailTransportType value) {
this.railTransport = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Maritime Transport</ccts:DictionaryEntryName><ccts:Definition>Association to identify a ship.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTerm>Maritime Transport</ccts:PropertyTerm><ccts:AssociatedObjectClass>Maritime Transport</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link MaritimeTransportType }
*
*/
@Nullable
public MaritimeTransportType getMaritimeTransport() {
return maritimeTransport;
}
/**
* Sets the value of the maritimeTransport property.
*
* @param value
* allowed object is
* {@link MaritimeTransportType }
*
*/
public void setMaritimeTransport(
@Nullable
MaritimeTransportType value) {
this.maritimeTransport = 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>ASBIE</ccts:ComponentType><ccts:DictionaryEntryName>Transport Means. Owner_ Party. Party</ccts:DictionaryEntryName><ccts:Definition>Association to the party owning the means of transport.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transport Means</ccts:ObjectClass><ccts:PropertyTermQualifier>Owner</ccts:PropertyTermQualifier><ccts:PropertyTerm>Party</ccts:PropertyTerm><ccts:AssociatedObjectClass>Party</ccts:AssociatedObjectClass></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PartyType }
*
*/
@Nullable
public PartyType getOwnerParty() {
return ownerParty;
}
/**
* Sets the value of the ownerParty property.
*
* @param value
* allowed object is
* {@link PartyType }
*
*/
public void setOwnerParty(
@Nullable
PartyType value) {
this.ownerParty = 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 TransportMeansType rhs = ((TransportMeansType) o);
if (!EqualsUtils.equals(journeyID, rhs.journeyID)) {
return false;
}
if (!EqualsUtils.equals(registrationNationalityID, rhs.registrationNationalityID)) {
return false;
}
if (!EqualsUtils.equals(registrationNationality, rhs.registrationNationality)) {
return false;
}
if (!EqualsUtils.equals(directionCode, rhs.directionCode)) {
return false;
}
if (!EqualsUtils.equals(stowage, rhs.stowage)) {
return false;
}
if (!EqualsUtils.equals(airTransport, rhs.airTransport)) {
return false;
}
if (!EqualsUtils.equals(roadTransport, rhs.roadTransport)) {
return false;
}
if (!EqualsUtils.equals(railTransport, rhs.railTransport)) {
return false;
}
if (!EqualsUtils.equals(maritimeTransport, rhs.maritimeTransport)) {
return false;
}
if (!EqualsUtils.equals(ownerParty, rhs.ownerParty)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(journeyID).append(registrationNationalityID).append(registrationNationality).append(directionCode).append(stowage).append(airTransport).append(roadTransport).append(railTransport).append(maritimeTransport).append(ownerParty).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("journeyID", journeyID).append("registrationNationalityID", registrationNationalityID).append("registrationNationality", registrationNationality).append("directionCode", directionCode).append("stowage", stowage).append("airTransport", airTransport).append("roadTransport", roadTransport).append("railTransport", railTransport).append("maritimeTransport", maritimeTransport).append("ownerParty", ownerParty).toString();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param aList
* The new list member to set. May be null
.
*/
public void setRegistrationNationality(
@Nullable
final List aList) {
registrationNationality = aList;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if at least one item is contained, false
otherwise.
*/
public boolean hasRegistrationNationalityEntries() {
return (!getRegistrationNationality().isEmpty());
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* true
if no item is contained, false
otherwise.
*/
public boolean hasNoRegistrationNationalityEntries() {
return getRegistrationNationality().isEmpty();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @return
* The number of contained elements. Always ≥ 0.
*/
@Nonnegative
public int getRegistrationNationalityCount() {
return getRegistrationNationality().size();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-list-extension
*
* @param index
* The index to retrieve
* @return
* The element at the specified index. May be null
* @throws ArrayIndexOutOfBoundsException
* if the index is invalid!
*/
@Nullable
public RegistrationNationalityType getRegistrationNationalityAtIndex(
@Nonnegative
final int index) {
return getRegistrationNationality().get(index);
}
/**
* 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 JourneyIDType and never null
*/
@Nonnull
public JourneyIDType setJourneyID(
@Nullable
final String valueParam) {
JourneyIDType aObj = getJourneyID();
if (aObj == null) {
aObj = new JourneyIDType(valueParam);
setJourneyID(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 RegistrationNationalityIDType and never null
*/
@Nonnull
public RegistrationNationalityIDType setRegistrationNationalityID(
@Nullable
final String valueParam) {
RegistrationNationalityIDType aObj = getRegistrationNationalityID();
if (aObj == null) {
aObj = new RegistrationNationalityIDType(valueParam);
setRegistrationNationalityID(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 DirectionCodeType and never null
*/
@Nonnull
public DirectionCodeType setDirectionCode(
@Nullable
final String valueParam) {
DirectionCodeType aObj = getDirectionCode();
if (aObj == null) {
aObj = new DirectionCodeType(valueParam);
setDirectionCode(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained JourneyIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained JourneyIDType object or null
*/
@Nullable
public String getJourneyIDValue() {
JourneyIDType aObj = getJourneyID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained RegistrationNationalityIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained RegistrationNationalityIDType object or null
*/
@Nullable
public String getRegistrationNationalityIDValue() {
RegistrationNationalityIDType aObj = getRegistrationNationalityID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained DirectionCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained DirectionCodeType object or null
*/
@Nullable
public String getDirectionCodeValue() {
DirectionCodeType aObj = getDirectionCode();
return ((aObj == null)?null:aObj.getValue());
}
}