public class Validator extends Object
| Constructor and Description |
|---|
Validator(String name,
Class type)
Constructs new Validator object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of an entry that is used in case of validation error.
|
void |
validate(Object obj)
Checks the validity of the given value for the entry.
|
public String getName()
public void validate(Object obj) throws InvalidConfigException
obj - the object to check validation forInvalidConfigExceptionCopyright © 2019. All rights reserved.