edu.nrao.sss.model.resource
Class ResourceGroupValidator
java.lang.Object
edu.nrao.sss.validation.AbstractValidator<ResourceGroup>
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
- No duplicate resource names.
Extra Validations Performed for Purpose CERTIFY_READY_TO_USE
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceGroupValidator
public ResourceGroupValidator()
- Creates a new instance.
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.