Package com.sun.msv.reader
Class Controller
- java.lang.Object
-
- com.sun.msv.reader.Controller
-
- All Implemented Interfaces:
GrammarReaderController
,GrammarReaderController2
,EntityResolver
,ErrorHandler
public class Controller extends Object implements GrammarReaderController2, ErrorHandler
Internal view of GrammarReaderController. This class wraps a GrammarReaderController and adds several convenient methods for the caller.
-
-
Constructor Summary
Constructors Constructor Description Controller(GrammarReaderController _core)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
error(IOException e, Locator source)
void
error(String errorMessage, Exception nestedException)
void
error(ParserConfigurationException e, Locator source)
void
error(Locator[] locs, String errorMessage, Exception nestedException)
void
error(SAXException e, Locator source)
void
error(SAXParseException spe)
void
fatalError(SAXParseException spe)
GrammarReaderController
getCore()
protected Locator[]
getLocator(SAXParseException spe)
LSResourceResolver
getLSResourceResolver()
Return the full resolver.boolean
hadError()
Returns true if an error had been reported.InputSource
resolveEntity(String publicId, String systemId)
Deprecated.void
setErrorFlag()
Force set the error flag to true.void
warning(Locator[] locs, String errorMessage)
void
warning(SAXParseException spe)
-
-
-
Constructor Detail
-
Controller
public Controller(GrammarReaderController _core)
-
-
Method Detail
-
getCore
public GrammarReaderController getCore()
-
hadError
public boolean hadError()
Returns true if an error had been reported.
-
setErrorFlag
public final void setErrorFlag()
Force set the error flag to true.
-
resolveEntity
@Deprecated public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
Deprecated.- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
warning
public void warning(Locator[] locs, String errorMessage)
- Specified by:
warning
in interfaceGrammarReaderController
-
error
public void error(Locator[] locs, String errorMessage, Exception nestedException)
- Specified by:
error
in interfaceGrammarReaderController
-
fatalError
public void fatalError(SAXParseException spe)
- Specified by:
fatalError
in interfaceErrorHandler
-
error
public void error(SAXParseException spe)
- Specified by:
error
in interfaceErrorHandler
-
warning
public void warning(SAXParseException spe)
- Specified by:
warning
in interfaceErrorHandler
-
error
public void error(IOException e, Locator source)
-
error
public void error(SAXException e, Locator source)
-
error
public void error(ParserConfigurationException e, Locator source)
-
getLocator
protected Locator[] getLocator(SAXParseException spe)
-
getLSResourceResolver
public LSResourceResolver getLSResourceResolver()
Return the full resolver.- Specified by:
getLSResourceResolver
in interfaceGrammarReaderController2
-
-