|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iscreen.impl.BaseValidationService
org.iscreen.impl.DefaultValidationService
public class DefaultValidationService
This is a "default" implementation of the ValidationService interface that can be configured to act as a full implementation of the service.
| Field Summary | |
|---|---|
protected boolean |
declared
|
protected java.util.List |
validatorWrappers
|
| Fields inherited from class org.iscreen.impl.BaseValidationService |
|---|
defaultLocale, id |
| Constructor Summary | |
|---|---|
DefaultValidationService(java.lang.String uniqueId,
java.util.Locale locale)
Constructor requiring a unique id and default locale |
|
| Method Summary | |
|---|---|
void |
addValidatorWrapper(ValidatorWrapper wrapper)
Adds a validator wrapper, which is used to call the contained validator. |
java.util.List |
getAllWrappers()
Retrieves all of the validator wrappers this service is configured with. |
protected java.util.Iterator |
getWrapperIterator()
Retrieves an Iterator that will iterate through the ValidatorWrapper instances contained by this service. |
boolean |
isDeclared()
Flag to determine if the validation set has been declared or merely referenced |
void |
signalDeclared()
Sets the flag to signal that the validation set has been declared, rather than merely referenced |
| Methods inherited from class org.iscreen.impl.BaseValidationService |
|---|
constructContext, constructContextBean, getDocumentation, getServiceName, validate, validate, validateObject, validateObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List validatorWrappers
protected boolean declared
| Constructor Detail |
|---|
public DefaultValidationService(java.lang.String uniqueId,
java.util.Locale locale)
uniqueId - The unique id of the validation service.locale - The default locale| Method Detail |
|---|
public void addValidatorWrapper(ValidatorWrapper wrapper)
wrapper - The wrapper to add to this validation service.public java.util.List getAllWrappers()
protected java.util.Iterator getWrapperIterator()
BaseValidationService
getWrapperIterator in class BaseValidationServicepublic boolean isDeclared()
public void signalDeclared()
ConfigurationException - If a re-declaration occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||