Class Validator
java.lang.Object
com.sun.enterprise.admin.servermgmt.Validator
- Direct Known Subclasses:
DomainConfigValidator,FileValidator,PortValidator,StringValidator
Base class for all domain config validators. Validates the non-null ness of a domain config entry and its type.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Validator
Constructs new Validator object.- Parameters:
name- Name of an entry that is used in case of validation errors. If the name is null "" is used instead.type-
-
-
Method Details
-
getName
Returns the name of the entry. -
validate
Checks the validity of the given value for the entry. This method does basic checks such as null ness & type.- Parameters:
obj-- Throws:
InvalidConfigException
-