public class ExperimentValidator extends Object implements org.springframework.validation.Validator
ExperimentValidator class.
Constructor and Description |
---|
ExperimentValidator()
Constructor for ExperimentValidator.
|
Modifier and Type | Method and Description |
---|---|
ExperimentService |
getExperimentService()
Getter for the field
experimentService . |
void |
setExperimentService(ExperimentService experimentService)
Setter for the field
experimentService . |
boolean |
supports(Class clazz) |
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Validates the specified Object.
|
void |
validateExpectedNumberReads(Experiment experiment,
org.springframework.validation.Errors errors)
validateExpectedNumberReads.
|
void |
validateExpectedNumberRuns(Experiment experiment,
org.springframework.validation.Errors errors)
validateExpectedNumberRuns.
|
void |
validateTitle(Experiment experiment,
org.springframework.validation.Errors errors)
Determines if the experiment's email address and confirm email address match.
|
public ExperimentValidator()
Constructor for ExperimentValidator.
public boolean supports(Class clazz)
supports
in interface org.springframework.validation.Validator
clazz
- public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
obj
- errors
- public void validateExpectedNumberRuns(Experiment experiment, org.springframework.validation.Errors errors)
validateExpectedNumberRuns.
experiment
- a Experiment
object.errors
- a Errors
object.public void validateExpectedNumberReads(Experiment experiment, org.springframework.validation.Errors errors)
validateExpectedNumberReads.
experiment
- a Experiment
object.errors
- a Errors
object.public void validateTitle(Experiment experiment, org.springframework.validation.Errors errors)
errors
- Errors object for validation errorsexperiment
- a Experiment
object.public ExperimentService getExperimentService()
Getter for the field experimentService
.
ExperimentService
object.public void setExperimentService(ExperimentService experimentService)
Setter for the field experimentService
.
experimentService
- a ExperimentService
object.Copyright © 2015 SeqWare. All rights reserved.