org.iscreen.impl
Interface InternalValidatorContext

All Superinterfaces:
ValidatorContext
All Known Implementing Classes:
DefaultValidatorContext

public interface InternalValidatorContext
extends ValidatorContext

This extension of the ValidatorContext provides the internal engine the ability to set and retrieve additional information on the context.

Author:
Shellman, Dan

Method Summary
 void addRawFailures(java.util.List failureList, ValidationService service)
          Adds "raw" failures (which is a List of ValidationFailure objects) to the existing set of failures.
 int getCount()
          Calculates the failure count.
 java.util.List getFailures()
          Retrieves a List of the current failures within this context.
 void setValidationTrace(ValidationTrace trace)
          Sets the trace so that the context can use it for reporting failures.
 void setValidator(ValidatorWrapper wrapper)
          Sets the ValidatorWrapper that the context needs to use.
 
Methods inherited from interface org.iscreen.ValidatorContext
getLocale, getValidationService, getValidatorName, reportFailure, reportFailure
 

Method Detail

addRawFailures

void addRawFailures(java.util.List failureList,
                    ValidationService service)
Adds "raw" failures (which is a List of ValidationFailure objects) to the existing set of failures.

Parameters:
failureList - The List of ValidationFailures to add to this context.
service - The validation service representing the failures.

getCount

int getCount()
Calculates the failure count.

Returns:
Returns the total failure count.

getFailures

java.util.List getFailures()
Retrieves a List of the current failures within this context. This List contains ValidationFailure objects.

Returns:
Returns a List of current failures.

setValidator

void setValidator(ValidatorWrapper wrapper)
Sets the ValidatorWrapper that the context needs to use.

Parameters:
wrapper - The ValidatorWrapper to use.

setValidationTrace

void setValidationTrace(ValidationTrace trace)
Sets the trace so that the context can use it for reporting failures.

Parameters:
trace - The ValidationTrace instace.