com.itextpdf.text.zugferd.checkers.comfort
Class FreeTextSubjectCode

java.lang.Object
  extended by com.itextpdf.text.zugferd.checkers.CodeValidation
      extended by 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
static String ADDITIONAL_SALES_CONDITIONS
           
static String CERTIFICATION_STATEMENTS
           
static int HEADER
           
protected  int level
           
static int LINE
           
static String PAYMENT_INFORMATION
           
static String PRICE_CALCULATION_FORMULA
           
static String PRICE_CONDITIONS
           
static String PRODUCT_INFORMATION
           
static String REGULATORY_INFORMATION
           
 
Constructor Summary
FreeTextSubjectCode(int level)
           
 
Method Summary
static boolean isHeaderLevel(String code)
           
static boolean isLineLevel(String code)
           
 boolean isValid(String code)
          Checks if a specific code is valid.
 
Methods inherited from class com.itextpdf.text.zugferd.checkers.CodeValidation
check, isLowercase, isNumeric, isUppercase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

FreeTextSubjectCode

public FreeTextSubjectCode(int level)
Method Detail

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

isHeaderLevel

public static boolean isHeaderLevel(String code)

isLineLevel

public static boolean isLineLevel(String code)


Copyright © 2015. All Rights Reserved.