org.milyn.xml
Class EclipseFragmentXMLValidator

java.lang.Object
  extended by org.milyn.xml.XsdValidator
      extended by org.milyn.xml.EclipseFragmentXMLValidator

public class EclipseFragmentXMLValidator
extends XsdValidator

Eclipse XML Validator.

Uses the Eclipse based /fragment.xml schema resource files available on the classpath to lookup the schema resources for given namespaces.

Author:
zubairov, tom.fennelly@gmail.com

Field Summary
 
Fields inherited from class org.milyn.xml.XsdValidator
SCHEMA_FACTORY
 
Constructor Summary
EclipseFragmentXMLValidator()
           
EclipseFragmentXMLValidator(SchemaFactory schemaFactory)
           
 
Method Summary
 void setSchemaSourceResolver(LSResourceResolver schemaSourceResolver)
           
 void setXSDSources(Collection<Source> xsdSources)
          Set the XSD/Schema Sources.
 
Methods inherited from class org.milyn.xml.XsdValidator
setErrorHandler, setSchemaFactory, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseFragmentXMLValidator

public EclipseFragmentXMLValidator()
                            throws IOException,
                                   SAXException
Throws:
IOException
SAXException

EclipseFragmentXMLValidator

public EclipseFragmentXMLValidator(SchemaFactory schemaFactory)
                            throws IOException,
                                   SAXException
Throws:
IOException
SAXException
Method Detail

setSchemaSourceResolver

public void setSchemaSourceResolver(LSResourceResolver schemaSourceResolver)
                             throws SAXException
Overrides:
setSchemaSourceResolver in class XsdValidator
Throws:
SAXException

setXSDSources

public void setXSDSources(Collection<Source> xsdSources)
                   throws SAXException
Description copied from class: XsdValidator
Set the XSD/Schema Sources.

Overrides:
setXSDSources in class XsdValidator
Parameters:
xsdSources - The schema sources.
Throws:
SAXException


Copyright © 2018. All rights reserved.