edu.nrao.sss.model.source
Class SourceGroupValidator

java.lang.Object
  extended by edu.nrao.sss.validation.AbstractValidator<SourceGroup>
      extended by edu.nrao.sss.model.source.SourceGroupValidator
All Implemented Interfaces:
Validator

public class SourceGroupValidator
extends AbstractValidator<SourceGroup>

A validator of source groups.

Validations Performed for All Purposes

  1. No duplicate source names.

Extra Validations Performed for Purpose CERTIFY_READY_TO_USE

  1. Validation of contained source lookup tables.1
  2. Validation of contained sources.1
1The particular validations performed depend on the validators used by this one to operate on those contained components.

Version Info:

$Revision: 1358 $
$Date: 2008-06-18 14:49:00 -0600 (Wed, 18 Jun 2008) $
$Author: dharland $

Since:
2007-02-06
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.validation.AbstractValidator
failFast, failures, manager, purpose, target
 
Constructor Summary
SourceGroupValidator()
          Creates a new instance.
 
Method Summary
 Validator getSourceValidator()
          Returns a validator for sources.
 Validator getTableValidator()
          Returns a validator for source lookup tables.
protected  List<Validation<SourceGroup>> makeValidationList(ValidationPurpose purpose)
           
 void setSourceValidator(Validator newValidator)
          Sets the validator to use for the sources of the target group.
 void setTableValidator(Validator newValidator)
          Sets the validator to use for the source tables of the target group.
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

SourceGroupValidator

public SourceGroupValidator()
Creates a new instance.

Method Detail

makeValidationList

protected List<Validation<SourceGroup>> makeValidationList(ValidationPurpose purpose)
Specified by:
makeValidationList in class AbstractValidator<SourceGroup>

validate

protected void validate()
Overrides:
validate in class AbstractValidator<SourceGroup>

setSourceValidator

public void setSourceValidator(Validator newValidator)
Sets the validator to use for the sources of the target group. 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 group.

getSourceValidator

public Validator getSourceValidator()
Returns a validator for sources.


setTableValidator

public void setTableValidator(Validator newValidator)
Sets the validator to use for the source tables of the target group. It is acceptable to use a null parameter, in which case this validator will contact its manager for a source table validator or create one itself.

Parameters:
newValidator - a validator to use on the source lookup tables of this validator's target group.

getTableValidator

public Validator getTableValidator()
Returns a validator for source lookup tables.



Copyright © 2009. All Rights Reserved.