com.sun.msv.driver.textui

Class DebugController

Implemented Interfaces:
EntityResolver, GrammarReaderController

public class DebugController
extends Object
implements GrammarReaderController

GrammarReaderController that prints all errors and warnings.
Author:
Kohsuke KAWAGUCHI

Field Summary

EntityResolver
externalEntityResolver
entity resolution is delegated to this object.

Constructor Summary

DebugController(boolean displayWarning)
DebugController(boolean displayWarning, boolean quiet)
DebugController(boolean displayWarning, boolean quiet, EntityResolver externalEntityResolver)
DebugController(boolean displayWarning, boolean quiet, PrintStream outDevice)
DebugController(boolean displayWarning, boolean quiet, PrintStream outDevice, EntityResolver externalEntityResolver)

Method Summary

void
error(Locator[] loc, String errorMessage, Exception nestedException)
InputSource
resolveEntity(String publicId, String systemId)
void
warning(Locator[] loc, String errorMessage)

Field Details

externalEntityResolver

public EntityResolver externalEntityResolver
entity resolution is delegated to this object. can be null.

Constructor Details

DebugController

public DebugController(boolean displayWarning)

DebugController

public DebugController(boolean displayWarning,
                       boolean quiet)

DebugController

public DebugController(boolean displayWarning,
                       boolean quiet,
                       EntityResolver externalEntityResolver)

DebugController

public DebugController(boolean displayWarning,
                       boolean quiet,
                       PrintStream outDevice)

DebugController

public DebugController(boolean displayWarning,
                       boolean quiet,
                       PrintStream outDevice,
                       EntityResolver externalEntityResolver)

Method Details

error

public void error(Locator[] loc,
                  String errorMessage,
                  Exception nestedException)
Specified by:
error in interface GrammarReaderController

resolveEntity

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

warning

public void warning(Locator[] loc,
                    String errorMessage)
Specified by:
warning in interface GrammarReaderController