Class DefaultChangesSchemaValidator
java.lang.Object
org.apache.maven.plugins.changes.schema.DefaultChangesSchemaValidator
- All Implemented Interfaces:
ChangesSchemaValidator
@Named
@Singleton
public class DefaultChangesSchemaValidator
extends Object
implements ChangesSchemaValidator
- Since:
- 28 juil. 2008
- Version:
- $Id$
- Author:
- Olivier Lamy
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
loadSchema
(String uriSchema) validateXmlWithSchema
(File file, String schemaVersion, boolean failOnValidationError)
-
Field Details
-
W3C_XML_SCHEMA
property schema- See Also:
-
CHANGES_SCHEMA_PATH
- See Also:
-
-
Constructor Details
-
DefaultChangesSchemaValidator
public DefaultChangesSchemaValidator()
-
-
Method Details
-
validateXmlWithSchema
public XmlValidationHandler validateXmlWithSchema(File file, String schemaVersion, boolean failOnValidationError) throws SchemaValidatorException - Specified by:
validateXmlWithSchema
in interfaceChangesSchemaValidator
- Parameters:
file
- File to validate.schemaVersion
- Schema version.failOnValidationError
- if false SchemaValidatorException will not be throw- Returns:
XmlValidationHandler
- Throws:
SchemaValidatorException
- if validation failed.
-
getSchema
- Throws:
SAXException
IOException
-
loadSchema
- Throws:
SchemaValidatorException
-