edu.nrao.sss.model.resource
Class ResourceGroupValidator

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

public class ResourceGroupValidator
extends AbstractValidator<ResourceGroup>

A validator of resource groups.

Validations Performed for All Purposes

  1. No duplicate resource names.

Extra Validations Performed for Purpose CERTIFY_READY_TO_USE

  1. 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: 1709 $
$Date: 2008-11-14 11:22:37 -0700 (Fri, 14 Nov 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
ResourceGroupValidator()
          Creates a new instance.
 
Method Summary
 Validator getResourceValidator()
          Returns a validator for sources.
protected  List<Validation<ResourceGroup>> makeValidationList(ValidationPurpose purpose)
           
 void setResourceValidator(Validator newValidator)
          Sets the validator to use for the resources 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

ResourceGroupValidator

public ResourceGroupValidator()
Creates a new instance.

Method Detail

makeValidationList

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

validate

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

setResourceValidator

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

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

getResourceValidator

public Validator getResourceValidator()
Returns a validator for sources.



Copyright © 2009. All Rights Reserved.