Package com.sun.msv.driver.textui
Class DebugController
- java.lang.Object
-
- com.sun.msv.driver.textui.DebugController
-
- All Implemented Interfaces:
GrammarReaderController
,EntityResolver
public class DebugController extends Object implements GrammarReaderController
GrammarReaderController that prints all errors and warnings.- Author:
- Kohsuke KAWAGUCHI
-
-
Field Summary
Fields Modifier and Type Field Description EntityResolver
externalEntityResolver
entity resolution is delegated to this object.protected PrintStream
out
messages are sent to this object.
-
Constructor Summary
Constructors Constructor Description DebugController(boolean displayWarning)
DebugController(boolean displayWarning, boolean quiet)
DebugController(boolean displayWarning, boolean quiet, PrintStream outDevice)
DebugController(boolean displayWarning, boolean quiet, PrintStream outDevice, EntityResolver externalEntityResolver)
DebugController(boolean displayWarning, boolean quiet, EntityResolver externalEntityResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(Locator[] loc, String errorMessage, Exception nestedException)
InputSource
resolveEntity(String publicId, String systemId)
void
warning(Locator[] loc, String errorMessage)
-
-
-
Field Detail
-
externalEntityResolver
public EntityResolver externalEntityResolver
entity resolution is delegated to this object. can be null.
-
out
protected PrintStream out
messages are sent to this object.
-
-
Constructor Detail
-
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 Detail
-
warning
public void warning(Locator[] loc, String errorMessage)
- Specified by:
warning
in interfaceGrammarReaderController
-
error
public void error(Locator[] loc, String errorMessage, Exception nestedException)
- Specified by:
error
in interfaceGrammarReaderController
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
IOException
SAXException
-
-