Class DocumentTypeCode
- java.lang.Object
-
- com.itextpdf.text.zugferd.checkers.CodeValidation
-
- com.itextpdf.text.zugferd.checkers.basic.DocumentTypeCode
-
public class DocumentTypeCode extends CodeValidation
Class that can be used to check if a document type code is valid for use in the context of a specific format.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BASIC
static int
COMFORT
static java.lang.String
COMMERCIAL_INVOICE
static java.lang.String
DEBIT_NOTE_FINANCIAL_ADJUSTMENT
static int
EXTENDED
protected int
profile
static java.lang.String
SELF_BILLED_INVOICE
-
Constructor Summary
Constructors Constructor Description DocumentTypeCode(int profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(java.lang.String code)
Checks if a specific code is valid.static boolean
isValidBasic(java.lang.String code)
static boolean
isValidComfort(java.lang.String code)
static boolean
isValidExtended(java.lang.String code)
-
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
-
-
-
-
Field Detail
-
COMMERCIAL_INVOICE
public static final java.lang.String COMMERCIAL_INVOICE
- See Also:
- Constant Field Values
-
DEBIT_NOTE_FINANCIAL_ADJUSTMENT
public static final java.lang.String DEBIT_NOTE_FINANCIAL_ADJUSTMENT
- See Also:
- Constant Field Values
-
SELF_BILLED_INVOICE
public static final java.lang.String SELF_BILLED_INVOICE
- See Also:
- Constant Field Values
-
BASIC
public static final int BASIC
- See Also:
- Constant Field Values
-
COMFORT
public static final int COMFORT
- See Also:
- Constant Field Values
-
EXTENDED
public static final int EXTENDED
- See Also:
- Constant Field Values
-
profile
protected int profile
-
-
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
-
isValidBasic
public static boolean isValidBasic(java.lang.String code)
-
isValidComfort
public static boolean isValidComfort(java.lang.String code)
-
isValidExtended
public static boolean isValidExtended(java.lang.String code)
-
-