edu.nrao.sss.model.source
Class SourceValidator
java.lang.Object
edu.nrao.sss.validation.AbstractValidator<Source>
edu.nrao.sss.model.source.SourceValidator
- All Implemented Interfaces:
- Validator
public class SourceValidator
- extends AbstractValidator<Source>
A validator of sources
.
Validations Performed for All Purposes
- Validation of contained subsources.1
1The particular validations performed depend on the
validator used by this one to operate on those contained subsources.
Version Info:
$Revision: 332 $ |
$Date: 2007-02-08 16:49:14 -0700 (Thu, 08 Feb 2007) $ |
$Author: dharland $ |
- Since:
- 2007-02-05
- Author:
- David M. Harland
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceValidator
public SourceValidator()
- Creates a new instance.
makeValidationList
protected List<Validation<Source>> makeValidationList(ValidationPurpose purpose)
- Specified by:
makeValidationList
in class AbstractValidator<Source>
validate
protected void validate()
- Overrides:
validate
in class AbstractValidator<Source>
setSubsourceValidator
public void setSubsourceValidator(Validator newValidator)
- Sets the validator to use for the subsources of the target source.
It is acceptable to use a null parameter, in which case
this validator will contact its manager for a subsource validator
or create one itself.
- Parameters:
newValidator
- a validator to use on the subsources of this
validator's target source.
getSubsourceValidator
public Validator getSubsourceValidator()
- Returns a validator for sources.
Copyright © 2009. All Rights Reserved.