project35.soa.validation
Class StubbedListFieldValidationService

java.lang.Object
  extended by project35.soa.StubbedService
      extended by project35.soa.validation.StubbedListFieldValidationService
All Implemented Interfaces:
java.io.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

Field Summary
 
Fields inherited from class project35.soa.StubbedService
collator, project35UIFactory
 
Constructor Summary
StubbedListFieldValidationService()
           
 
Method Summary
 void setFieldName(java.lang.String fieldName)
          sets the field name
 void setRequiredField(boolean isRequiredField)
           
 java.util.ArrayList validate(Project35FormContext project35FormContext, ListFieldModel listFieldModel)
          validates the field value and returns any error messages
 
Methods inherited from class project35.soa.StubbedService
getInitialisationParameters, getStubbedServiceDescription, getStubbedServiceName, initialiseService, setProject35UIFactory, showStubbedServiceDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface project35.soa.ServiceClass
getInitialisationParameters, initialiseService
 

Constructor Detail

StubbedListFieldValidationService

public StubbedListFieldValidationService()
Method Detail

setFieldName

public void setFieldName(java.lang.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 java.util.ArrayList validate(Project35FormContext project35FormContext,
                                    ListFieldModel listFieldModel)
                             throws java.lang.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:
java.lang.Exception