edu.nrao.sss.model.source
Class SourceLookupTableValidator

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

  1. Table has at least one source.
  2. Table's earliest date is not in the future.

Extra Validations Performed for Purpose CERTIFY_READY_TO_USE
  1. 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

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

SourceLookupTableValidator

public SourceLookupTableValidator()
Creates a new instance.

Method Detail

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.