project35.soa.validation
Class URLValidator
java.lang.Object
project35.soa.validation.AbstractEditFieldValidationService
project35.soa.validation.URLValidator
- All Implemented Interfaces:
- Serializable, ServiceClass, EditFieldValidationService, FieldValidationService
public class URLValidator
- extends AbstractEditFieldValidationService
Supposed to check whether field is a valid URL. However,
this became a bit complicated considering users might type in
relative or absolute paths, which wouldn't necessarily be in a
URL format. It could check if the URL exists but that might end
up annoying the user. This class will probably be removed in the next release.
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net),
code contributions from 2002 - September 30, 2007.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLValidator
public URLValidator()
validate
public ArrayList validate(Project35FormContext project35FormContext,
String value)
- Description copied from interface:
EditFieldValidationService
- validates the field value and returns any error messages
- Specified by:
validate in interface EditFieldValidationService- Specified by:
validate in class AbstractEditFieldValidationService
value - the value of the field
- Returns:
- a collection of Alert instances that represent errors,warnings,points of information or
requests for more information
if no errors were found