Class TransportMeansCode
- java.lang.Object
-
- com.itextpdf.text.zugferd.checkers.CodeValidation
-
- com.itextpdf.text.zugferd.checkers.extended.TransportMeansCode
-
public class TransportMeansCode extends CodeValidation
Series of codes that can be used for transport identification. These codes are used only in the context of the Extended profile.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AIR
static java.lang.String
FIXED_INSTALLATION
static java.lang.String
INLAND_WATER
static java.lang.String
MAIL
static java.lang.String
MARITIME
static java.lang.String
MULTIMODAL
static java.lang.String
NOT_APPLICABLE
static java.lang.String
RAIL
static java.lang.String
ROAD
-
Constructor Summary
Constructors Constructor Description TransportMeansCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(java.lang.String code)
Checks if a specific code is valid.-
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
-
-
-
-
Field Detail
-
MARITIME
public static final java.lang.String MARITIME
- See Also:
- Constant Field Values
-
RAIL
public static final java.lang.String RAIL
- See Also:
- Constant Field Values
-
ROAD
public static final java.lang.String ROAD
- See Also:
- Constant Field Values
-
AIR
public static final java.lang.String AIR
- See Also:
- Constant Field Values
-
MAIL
public static final java.lang.String MAIL
- See Also:
- Constant Field Values
-
MULTIMODAL
public static final java.lang.String MULTIMODAL
- See Also:
- Constant Field Values
-
FIXED_INSTALLATION
public static final java.lang.String FIXED_INSTALLATION
- See Also:
- Constant Field Values
-
INLAND_WATER
public static final java.lang.String INLAND_WATER
- See Also:
- Constant Field Values
-
NOT_APPLICABLE
public static final java.lang.String NOT_APPLICABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.String code)
Description copied from class:CodeValidation
Checks if a specific code is valid.- Specified by:
isValid
in classCodeValidation
- Parameters:
code
- the value you want to check- Returns:
- true if the code is valid
-
-