org.jboss.metadata.validation.chain
Interface ValidatorChain<T extends JBossMetaData>

All Known Implementing Classes:
JBoss50MetaDataValidatorChain, JBossMetaDataValidatorChain

public interface ValidatorChain<T extends JBossMetaData>

ValidatorChain Defines the contract for a chain of Validators upon metadata

Version:
$Revision: $
Author:
ALR

Method Summary
 void addValidator(Validator validator)
          Adds the specified validator to the chain
 List<Validator> getValidators()
          Obtains all validators in the chain.
 void validate(T metadata)
          Validates the specified metadata against the configured validators
 

Method Detail

validate

void validate(T metadata)
              throws ValidatorChainException
Validates the specified metadata against the configured validators

Parameters:
metadata -
Throws:
ValidatorChainException

getValidators

List<Validator> getValidators()
Obtains all validators in the chain. Will return an immutable view of the configured validators as to not allow published mutation of the set except as provided

Returns:

addValidator

void addValidator(Validator validator)
Adds the specified validator to the chain

Parameters:
validator -


Copyright © 2009 JBoss Inc.. All Rights Reserved.