edu.nrao.sss.model.source
Class SourceValidator

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

public class SourceValidator
extends AbstractValidator<Source>

A validator of sources.

Validations Performed for All Purposes

  1. Validation of contained subsources.1
1The particular validations performed depend on the validator used by this one to operate on those contained subsources.

Version Info:

$Revision: 332 $
$Date: 2007-02-08 16:49:14 -0700 (Thu, 08 Feb 2007) $
$Author: dharland $

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

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

SourceValidator

public SourceValidator()
Creates a new instance.

Method Detail

makeValidationList

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

validate

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

setSubsourceValidator

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

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

getSubsourceValidator

public Validator getSubsourceValidator()
Returns a validator for sources.



Copyright © 2009. All Rights Reserved.