org.apache.bval.jsr303.extensions
Class AppendValidationToList

java.lang.Object
  extended by org.apache.bval.jsr303.BaseAppendValidation
      extended by org.apache.bval.jsr303.extensions.AppendValidationToList
All Implemented Interfaces:
AppendValidation

public class AppendValidationToList
extends BaseAppendValidation

Description: AppendValidation implementation that acts as an intermediate cache of validations for further processing.


Constructor Summary
AppendValidationToList()
          Create a new AppendValidationToList instance.
 
Method Summary
 List<ConstraintValidation<?>> getValidations()
          Get the list of cached validations.
<T extends Annotation>
void
performAppend(ConstraintValidation<T> validation)
          Performs the actual "appending" operation to the underlying data structure that holds the validations.
 
Methods inherited from class org.apache.bval.jsr303.BaseAppendValidation
append, postProcessValidation, preProcessValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppendValidationToList

public AppendValidationToList()
Create a new AppendValidationToList instance.

Method Detail

performAppend

public <T extends Annotation> void performAppend(ConstraintValidation<T> validation)
Performs the actual "appending" operation to the underlying data structure that holds the validations. Implementations shouldn't try to do more than that in this step.

Specified by:
performAppend in class BaseAppendValidation
Type Parameters:
T - The type of the validation.
Parameters:
validation - The validation to be appended.

getValidations

public List<ConstraintValidation<?>> getValidations()
Get the list of cached validations.

Returns:
List of ConstraintValidation


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.