project35.soa.validation
Class StubbedListFieldValidationService
java.lang.Object
project35.soa.StubbedService
project35.soa.validation.StubbedListFieldValidationService
- All Implemented Interfaces:
- Serializable, ServiceClass, FieldValidationService, ListFieldValidationService
public class StubbedListFieldValidationService
- extends StubbedService
- implements ListFieldValidationService
Copyright (c) 2008 Kevin Garwood for Project35. This code is
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)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StubbedListFieldValidationService
public StubbedListFieldValidationService()
setFieldName
public void setFieldName(String fieldName)
- Description copied from interface:
FieldValidationService
- sets the field name
- Specified by:
setFieldName in interface FieldValidationService
- Parameters:
fieldName - the name of the field
setRequiredField
public void setRequiredField(boolean isRequiredField)
- Specified by:
setRequiredField in interface FieldValidationService
validate
public ArrayList validate(Project35FormContext project35FormContext,
ListFieldModel listFieldModel)
throws Exception
- Description copied from interface:
ListFieldValidationService
- validates the field value and returns any error messages
- Specified by:
validate in interface ListFieldValidationService
listFieldModel - the data object to be validated.
- Returns:
- an error message if the value is invalid or null
if no errors were found
- Throws:
Exception