org.apache.maven.plugin.changes.schema
Class DefaultChangesSchemaValidator

java.lang.Object
  extended by org.apache.maven.plugin.changes.schema.DefaultChangesSchemaValidator
All Implemented Interfaces:
ChangesSchemaValidator

public class DefaultChangesSchemaValidator
extends Object
implements ChangesSchemaValidator

Since:
28 juil. 2008
Version:
$Id: DefaultChangesSchemaValidator.java 1396150 2012-10-09 18:15:29Z krosenvold $
Author:
Olivier Lamy
Plexus component:
role:
"org.apache.maven.plugin.changes.schema.ChangesSchemaValidator"
role-hint:
"default"

Field Summary
static String CHANGES_SCHEMA_PATH
           
static String W3C_XML_SCHEMA
          property schema
 
Constructor Summary
DefaultChangesSchemaValidator()
           
 
Method Summary
 Schema getSchema(String schemaPath)
           
 void loadSchema(String uriSchema)
           
 XmlValidationHandler validateXmlWithSchema(File file, String schemaVersion, boolean failOnValidationError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

W3C_XML_SCHEMA

public static final String W3C_XML_SCHEMA
property schema

See Also:
Constant Field Values

CHANGES_SCHEMA_PATH

public static final String CHANGES_SCHEMA_PATH
See Also:
Constant Field Values
Constructor Detail

DefaultChangesSchemaValidator

public DefaultChangesSchemaValidator()
Method Detail

validateXmlWithSchema

public XmlValidationHandler validateXmlWithSchema(File file,
                                                  String schemaVersion,
                                                  boolean failOnValidationError)
                                           throws SchemaValidatorException
Specified by:
validateXmlWithSchema in interface ChangesSchemaValidator
failOnValidationError - if false SchemaValidatorException will not be throw
Returns:
XmlValidationHandler
Throws:
SchemaValidatorException

getSchema

public Schema getSchema(String schemaPath)
                 throws SAXException
Throws:
SAXException

loadSchema

public void loadSchema(String uriSchema)
                throws SchemaValidatorException
Throws:
SchemaValidatorException


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