public class StringValidator extends Validator
Constructor and Description |
---|
StringValidator(String name)
Constructs new StringValidator object.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(Object str)
Validates the given value for the given entry.This method first invokes its superclass's validate method
and then checks additional string validations such as 0 length.
|
public StringValidator(String name)
name
- Name of an entry that is used in case of validation errors. If the name is null "" is used instead.public void validate(Object str) throws InvalidConfigException
validate
in class Validator
str
- the value to validateInvalidConfigException
Copyright © 2021. All rights reserved.