Package com.iplanet.ums.validation
Class URLValidator
- java.lang.Object
-
- com.iplanet.ums.validation.URLValidator
-
- All Implemented Interfaces:
IValidator,Serializable
public class URLValidator extends Object implements IValidator
- 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 URLValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(String value)Determines whether the specified string is a valid URLbooleanvalidate(String value, String rule)Determines whether the specified string is a valid URL
-
-
-
Method Detail
-
validate
public boolean validate(String value, String rule)
Determines whether the specified string is a valid URL- Specified by:
validatein interfaceIValidator- Parameters:
value- string value to validaterule- not used by this method- Returns:
- true if value is an URL
-
validate
public boolean validate(String value)
Determines whether the specified string is a valid URL- Parameters:
value- string to test- Returns:
- true if value is an URL
-
-