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 StringADDITIONAL_SALES_CONDITIONSstatic StringCERTIFICATION_STATEMENTSstatic intHEADERprotected intlevelstatic intLINEstatic StringPAYMENT_INFORMATIONstatic StringPRICE_CALCULATION_FORMULAstatic StringPRICE_CONDITIONSstatic StringPRODUCT_INFORMATIONstatic StringREGULATORY_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 booleanisHeaderLevel(String code)static booleanisLineLevel(String code)booleanisValid(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 String REGULATORY_INFORMATION
- See Also:
- Constant Field Values
-
PRICE_CONDITIONS
public static final String PRICE_CONDITIONS
- See Also:
- Constant Field Values
-
ADDITIONAL_SALES_CONDITIONS
public static final String ADDITIONAL_SALES_CONDITIONS
- See Also:
- Constant Field Values
-
PAYMENT_INFORMATION
public static final String PAYMENT_INFORMATION
- See Also:
- Constant Field Values
-
PRICE_CALCULATION_FORMULA
public static final String PRICE_CALCULATION_FORMULA
- See Also:
- Constant Field Values
-
PRODUCT_INFORMATION
public static final String PRODUCT_INFORMATION
- See Also:
- Constant Field Values
-
CERTIFICATION_STATEMENTS
public static final 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(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
-
isHeaderLevel
public static boolean isHeaderLevel(String code)
-
isLineLevel
public static boolean isLineLevel(String code)
-
-