com.bbn.swede.core.libraries
Interface IConfigurationValidator

All Known Implementing Classes:
ConfigurationValidator

public interface IConfigurationValidator

Interface to decide whether IConfiguration objects are valid.

Author:
aperezlo

Method Summary
 String[] getErrorMessages()
          Retrieves any error messages generated during validation.
 boolean isValid(IConfiguration props)
          Indicates whether a given configuration is valid.
 boolean isValid(Map.Entry property)
          Indicates whether a specific property from a configuration is valid.
 

Method Detail

isValid

public boolean isValid(IConfiguration props)
Indicates whether a given configuration is valid.

Parameters:
props - The configuration to check
Returns:
true if props is valid, false otherwise

isValid

public boolean isValid(Map.Entry property)
Indicates whether a specific property from a configuration is valid.

Parameters:
property - a generalized representation of a single property of a configuration
Returns:
true if this is a valid property, false otherwise

getErrorMessages

public String[] getErrorMessages()
Retrieves any error messages generated during validation.

Returns:
an array containing all error messages generated during the validation operation


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.