edu.nrao.sss.model.source
Class SourceCatalogValidator

java.lang.Object
  extended by edu.nrao.sss.validation.AbstractValidator<SourceCatalog>
      extended by 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

  1. No duplicate group names.
  2. 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

Field Summary
 
Fields inherited from class edu.nrao.sss.validation.AbstractValidator
failFast, failures, manager, purpose, target
 
Constructor Summary
SourceCatalogValidator()
          Creates a new instance.
 
Method Summary
 Validator getGroupValidator()
          Returns a validator for source groups.
protected  List<Validation<SourceCatalog>> makeValidationList(ValidationPurpose purpose)
           
 void setGroupValidator(Validator newValidator)
          Sets the validator to use for the groups of the target catalog.
protected  void validate()
           
 
Methods inherited from class edu.nrao.sss.validation.AbstractValidator
getName, getPurpose, getTarget, setManager, stopTestingAfterFirstFailure, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceCatalogValidator

public SourceCatalogValidator()
Creates a new instance.

Method Detail

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.