Package com.iplanet.ums.validation
Class DomainValidator
- java.lang.Object
-
- com.iplanet.ums.validation.DomainValidator
-
- All Implemented Interfaces:
IValidator,Serializable
public class DomainValidator extends Object implements IValidator
Validates domain- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.iplanet.ums.validation.IValidator
BAD_RULE, BAD_VALUE, PKG, PREFIX
-
-
Constructor Summary
Constructors Constructor Description DomainValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(String domain)Determines if the domain is validbooleanvalidate(String value, String rule)Determines if the value is a valid domain string
-
-
-
Method Detail
-
validate
public boolean validate(String value, String rule)
Determines if the value is a valid domain string- Specified by:
validatein interfaceIValidator- Parameters:
value- string value to validaterule- not used by this method- Returns:
- true if the value represents a valid domain string
-
validate
public boolean validate(String domain)
Determines if the domain is valid- Parameters:
domain- domain string to test- Returns:
- true if the domain string is valid.
-
-