org.apache.avalon.phoenix.interfaces
Interface ConfigurationValidatorMBean

All Known Implementing Classes:
DelegatingConfigurationValidator, JarvConfigurationValidator, NoopConfigurationValidator

public interface ConfigurationValidatorMBean

Management interface to the Configuration Validator

Author:
Peter Royal
See Also:
ConfigurationValidator

Method Summary
 String getSchema(String application, String block)
          Get the XML that represents the schema for the specified application and block.
 String getSchemaType(String application, String block)
          Get the schema type for the specified application and block.
 boolean isValid(String application, String block, Configuration configuration)
          Check to see if configuration is valid.
 

Method Detail

getSchemaType

public String getSchemaType(String application,
                            String block)
Get the schema type for the specified application and block. Returns null if no schema
Parameters:
application - to get schema for
block - to get schema for
Returns:
schema type, or null if none exists

getSchema

public String getSchema(String application,
                        String block)
Get the XML that represents the schema for the specified application and block. Returns null if no schema.
Parameters:
application - to get schema for
block - to get schema for
Returns:
schema as string, or null if none exists

isValid

public boolean isValid(String application,
                       String block,
                       Configuration configuration)
                throws ConfigurationException
Check to see if configuration is valid.
Parameters:
application - Application name
block - Block name to store configuration for
configuration - Configuration to check
Returns:
true if configuration is valid
Throws:
ConfigurationException - if no schema is found
See Also:
ConfigurationValidator.isValid(java.lang.String, java.lang.String, org.apache.avalon.framework.configuration.Configuration)


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.