abstract class CodeValidator extends BaseValidator
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
deniedChars
Characters denied in code.
|
Constructor and Description |
---|
CodeValidator() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
getInvalidCharacters(java.lang.String code)
Checks the specified code whether it contains some denied character.
|
static CodeValidator |
checkCode(java.lang.String code)
Checks the specified code for invalid characters.
|
getMessage, isValid, setMessage, validate
code
- Checked code.true
if the checked code is valid; the value
false
if the code contains some forbidden characters.code
- The checked code.