org.apache.excalibur.configuration.validation
Class JarvConfigurationValidatorFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.configuration.validation.JarvConfigurationValidatorFactory
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, ConfigurationValidatorFactory
public class JarvConfigurationValidatorFactory
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, ConfigurationValidatorFactory
A validator that is capable of validating any schema supported by the JARV
engine. http://iso-relax.sourceforge.net/
- Author:
- Peter Royal
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarvConfigurationValidatorFactory
public JarvConfigurationValidatorFactory()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- There are two possible configuration options for this class. They are mutually exclusive.
- <schema-language>schema language uri</schema-language>
- <verifier-factory-class>classname</verifier-factory-class>
The fully-qualified classname to use as a verifier factory.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
http://iso-relax.sourceforge.net/apiDoc/org/iso_relax/verifier/VerifierFactory.html#newInstance(java.lang.String)
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
Exception
createValidator
public ConfigurationValidator createValidator(String schemaType,
InputStream schema)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Description copied from interface:
ConfigurationValidatorFactory
- Add configuration schema to validator
- Specified by:
createValidator
in interface ConfigurationValidatorFactory
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if schema is invalid
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.