Apache CXF API

org.apache.cxf.wstx_msv_validation
Class ResolvingGrammarReaderController

java.lang.Object
  extended by org.apache.cxf.wstx_msv_validation.ResolvingGrammarReaderController
All Implemented Interfaces:
LSResourceResolver

public class ResolvingGrammarReaderController
extends Object
implements LSResourceResolver

Catch error messages and resolve schema locations.


Constructor Summary
ResolvingGrammarReaderController(String baseURI, Map<String,EmbeddedSchema> sources)
           
 
Method Summary
 void error(Locator[] locs, String msg, Exception nestedException)
           
 LSResourceResolver getLSResourceResolver()
           
 InputSource resolveEntity(String publicId, String systemId)
           
 LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String resolveBaseURI)
           
 void warning(Locator[] locs, String errorMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolvingGrammarReaderController

public ResolvingGrammarReaderController(String baseURI,
                                        Map<String,EmbeddedSchema> sources)
Method Detail

error

public void error(Locator[] locs,
                  String msg,
                  Exception nestedException)

warning

public void warning(Locator[] locs,
                    String errorMessage)

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Throws:
SAXException
IOException

getLSResourceResolver

public LSResourceResolver getLSResourceResolver()

resolveResource

public LSInput resolveResource(String type,
                               String namespaceURI,
                               String publicId,
                               String systemId,
                               String resolveBaseURI)
Specified by:
resolveResource in interface LSResourceResolver

Apache CXF API

Apache CXF