Class Validator
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.Validator
-
- Direct Known Subclasses:
DomainConfigValidator
,FileValidator
,PortValidator
,StringValidator
public class Validator extends Object
Base class for all domain config validators. Validates the non-null ness of a domain config entry and its type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of an entry that is used in case of validation error.- Returns:
- name the name of the entry.
-
validate
public void validate(Object obj) throws InvalidConfigException
Checks the validity of the given value for the entry. This method does basic checks such as null ness & type.- Parameters:
obj
- the object to check validation for- Throws:
InvalidConfigException
-
-