public class SampleValidator extends Object implements org.springframework.validation.Validator
SampleValidator class.
| Constructor and Description |
|---|
SampleValidator()
Constructor for SampleValidator.
|
| Modifier and Type | Method and Description |
|---|---|
SampleService |
getSampleService()
Getter for the field
sampleService. |
void |
setSampleService(SampleService sampleService)
Setter for the field
sampleService. |
boolean |
supports(Class clazz) |
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Validates the specified Object.
|
void |
validateExpectedNumberReads(Sample sample,
org.springframework.validation.Errors errors)
validateExpectedNumberReads.
|
void |
validateExpectedNumberRuns(Sample sample,
org.springframework.validation.Errors errors)
validateExpectedNumberRuns.
|
void |
validateTitle(String title,
org.springframework.validation.Errors errors)
Determines if the sample's email address and confirm email address match.
|
public boolean supports(Class clazz)
supports in interface org.springframework.validation.Validatorclazz - public void validate(Object obj, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorobj - errors - public void validateExpectedNumberRuns(Sample sample, org.springframework.validation.Errors errors)
validateExpectedNumberRuns.
sample - a Sample object.errors - a Errors object.public void validateExpectedNumberReads(Sample sample, org.springframework.validation.Errors errors)
validateExpectedNumberReads.
sample - a Sample object.errors - a Errors object.public void validateTitle(String title, org.springframework.validation.Errors errors)
errors - Errors object for validation errorstitle - a String object.public SampleService getSampleService()
Getter for the field sampleService.
SampleService object.public void setSampleService(SampleService sampleService)
Setter for the field sampleService.
sampleService - a SampleService object.Copyright © 2015 SeqWare. All rights reserved.