com.itextpdf.text.zugferd.checkers.basic
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMERCIAL_INVOICE
public static final String COMMERCIAL_INVOICE
- See Also:
- Constant Field Values
DEBIT_NOTE_FINANCIAL_ADJUSTMENT
public static final String DEBIT_NOTE_FINANCIAL_ADJUSTMENT
- See Also:
- Constant Field Values
SELF_BILLED_INVOICE
public static final 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
DocumentTypeCode
public DocumentTypeCode(int profile)
isValid
public boolean isValid(String code)
- Description copied from class:
CodeValidation
- Checks if a specific code is valid.
- Specified by:
isValid in class CodeValidation
- Parameters:
code - the value you want to check
- Returns:
- true if the code is valid
isValidBasic
public static boolean isValidBasic(String code)
isValidComfort
public static boolean isValidComfort(String code)
isValidExtended
public static boolean isValidExtended(String code)
Copyright © 2015. All Rights Reserved.