Class QuantityCode
java.lang.Object
com.itextpdf.text.zugferd.checkers.CodeValidation
com.itextpdf.text.zugferd.checkers.extended.QuantityCode
Series of codes that can be used for quantities.
These codes are used only in the context of the Extended profile.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
-
Field Details
-
BARREL
- See Also:
-
BOTTLECRATE
- See Also:
-
BAG
- See Also:
-
BOTTLE
- See Also:
-
BOX
- See Also:
-
CASE
- See Also:
-
CARTON
- See Also:
-
CAN
- See Also:
-
UNPACKAGED
- See Also:
-
PALLET
- See Also:
-
ROLL
- See Also:
-
SACK
- See Also:
-
-
Constructor Details
-
QuantityCode
public QuantityCode()
-
-
Method Details
-
isValid
The code list provided with the ZUGFeRD standard only lists twelve codes. There are more codes available (in UNCL 7065). We won't check the presence of a code in UNCL 7065, but we'll check if the code consists of two letters and if it's uppercase.- Specified by:
isValid
in classCodeValidation
- Parameters:
code
- the code to be tested- Returns:
- true if the code has the correct format
-