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.StringADDITIONAL_SALES_CONDITIONSstatic java.lang.StringCERTIFICATION_STATEMENTSstatic intHEADERprotected intlevelstatic intLINEstatic java.lang.StringPAYMENT_INFORMATIONstatic java.lang.StringPRICE_CALCULATION_FORMULAstatic java.lang.StringPRICE_CONDITIONSstatic java.lang.StringPRODUCT_INFORMATIONstatic java.lang.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(java.lang.String code)static booleanisLineLevel(java.lang.String code)booleanisValid(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: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(java.lang.String code)
-
isLineLevel
public static boolean isLineLevel(java.lang.String code)
-
-