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 EntityResolverexternalEntityResolverentity resolution is delegated to this object.protected PrintStreamoutmessages 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 voiderror(Locator[] loc, String errorMessage, Exception nestedException)InputSourceresolveEntity(String publicId, String systemId)voidwarning(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:
warningin interfaceGrammarReaderController
-
error
public void error(Locator[] loc, String errorMessage, Exception nestedException)
- Specified by:
errorin interfaceGrammarReaderController
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
IOExceptionSAXException
-
-