edu.nrao.sss.model.source
Class SourceCatalogValidator
java.lang.Object
edu.nrao.sss.validation.AbstractValidator<SourceCatalog>
edu.nrao.sss.model.source.SourceCatalogValidator
- All Implemented Interfaces:
- Validator
public class SourceCatalogValidator
- extends AbstractValidator<SourceCatalog>
A validator of source catalogs
.
Validations Performed for All Purposes
- No duplicate group names.
- Validation of each contained group.1
1The particular validations performed on the groups depend on
the type of validator used by this one to validate the contained groups.
This validator gets its group validator from either an external client,
the ValidationManager
,
or its own hard-wired default.
Version Info:
$Revision: 1358 $ |
$Date: 2008-06-18 14:49:00 -0600 (Wed, 18 Jun 2008) $ |
$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 |
SourceCatalogValidator
public SourceCatalogValidator()
- Creates a new instance.
makeValidationList
protected List<Validation<SourceCatalog>> makeValidationList(ValidationPurpose purpose)
- Specified by:
makeValidationList
in class AbstractValidator<SourceCatalog>
validate
protected void validate()
- Overrides:
validate
in class AbstractValidator<SourceCatalog>
setGroupValidator
public void setGroupValidator(Validator newValidator)
- Sets the validator to use for the groups of the target catalog.
It is acceptable to use a null parameter, in which case
this validator will contact its manager for a group validator
or create one itself.
- Parameters:
newValidator
- a validator to use on the groups of this
validator's target catalog.
getGroupValidator
public Validator getGroupValidator()
- Returns a validator for source groups.
Copyright © 2009. All Rights Reserved.