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 StringDAYstatic StringHAstatic StringHRstatic StringITEMstatic StringKGstatic StringKMstatic StringKWHstatic StringLstatic StringMstatic StringM2static StringM3static StringMINstatic StringMMstatic StringMM2static StringNOstatic StringPCTstatic StringPRstatic StringSETstatic StringSUMstatic StringTstatic StringWK
-
Constructor Summary
Constructors Constructor Description MeasurementUnitCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(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:CodeValidationChecks if a specific code is valid.- Specified by:
isValidin classCodeValidation- Parameters:
code- the value you want to check- Returns:
- true if the code is valid
-
-