com.sun.msv.reader

Class Controller

public class Controller extends Object implements GrammarReaderController, ErrorHandler

Internal view of GrammarReaderController. This class wraps a GrammarReaderController and adds several convenient methods for the caller.
Constructor Summary
Controller(GrammarReaderController _core)
Method Summary
voiderror(Locator[] locs, String errorMessage, Exception nestedException)
voiderror(String errorMessage, Exception nestedException)
voiderror(SAXParseException spe)
voiderror(IOException e, Locator source)
voiderror(SAXException e, Locator source)
voiderror(ParserConfigurationException e, Locator source)
voidfatalError(SAXParseException spe)
GrammarReaderControllergetCore()
booleanhadError()
Returns true if an error had been reported.
InputSourceresolveEntity(String p, String s)
voidsetErrorFlag()
Force set the error flag to true.
voidwarning(Locator[] locs, String errorMessage)
voidwarning(SAXParseException spe)

Constructor Detail

Controller

public Controller(GrammarReaderController _core)

Method Detail

error

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

error

public void error(String errorMessage, Exception nestedException)

error

public void error(SAXParseException spe)

error

public void error(IOException e, Locator source)

error

public void error(SAXException e, Locator source)

error

public void error(ParserConfigurationException e, Locator source)

fatalError

public void fatalError(SAXParseException spe)

getCore

public GrammarReaderController getCore()

hadError

public boolean hadError()
Returns true if an error had been reported.

resolveEntity

public InputSource resolveEntity(String p, String s)

setErrorFlag

public final void setErrorFlag()
Force set the error flag to true.

warning

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

warning

public void warning(SAXParseException spe)