|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.soa.validation.AbstractEditFieldValidationService
public abstract class AbstractEditFieldValidationService
Has routines for validating required fields.
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.
| Field Summary | |
|---|---|
protected Collator |
collator
|
| Constructor Summary | |
|---|---|
AbstractEditFieldValidationService()
|
|
| Method Summary | |
|---|---|
protected String |
getFieldName()
returns the name of the field |
Parameter[] |
getInitialisationParameters()
|
void |
initialiseService(URL resourceDirectory,
Parameter[] initialisationParameters)
|
boolean |
isEmpty(String value)
checks to see if value is an empty string |
protected boolean |
isFieldRequired()
returns whether the data field is required return true if field is required; otherwise false |
void |
setFieldName(String fieldName)
sets the field name |
void |
setRequiredField(boolean isFieldRequired)
sets whether the field is required or optional. |
abstract ArrayList |
validate(Project35FormContext project35FormContext,
String value)
validates the field value and returns any error messages |
protected String |
validateRequiredField(String value)
checks to make sure that a required field has a non-empty value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Collator collator
| Constructor Detail |
|---|
public AbstractEditFieldValidationService()
| Method Detail |
|---|
protected String getFieldName()
public boolean isEmpty(String value)
value - the value
protected boolean isFieldRequired()
public void setFieldName(String fieldName)
setFieldName in interface FieldValidationServicefieldName - the field namepublic void setRequiredField(boolean isFieldRequired)
setRequiredField in interface FieldValidationServiceisFieldRequired - true if the field is required; false if field is optional.protected String validateRequiredField(String value)
value - the value of the field
public abstract ArrayList validate(Project35FormContext project35FormContext,
String value)
EditFieldValidationService
validate in interface EditFieldValidationServicevalue - the value of the field
public Parameter[] getInitialisationParameters()
getInitialisationParameters in interface ServiceClass
public void initialiseService(URL resourceDirectory,
Parameter[] initialisationParameters)
throws Exception
initialiseService in interface ServiceClassException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||