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 StringgetName()Returns the name of the entry.voidvalidate(Object obj)Checks the validity of the given value for the entry.
-
-
-
Method Detail
-
getName
public String getName()
Returns 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-- Throws:
InvalidConfigException
-
-