project35.soa.validation
Class StubbedEditFieldValidationService

java.lang.Object
  extended by project35.soa.StubbedService
      extended by project35.soa.validation.StubbedEditFieldValidationService
All Implemented Interfaces:
java.io.Serializable, ServiceClass, EditFieldValidationService, FieldValidationService

public class StubbedEditFieldValidationService
extends StubbedService
implements EditFieldValidationService


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
StubbedEditFieldValidationService()
           
 
Method Summary
 void setFieldName(java.lang.String fieldName)
          sets the field name
 void setRequiredField(boolean isRequiredField)
           
 java.util.ArrayList validate(Project35FormContext project35FormContext, java.lang.String value)
          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

StubbedEditFieldValidationService

public StubbedEditFieldValidationService()
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,
                                    java.lang.String value)
                             throws java.lang.Exception
Description copied from interface: EditFieldValidationService
validates the field value and returns any error messages

Specified by:
validate in interface EditFieldValidationService
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
Throws:
java.lang.Exception