public class DocumentTypeCode extends CodeValidation
| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC
The Constant BASIC.
|
static int |
COMFORT
The Constant COMFORT.
|
static String |
COMMERCIAL_INVOICE
The Constant COMMERCIAL_INVOICE.
|
static String |
DEBIT_NOTE_FINANCIAL_ADJUSTMENT
The Constant DEBIT_NOTE_FINANCIAL_ADJUSTMENT.
|
static int |
EXTENDED
The Constant EXTENDED.
|
protected int |
profile
The profile.
|
static String |
SELF_BILLED_INVOICE
The Constant SELF_BILLED_INVOICE.
|
| Constructor and Description |
|---|
DocumentTypeCode(int profile)
Creates a new
DocumentTypeCode. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(String code)
Checks if a specific code is valid.
|
static boolean |
isValidBasic(String code)
Checks if a code is valid for the Basic profile.
|
static boolean |
isValidComfort(String code)
Checks if a code is valid for the Comfort profile.
|
static boolean |
isValidExtended(String code)
Checks if a code is valid for the Extended profile.
|
check, isLowercase, isNumeric, isUppercasepublic static final String COMMERCIAL_INVOICE
public static final String DEBIT_NOTE_FINANCIAL_ADJUSTMENT
public static final String SELF_BILLED_INVOICE
public static final int BASIC
public static final int COMFORT
public static final int EXTENDED
protected int profile
public DocumentTypeCode(int profile)
DocumentTypeCode.profile - the profilepublic boolean isValid(String code)
CodeValidationisValid in class CodeValidationcode - the value you want to checkpublic static boolean isValidBasic(String code)
code - the codepublic static boolean isValidComfort(String code)
code - the codepublic static boolean isValidExtended(String code)
code - the codeCopyright © 1998–2018 iText Group NV. All rights reserved.