edu.nrao.sss.model.resource
Class ResourceCatalogValidator

java.lang.Object
  extended by edu.nrao.sss.validation.AbstractValidator<ResourceCatalog>
      extended by edu.nrao.sss.model.resource.ResourceCatalogValidator
All Implemented Interfaces:
Validator

public class ResourceCatalogValidator
extends AbstractValidator<ResourceCatalog>

A validator of resource 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:
2008-05-01
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.validation.AbstractValidator
failFast, failures, manager, purpose, target
 
Constructor Summary
ResourceCatalogValidator()
          Creates a new instance.
 
Method Summary
 Validator getGroupValidator()
          Returns a validator for source groups.
protected  List<Validation<ResourceCatalog>> 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

ResourceCatalogValidator

public ResourceCatalogValidator()
Creates a new instance.

Method Detail

makeValidationList

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

validate

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

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.