oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TransportationServiceType 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.FreightRateClassCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.PriorityType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TariffClassCodeType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TransportServiceCodeType;
/**
*
*
* <?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>Transportation Service. Details</ccts:DictionaryEntryName><ccts:Definition>Transport service details.</ccts:Definition><ccts:ObjectClass>Transportation Service</ccts:ObjectClass></ccts:Component>
*
*
*
* Java class for TransportationServiceType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TransportationServiceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TransportServiceCode"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TariffClassCode" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Priority" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}FreightRateClassCode" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransportationServiceType", propOrder = {
"transportServiceCode",
"tariffClassCode",
"priority",
"freightRateClassCode"
})
public class TransportationServiceType implements Serializable
{
@XmlElement(name = "TransportServiceCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
private TransportServiceCodeType transportServiceCode;
@XmlElement(name = "TariffClassCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private TariffClassCodeType tariffClassCode;
@XmlElement(name = "Priority", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private PriorityType priority;
@XmlElement(name = "FreightRateClassCode", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
private FreightRateClassCodeType freightRateClassCode;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public TransportationServiceType() {
}
/**
*
*
* <?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>Transportation Service. Transport Service Code. Code</ccts:DictionaryEntryName><ccts:Definition>A code which describes the general type of service required for the transportation of goods. Specifically, it identifies the extent of the transportation service, e.g., door-to-door, port-to-port.</ccts:Definition><ccts:Cardinality>1</ccts:Cardinality><ccts:ObjectClass>Transportation Service</ccts:ObjectClass><ccts:PropertyTerm>Transport Service Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link TransportServiceCodeType }
*
*/
@Nullable
public TransportServiceCodeType getTransportServiceCode() {
return transportServiceCode;
}
/**
* Sets the value of the transportServiceCode property.
*
* @param value
* allowed object is
* {@link TransportServiceCodeType }
*
*/
public void setTransportServiceCode(
@Nullable
TransportServiceCodeType value) {
this.transportServiceCode = 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>Transportation Service. Tariff Class Code. Code</ccts:DictionaryEntryName><ccts:Definition>Specification of a tariff class applicable to a transportation service.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transportation Service</ccts:ObjectClass><ccts:PropertyTerm>Tariff Class Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Tariff Class Specifier</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* @return
* possible object is
* {@link TariffClassCodeType }
*
*/
@Nullable
public TariffClassCodeType getTariffClassCode() {
return tariffClassCode;
}
/**
* Sets the value of the tariffClassCode property.
*
* @param value
* allowed object is
* {@link TariffClassCodeType }
*
*/
public void setTariffClassCode(
@Nullable
TariffClassCodeType value) {
this.tariffClassCode = 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>Transportation Service. Priority. Text</ccts:DictionaryEntryName><ccts:Definition>Statement indicating priority of requested transportation service.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transportation Service</ccts:ObjectClass><ccts:PropertyTerm>Priority</ccts:PropertyTerm><ccts:RepresentationTerm>Text</ccts:RepresentationTerm><ccts:DataType>Text. Type</ccts:DataType></ccts:Component>
*
*
*
* @return
* possible object is
* {@link PriorityType }
*
*/
@Nullable
public PriorityType getPriority() {
return priority;
}
/**
* Sets the value of the priority property.
*
* @param value
* allowed object is
* {@link PriorityType }
*
*/
public void setPriority(
@Nullable
PriorityType value) {
this.priority = 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>Transportation Service. Freight Rate Class Code. Code</ccts:DictionaryEntryName><ccts:Definition>Code to indicate applicable rate class for freight.</ccts:Definition><ccts:Cardinality>0..1</ccts:Cardinality><ccts:ObjectClass>Transportation Service</ccts:ObjectClass><ccts:PropertyTerm>Freight Rate Class Code</ccts:PropertyTerm><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataType>Code. Type</ccts:DataType><ccts:AlternativeBusinessTerms>Charge Basis</ccts:AlternativeBusinessTerms></ccts:Component>
*
*
*
* @return
* possible object is
* {@link FreightRateClassCodeType }
*
*/
@Nullable
public FreightRateClassCodeType getFreightRateClassCode() {
return freightRateClassCode;
}
/**
* Sets the value of the freightRateClassCode property.
*
* @param value
* allowed object is
* {@link FreightRateClassCodeType }
*
*/
public void setFreightRateClassCode(
@Nullable
FreightRateClassCodeType value) {
this.freightRateClassCode = 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 TransportationServiceType rhs = ((TransportationServiceType) o);
if (!EqualsUtils.equals(transportServiceCode, rhs.transportServiceCode)) {
return false;
}
if (!EqualsUtils.equals(tariffClassCode, rhs.tariffClassCode)) {
return false;
}
if (!EqualsUtils.equals(priority, rhs.priority)) {
return false;
}
if (!EqualsUtils.equals(freightRateClassCode, rhs.freightRateClassCode)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(transportServiceCode).append(tariffClassCode).append(priority).append(freightRateClassCode).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("transportServiceCode", transportServiceCode).append("tariffClassCode", tariffClassCode).append("priority", priority).append("freightRateClassCode", freightRateClassCode).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 PriorityType and never null
*/
@Nonnull
public PriorityType setPriority(
@Nullable
final String valueParam) {
PriorityType aObj = getPriority();
if (aObj == null) {
aObj = new PriorityType(valueParam);
setPriority(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 TransportServiceCodeType and never null
*/
@Nonnull
public TransportServiceCodeType setTransportServiceCode(
@Nullable
final String valueParam) {
TransportServiceCodeType aObj = getTransportServiceCode();
if (aObj == null) {
aObj = new TransportServiceCodeType(valueParam);
setTransportServiceCode(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 TariffClassCodeType and never null
*/
@Nonnull
public TariffClassCodeType setTariffClassCode(
@Nullable
final String valueParam) {
TariffClassCodeType aObj = getTariffClassCode();
if (aObj == null) {
aObj = new TariffClassCodeType(valueParam);
setTariffClassCode(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 FreightRateClassCodeType and never null
*/
@Nonnull
public FreightRateClassCodeType setFreightRateClassCode(
@Nullable
final String valueParam) {
FreightRateClassCodeType aObj = getFreightRateClassCode();
if (aObj == null) {
aObj = new FreightRateClassCodeType(valueParam);
setFreightRateClassCode(aObj);
} else {
aObj.setValue(valueParam);
}
return aObj;
}
/**
* Get the value of the contained TransportServiceCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained TransportServiceCodeType object or null
*/
@Nullable
public String getTransportServiceCodeValue() {
TransportServiceCodeType aObj = getTransportServiceCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained TariffClassCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained TariffClassCodeType object or null
*/
@Nullable
public String getTariffClassCodeValue() {
TariffClassCodeType aObj = getTariffClassCode();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained PriorityType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained PriorityType object or null
*/
@Nullable
public String getPriorityValue() {
PriorityType aObj = getPriority();
return ((aObj == null)?null:aObj.getValue());
}
/**
* Get the value of the contained FreightRateClassCodeType object
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
* @return
* Either the value of the contained FreightRateClassCodeType object or null
*/
@Nullable
public String getFreightRateClassCodeValue() {
FreightRateClassCodeType aObj = getFreightRateClassCode();
return ((aObj == null)?null:aObj.getValue());
}
}