Class MeasurementUnitCode
- java.lang.Object
-
- com.itextpdf.text.zugferd.checkers.CodeValidation
-
- com.itextpdf.text.zugferd.checkers.basic.MeasurementUnitCode
-
public class MeasurementUnitCode extends CodeValidation
Class that can be used to check if a measurement unit code is valid.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DAY
static String
HA
static String
HR
static String
ITEM
static String
KG
static String
KM
static String
KWH
static String
L
static String
M
static String
M2
static String
M3
static String
MIN
static String
MM
static String
MM2
static String
NO
static String
PCT
static String
PR
static String
SET
static String
SUM
static String
T
static String
WK
-
Constructor Summary
Constructors Constructor Description MeasurementUnitCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(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
-
ITEM
public static final String ITEM
- See Also:
- Constant Field Values
-
DAY
public static final String DAY
- See Also:
- Constant Field Values
-
HA
public static final String HA
- See Also:
- Constant Field Values
-
HR
public static final String HR
- See Also:
- Constant Field Values
-
KG
public static final String KG
- See Also:
- Constant Field Values
-
KM
public static final String KM
- See Also:
- Constant Field Values
-
KWH
public static final String KWH
- See Also:
- Constant Field Values
-
SUM
public static final String SUM
- See Also:
- Constant Field Values
-
L
public static final String L
- See Also:
- Constant Field Values
-
MIN
public static final String MIN
- See Also:
- Constant Field Values
-
MM2
public static final String MM2
- See Also:
- Constant Field Values
-
MM
public static final String MM
- See Also:
- Constant Field Values
-
M2
public static final String M2
- See Also:
- Constant Field Values
-
M3
public static final String M3
- See Also:
- Constant Field Values
-
M
public static final String M
- See Also:
- Constant Field Values
-
NO
public static final String NO
- See Also:
- Constant Field Values
-
PR
public static final String PR
- See Also:
- Constant Field Values
-
PCT
public static final String PCT
- See Also:
- Constant Field Values
-
SET
public static final String SET
- See Also:
- Constant Field Values
-
T
public static final String T
- See Also:
- Constant Field Values
-
WK
public static final String WK
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid(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
-
-