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 intBASICstatic intCOMFORTstatic java.lang.StringCOMMERCIAL_INVOICEstatic java.lang.StringDEBIT_NOTE_FINANCIAL_ADJUSTMENTstatic intEXTENDEDprotected intprofilestatic java.lang.StringSELF_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 booleanisValid(java.lang.String code)Checks if a specific code is valid.static booleanisValidBasic(java.lang.String code)static booleanisValidComfort(java.lang.String code)static booleanisValidExtended(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: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
-
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)
-
-