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 voiderror(IOException e, Locator source)voiderror(String errorMessage, Exception nestedException)voiderror(ParserConfigurationException e, Locator source)voiderror(Locator[] locs, String errorMessage, Exception nestedException)voiderror(SAXException e, Locator source)voiderror(SAXParseException spe)voidfatalError(SAXParseException spe)GrammarReaderControllergetCore()protected Locator[]getLocator(SAXParseException spe)LSResourceResolvergetLSResourceResolver()Return the full resolver.booleanhadError()Returns true if an error had been reported.InputSourceresolveEntity(String publicId, String systemId)Deprecated.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
-
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:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
warning
public void warning(Locator[] locs, String errorMessage)
- Specified by:
warningin interfaceGrammarReaderController
-
error
public void error(Locator[] locs, String errorMessage, Exception nestedException)
- Specified by:
errorin interfaceGrammarReaderController
-
fatalError
public void fatalError(SAXParseException spe)
- Specified by:
fatalErrorin interfaceErrorHandler
-
error
public void error(SAXParseException spe)
- Specified by:
errorin interfaceErrorHandler
-
warning
public void warning(SAXParseException spe)
- Specified by:
warningin 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:
getLSResourceResolverin interfaceGrammarReaderController2
-
-