Enum Class Codes.Transport
- All Implemented Interfaces:
Serializable, Comparable<Codes.Transport>, java.lang.constant.Constable
- Enclosing class:
Codes
TRANSPORT: BT-X-152
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)Transport mode not specified
The functiongetCode()returns "0" for this value
The functiongetName()returns "Transport mode not specified" for this value
The functiongetDescription()returns "Transport mode has not been specified Notes: 1) This code can be used when the mode is not known or when information on it is not available at the time of issuing the document concerned." for this valueMaritime transport
The functiongetCode()returns "1" for this value
The functiongetName()returns "Maritime transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by sea." for this valueRail transport
The functiongetCode()returns "2" for this value
The functiongetName()returns "Rail transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by rail." for this valueRoad transport
The functiongetCode()returns "3" for this value
The functiongetName()returns "Road transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by road." for this valueAir transport
The functiongetCode()returns "4" for this value
The functiongetName()returns "Air transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by air." for this valueMail
The functiongetCode()returns "5" for this value
The functiongetName()returns "Mail" for this value
The functiongetDescription()returns "Method to convey goods is by mail Notes: 1) This code is provided for practical reasons, despite the fact that mail is not a genuine mode of transport.Multimodal transpo
The functiongetCode()returns "6" for this value
The functiongetName()returns "Multimodal transpo" for this value
The functiongetDescription()returns "Method to convey goods and/or persons is by multimodal transport.Fixed transport installation
The functiongetCode()returns "7" for this value
The functiongetName()returns "Fixed transport installation" for this value
The functiongetDescription()returns "Transport of item is via a fixed transport installation.Inland water transport
The functiongetCode()returns "8" for this value
The functiongetName()returns "Inland water transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by inland water." for this valueTransport mode not applicable
The functiongetCode()returns "9" for this value
The functiongetName()returns "Transport mode not applicable" for this value
The functiongetDescription()returns "The mode of transport is not applicable." for this value -
Method Summary
Modifier and TypeMethodDescriptionstatic Codes.TransportfromString(String value) Convert a String to a Transport.getCode()Get the "Code" property valueGet the "Description" property valuegetName()Get the "Name" property valuestatic booleanisNativeValue(String value) Tests ifvalueOf(value)would return a non custom enum valuetoString()Returns a string representation of the Transport.static Codes.TransportReturns the enum constant of this class with the specified name.static Codes.Transport[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
No0
Transport mode not specified
The functiongetCode()returns "0" for this value
The functiongetName()returns "Transport mode not specified" for this value
The functiongetDescription()returns "Transport mode has not been specified Notes: 1) This code can be used when the mode is not known or when information on it is not available at the time of issuing the document concerned." for this value -
No1
Maritime transport
The functiongetCode()returns "1" for this value
The functiongetName()returns "Maritime transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by sea." for this value -
No2
Rail transport
The functiongetCode()returns "2" for this value
The functiongetName()returns "Rail transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by rail." for this value -
No3
Road transport
The functiongetCode()returns "3" for this value
The functiongetName()returns "Road transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by road." for this value -
No4
Air transport
The functiongetCode()returns "4" for this value
The functiongetName()returns "Air transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by air." for this value -
No5
Mail
The functiongetCode()returns "5" for this value
The functiongetName()returns "Mail" for this value
The functiongetDescription()returns "Method to convey goods is by mail Notes: 1) This code is provided for practical reasons, despite the fact that mail is not a genuine mode of transport. In many countries, the value of merchandise exported and imported by mail is considerable, but the exporter or importer concerned would be unable to state by which mode postal items had been conveyed." for this value -
No6
Multimodal transpo
The functiongetCode()returns "6" for this value
The functiongetName()returns "Multimodal transpo" for this value
The functiongetDescription()returns "Method to convey goods and/or persons is by multimodal transport. Notes: 1) This code is provided for practical reasons, despite the fact that multimodal transport is not a genuine mode of transport. It can be used when goods are carried by at least two different modes from a place at which the goods are taken in charge by a transport operator to a place designated for delivery, on the basis of one transport contract. (Operations of pick-up and delivery of goods carried out in the performance of a single mode of transport, as defined in such a contract, shall not be considered as multimodal transport)." for this value -
No7
Fixed transport installation
The functiongetCode()returns "7" for this value
The functiongetName()returns "Fixed transport installation" for this value
The functiongetDescription()returns "Transport of item is via a fixed transport installation. Notes: 1) This code applies to installations for continuous transport such as pipelines, ropeways and electric power lines." for this value -
No8
Inland water transport
The functiongetCode()returns "8" for this value
The functiongetName()returns "Inland water transport" for this value
The functiongetDescription()returns "Transport of goods and/or persons is by inland water." for this value -
No9
Transport mode not applicable
The functiongetCode()returns "9" for this value
The functiongetName()returns "Transport mode not applicable" for this value
The functiongetDescription()returns "The mode of transport is not applicable." for this value -
CustomEntry1
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry2
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry3
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry4
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry5
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry6
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry7
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry8
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry9
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value) -
CustomEntry10
Custom entry whose member "code" gets updated to "value" on calls tofromString(String value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
-
getName
-
getDescription
-
toString
Returns a string representation of the Transport.- Overrides:
toStringin classEnum<Codes.Transport>- Returns:
- a string representation of the Transport.
-
fromString
Convert a String to a Transport.
Throws aIllegalArgumentExceptionif the value doesn't exist unless the system property "facturx.laxenums" is set to true. In the latter case, a custom value is returned if available.- Returns:
- a Transport that represents the String.
-
isNativeValue
Tests ifvalueOf(value)would return a non custom enum value- Returns:
- true if if
valueOf(value)would return a non custom enum value
-