Enum Class Codes.Transport

java.lang.Object
java.lang.Enum<Codes.Transport>
com.fourjs.report.facturx.Codes.Transport
All Implemented Interfaces:
Serializable, Comparable<Codes.Transport>, java.lang.constant.Constable
Enclosing class:
Codes

public static enum Codes.Transport extends Enum<Codes.Transport>
TRANSPORT: BT-X-152
  • Enum Constant Details

    • No0

      public static final Codes.Transport No0
      Transport mode not specified
      The function getCode() returns "0" for this value
      The function getName() returns "Transport mode not specified" for this value
      The function getDescription() 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

      public static final Codes.Transport No1
      Maritime transport
      The function getCode() returns "1" for this value
      The function getName() returns "Maritime transport" for this value
      The function getDescription() returns "Transport of goods and/or persons is by sea." for this value
    • No2

      public static final Codes.Transport No2
      Rail transport
      The function getCode() returns "2" for this value
      The function getName() returns "Rail transport" for this value
      The function getDescription() returns "Transport of goods and/or persons is by rail." for this value
    • No3

      public static final Codes.Transport No3
      Road transport
      The function getCode() returns "3" for this value
      The function getName() returns "Road transport" for this value
      The function getDescription() returns "Transport of goods and/or persons is by road." for this value
    • No4

      public static final Codes.Transport No4
      Air transport
      The function getCode() returns "4" for this value
      The function getName() returns "Air transport" for this value
      The function getDescription() returns "Transport of goods and/or persons is by air." for this value
    • No5

      public static final Codes.Transport No5
      Mail
      The function getCode() returns "5" for this value
      The function getName() returns "Mail" for this value
      The function getDescription() 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

      public static final Codes.Transport No6
      Multimodal transpo
      The function getCode() returns "6" for this value
      The function getName() returns "Multimodal transpo" for this value
      The function getDescription() 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

      public static final Codes.Transport No7
      Fixed transport installation
      The function getCode() returns "7" for this value
      The function getName() returns "Fixed transport installation" for this value
      The function getDescription() 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

      public static final Codes.Transport No8
      Inland water transport
      The function getCode() returns "8" for this value
      The function getName() returns "Inland water transport" for this value
      The function getDescription() returns "Transport of goods and/or persons is by inland water." for this value
    • No9

      public static final Codes.Transport No9
      Transport mode not applicable
      The function getCode() returns "9" for this value
      The function getName() returns "Transport mode not applicable" for this value
      The function getDescription() returns "The mode of transport is not applicable." for this value
    • CustomEntry1

      public static final Codes.Transport CustomEntry1
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry2

      public static final Codes.Transport CustomEntry2
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry3

      public static final Codes.Transport CustomEntry3
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry4

      public static final Codes.Transport CustomEntry4
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry5

      public static final Codes.Transport CustomEntry5
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry6

      public static final Codes.Transport CustomEntry6
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry7

      public static final Codes.Transport CustomEntry7
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry8

      public static final Codes.Transport CustomEntry8
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry9

      public static final Codes.Transport CustomEntry9
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
    • CustomEntry10

      public static final Codes.Transport CustomEntry10
      Custom entry whose member "code" gets updated to "value" on calls to fromString(String value)
  • Method Details

    • values

      public static Codes.Transport[] 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

      public static Codes.Transport valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Get the "Code" property value
      Returns:
      code
    • getName

      public String getName()
      Get the "Name" property value
      Returns:
      name
    • getDescription

      public String getDescription()
      Get the "Description" property value
      Returns:
      description
    • toString

      public String toString()
      Returns a string representation of the Transport.
      Overrides:
      toString in class Enum<Codes.Transport>
      Returns:
      a string representation of the Transport.
    • fromString

      public static Codes.Transport fromString(String value)
      Convert a String to a Transport.
      Throws a IllegalArgumentException if 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

      public static boolean isNativeValue(String value)
      Tests if valueOf(value) would return a non custom enum value
      Returns:
      true if if valueOf(value) would return a non custom enum value