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