|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.iscreen.impl.ValidationServiceGroup
public class ValidationServiceGroup
Implementation of the ValidationService in which the service may
contain zero or more validation services. Effectively, this
implementation treats a set of validation services as a group and
executes all of them when validate() is called (or related methods).
Note that if this service contains zero actual validation services,
nothing is validated.
Constructor Summary | |
---|---|
ValidationServiceGroup(ValidationFactory factory,
java.util.Set serviceSet)
Constructs a group of validation services. |
Method Summary | |
---|---|
DocumentationIterator |
getDocumentation()
Retrieves an iterator of String values representing the documentation configured for this validation service (the underlying validation set). |
java.lang.String |
getServiceName()
Returns null. |
void |
validate(java.lang.Object obj)
Called to validate an object (typically a JavaBean). |
void |
validate(java.lang.Object obj,
java.util.Locale locale)
Called to validate an object (typically a JavaBean). |
void |
validateObject(java.lang.Object obj)
Identical to validate() except that it throws the unchecked exception ObjectValidationException instead of a checked exception. |
void |
validateObject(java.lang.Object obj,
java.util.Locale locale)
Identical to validate() except that it throws the unchecked exception ObjectValidationException instead of a checked exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationServiceGroup(ValidationFactory factory, java.util.Set serviceSet)
factory
- The factory to retrieve the validation services from.serviceSet
- The set of validation service id's.Method Detail |
---|
public void validate(java.lang.Object obj) throws ValidationException
ValidationService
validate
in interface ValidationService
obj
- The object (usually a JavaBean) to validate.
ValidationException
- The exception containing any
validation failures.public void validate(java.lang.Object obj, java.util.Locale locale) throws ValidationException
ValidationService
validate
in interface ValidationService
obj
- The object (usually a JavaBean) to validate.locale
- The locale used for failure message generation.
ValidationException
- The exception containing any
validation failures.public void validateObject(java.lang.Object obj)
ValidationService
validateObject
in interface ValidationService
obj
- The object (usually a JavaBean) to validate.public void validateObject(java.lang.Object obj, java.util.Locale locale)
ValidationService
validateObject
in interface ValidationService
obj
- The object (usually a JavaBean) to validate.locale
- The locale used for failure message generation.public java.lang.String getServiceName()
getServiceName
in interface ValidationService
public DocumentationIterator getDocumentation()
getDocumentation
in interface ValidationService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |