Class FreeTextSubjectCode
- java.lang.Object
-
- com.itextpdf.text.zugferd.checkers.CodeValidation
-
- com.itextpdf.text.zugferd.checkers.comfort.FreeTextSubjectCode
-
public class FreeTextSubjectCode extends CodeValidation
Class that can be used to check if a free text subject code is valid.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADDITIONAL_SALES_CONDITIONS
static java.lang.String
CERTIFICATION_STATEMENTS
static int
HEADER
protected int
level
static int
LINE
static java.lang.String
PAYMENT_INFORMATION
static java.lang.String
PRICE_CALCULATION_FORMULA
static java.lang.String
PRICE_CONDITIONS
static java.lang.String
PRODUCT_INFORMATION
static java.lang.String
REGULATORY_INFORMATION
-
Constructor Summary
Constructors Constructor Description FreeTextSubjectCode(int level)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isHeaderLevel(java.lang.String code)
static boolean
isLineLevel(java.lang.String code)
boolean
isValid(java.lang.String code)
Checks if a specific code is valid.-
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
-
-
-
-
Field Detail
-
REGULATORY_INFORMATION
public static final java.lang.String REGULATORY_INFORMATION
- See Also:
- Constant Field Values
-
PRICE_CONDITIONS
public static final java.lang.String PRICE_CONDITIONS
- See Also:
- Constant Field Values
-
ADDITIONAL_SALES_CONDITIONS
public static final java.lang.String ADDITIONAL_SALES_CONDITIONS
- See Also:
- Constant Field Values
-
PAYMENT_INFORMATION
public static final java.lang.String PAYMENT_INFORMATION
- See Also:
- Constant Field Values
-
PRICE_CALCULATION_FORMULA
public static final java.lang.String PRICE_CALCULATION_FORMULA
- See Also:
- Constant Field Values
-
PRODUCT_INFORMATION
public static final java.lang.String PRODUCT_INFORMATION
- See Also:
- Constant Field Values
-
CERTIFICATION_STATEMENTS
public static final java.lang.String CERTIFICATION_STATEMENTS
- See Also:
- Constant Field Values
-
HEADER
public static final int HEADER
- See Also:
- Constant Field Values
-
LINE
public static final int LINE
- See Also:
- Constant Field Values
-
level
protected int level
-
-
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
-
isHeaderLevel
public static boolean isHeaderLevel(java.lang.String code)
-
isLineLevel
public static boolean isLineLevel(java.lang.String code)
-
-