|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.zugferd.checkers.CodeValidation
public abstract class CodeValidation
Abstract superclass of a series of code validation classes.
| Constructor Summary | |
|---|---|
CodeValidation()
|
|
| Method Summary | |
|---|---|
String |
check(String code)
Checks if a specific code is valid. |
boolean |
isLowercase(String code,
int chars)
Checks the length of a code and if a code consists of lowercase letters from a to z. |
boolean |
isNumeric(String code,
int digits)
Checks the length of a code and if a code consists of numbers only. |
boolean |
isUppercase(String code,
int chars)
Checks the length of a code and if a code consists of uppercase letters from A to Z. |
abstract boolean |
isValid(String code)
Checks if a specific code is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeValidation()
| Method Detail |
|---|
public abstract boolean isValid(String code)
code - the value you want to check
public String check(String code)
throws InvalidCodeException
code - the value you want to check
InvalidCodeException - reveals the reason why the code isn't valid
public boolean isNumeric(String code,
int digits)
code - the code that needs to be checkeddigits - the expected length of the code
public boolean isUppercase(String code,
int chars)
code - the code that needs to be checkedchars - the expected length of the code
public boolean isLowercase(String code,
int chars)
code - the code that needs to be checkedchars - the expected length of the code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||