Package com.sun.msv.driver.textui
Class DebugController
java.lang.Object
com.sun.msv.driver.textui.DebugController
- All Implemented Interfaces:
GrammarReaderController
,EntityResolver
GrammarReaderController that prints all errors and warnings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
if true, warnings are reported.entity resolution is delegated to this object.protected PrintStream
messages are sent to this object.private boolean
set to true after "there are warnings..." message is once printed. -
Constructor Summary
ConstructorsConstructorDescriptionDebugController
(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
Modifier and TypeMethodDescriptionvoid
private void
printLocation
(Locator loc) resolveEntity
(String publicId, String systemId) void
-
Field Details
-
displayWarning
private boolean displayWarningif true, warnings are reported. If false, not reported. -
warningReported
private boolean warningReportedset to true after "there are warnings..." message is once printed. -
externalEntityResolver
entity resolution is delegated to this object. can be null. -
out
messages are sent to this object.
-
-
Constructor Details
-
DebugController
public DebugController(boolean displayWarning) -
DebugController
public DebugController(boolean displayWarning, boolean quiet) -
DebugController
public DebugController(boolean displayWarning, boolean quiet, EntityResolver externalEntityResolver) -
DebugController
-
DebugController
public DebugController(boolean displayWarning, boolean quiet, PrintStream outDevice, EntityResolver externalEntityResolver)
-
-
Method Details
-
warning
- Specified by:
warning
in interfaceGrammarReaderController
-
error
- Specified by:
error
in interfaceGrammarReaderController
-
printLocation
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
IOException
SAXException
-