com.epam.fix.validation.engine
Class ValidatorContainer

java.lang.Object
  extended by com.epam.fix.validation.engine.ValidatorContainer
All Implemented Interfaces:
IValidatorContainer

public class ValidatorContainer
extends Object
implements IValidatorContainer

Contains the list of validators.

Author:
Serhiy_Zahriychuk
See Also:
ValidatorType

Constructor Summary
ValidatorContainer()
           
 
Method Summary
 List<IValidator> getAllValidators()
          Gets validators.
 MessageTypeValidator getMessageTypeValidator()
          Gets validators.
 IValidator getValidator(ValidatorType type)
          Gets the validator by validator type.
 List<IValidator> getValidatorsWithOutInputs(List<ValidatorType> types)
          Gets the validators with specific types.
 List<IValidator> getValidatorsWithOutMessageType()
          Gets the validators.
 Set<ValidatorType> getValidatorType()
          Gets the list of type validator.
 void putNewValidator(ValidatorType type, IValidator validator)
           
 void putOtherValidators(IValidatorContainer container)
          Appends the validators from container container into current instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorContainer

public ValidatorContainer()
Method Detail

putNewValidator

public void putNewValidator(ValidatorType type,
                            IValidator validator)
Specified by:
putNewValidator in interface IValidatorContainer
See Also:
IValidatorContainer.putNewValidator(com.epam.fix.validation.ValidatorType, IValidator)

getValidator

public IValidator getValidator(ValidatorType type)
Description copied from interface: IValidatorContainer
Gets the validator by validator type.

Specified by:
getValidator in interface IValidatorContainer
Parameters:
type - the type of validator
See Also:
IValidatorContainer.getValidator(com.epam.fix.validation.ValidatorType)

getValidatorsWithOutInputs

public List<IValidator> getValidatorsWithOutInputs(List<ValidatorType> types)
Description copied from interface: IValidatorContainer
Gets the validators with specific types.

Specified by:
getValidatorsWithOutInputs in interface IValidatorContainer
Parameters:
types - the types of validator
See Also:
IValidatorContainer.getValidatorsWithOutInputs(java.util.List)

getValidatorsWithOutMessageType

public List<IValidator> getValidatorsWithOutMessageType()
Description copied from interface: IValidatorContainer
Gets the validators. The result is not contain MESSAGE_TYPE validator.

Specified by:
getValidatorsWithOutMessageType in interface IValidatorContainer
See Also:
IValidatorContainer.getValidatorsWithOutMessageType()

getAllValidators

public List<IValidator> getAllValidators()
Description copied from interface: IValidatorContainer
Gets validators.

Specified by:
getAllValidators in interface IValidatorContainer
Returns:
the list of validator
See Also:
IValidatorContainer.getAllValidators()

getMessageTypeValidator

public MessageTypeValidator getMessageTypeValidator()
Description copied from interface: IValidatorContainer
Gets validators.

Specified by:
getMessageTypeValidator in interface IValidatorContainer
Returns:
the list of validator
See Also:
IValidatorContainer.getMessageTypeValidator()

putOtherValidators

public void putOtherValidators(IValidatorContainer container)
Description copied from interface: IValidatorContainer
Appends the validators from container container into current instance.

Specified by:
putOtherValidators in interface IValidatorContainer
See Also:
IValidatorContainer.putOtherValidators(com.epam.fix.validation.engine.IValidatorContainer)

getValidatorType

public Set<ValidatorType> getValidatorType()
Description copied from interface: IValidatorContainer
Gets the list of type validator.

Specified by:
getValidatorType in interface IValidatorContainer
Returns:
the list of validator
See Also:
IValidatorContainer.getValidatorType()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.