oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.MaritimeTransportType 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.VesselIDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.VesselNameType;
/**
*
*
* <?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>Maritime Transport. Details</ccts:DictionaryEntryName><ccts:Definition>Describes a water (including sea, river, and canal) transport vessel.</ccts:Definition><ccts:ObjectClass>Maritime Transport</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for MaritimeTransportType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MaritimeTransportType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}VesselID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}VesselName" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MaritimeTransportType", propOrder = {
"vesselID",
"vesselName"
})
public class MaritimeTransportType implements Serializable
{
@XmlElement(name = "VesselID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private VesselIDType vesselID;
@XmlElement(name = "VesselName", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private VesselNameType vesselName;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public MaritimeTransportType() {
}
/**
*
*
* <?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>Maritime Transport. Vessel Identifier. Identifier</ccts:DictionaryEntryName><ccts:Definition>Identifies a specific vessel.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Maritime Transport</ccts:ObjectClass><ccts:PropertyTerm>Vessel Identifier</ccts:PropertyTerm><ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm><ccts:DataType>Identifier. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Lloyds Number, Registration Number (WCO ID 167)</ccts:AlternativeBusinessTerms><ccts:Examples>International Maritime Organisation number of a vessel</ccts:Examples></ccts:Component>
*
*
*
* @return
* possible object is
* {@link VesselIDType }
*
*/
@Nullable
public VesselIDType getVesselID() {
return vesselID;
}
/**
* Sets the value of the vesselID property.
*
* @param value
* allowed object is
* {@link VesselIDType }
*
*/
public void setVesselID(
@Nullable
VesselIDType value) {
this.vesselID = 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>Maritime Transport. Vessel Name. Name</ccts:DictionaryEntryName><ccts:Definition>The name of the vessel.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Maritime Transport</ccts:ObjectClass><ccts:PropertyTerm>Vessel Name</ccts:PropertyTerm><ccts:RepresentationTerm>Name</ccts:RepresentationTerm><ccts:DataType>Name. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Ships Name</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* @return
* possible object is
* {@link VesselNameType }
*
*/
@Nullable
public VesselNameType getVesselName() {
return vesselName;
}
/**
* Sets the value of the vesselName property.
*
* @param value
* allowed object is
* {@link VesselNameType }
*
*/
public void setVesselName(
@Nullable
VesselNameType value) {
this.vesselName = 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 MaritimeTransportType rhs = ((MaritimeTransportType) o);
if (!EqualsUtils.equals(vesselID, rhs.vesselID)) {
return false;
}
if (!EqualsUtils.equals(vesselName, rhs.vesselName)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(vesselID).append(vesselName).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("vesselID", vesselID).append("vesselName", vesselName).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 VesselNameType and never null
*/
@Nonnull
public VesselNameType setVesselName(
@Nullable
final String valueParam) {
VesselNameType aObj = getVesselName();
if (aObj == null) {
aObj = new VesselNameType(valueParam);
setVesselName(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 VesselIDType and never null
*/
@Nonnull
public VesselIDType setVesselID(
@Nullable
final String valueParam) {
VesselIDType aObj = getVesselID();
if (aObj == null) {
aObj = new VesselIDType(valueParam);
setVesselID(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained VesselIDType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained VesselIDType object or null
*/
@Nullable
public String getVesselIDValue() {
VesselIDType aObj = getVesselID();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained VesselNameType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained VesselNameType object or null
*/
@Nullable
public String getVesselNameValue() {
VesselNameType aObj = getVesselName();
return ((aObj == null)?null:aObj.getValue());
}
}