public class PortValidator extends Validator
| Constructor and Description |
|---|
PortValidator(String name)
Creates a new instance of PortValidator
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Object obj)
Validates the given Port.
|
public PortValidator(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 obj) throws InvalidConfigException
validate in class Validatorobj - Must be the absolute path of the File that will be validated.InvalidConfigExceptionCopyright © 2019. All rights reserved.