org.apache.excalibur.configuration.validation
Interface ConfigurationValidator

All Known Implementing Classes:
JarvConfigurationValidator

public interface ConfigurationValidator

Author:
peter royal

Method Summary
 ValidationResult isFeasiblyValid(org.apache.avalon.framework.configuration.Configuration configuration)
          Check to see if configuration is feasibly valid.
 ValidationResult isValid(org.apache.avalon.framework.configuration.Configuration configuration)
          Check to see if configuration is valid.
 

Method Detail

isFeasiblyValid

ValidationResult isFeasiblyValid(org.apache.avalon.framework.configuration.Configuration configuration)
                                 throws org.apache.avalon.framework.configuration.ConfigurationException
Check to see if configuration is feasibly valid. That is, does this configuration match the schema in its current state, but not neccessarily fullfill the requirements of the schema. Implementations are not required to support checking feasibility. If feasibility cannot be checked, the implementation should always return true

Parameters:
configuration - Configuration to check
Returns:
ValidationResult containing results of validation
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if no schema is found

isValid

ValidationResult isValid(org.apache.avalon.framework.configuration.Configuration configuration)
                         throws org.apache.avalon.framework.configuration.ConfigurationException
Check to see if configuration is valid.

Parameters:
configuration - Configuration to check
Returns:
ValidationResult containing results of validation
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if no schema is found


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.