Package com.sun.msv.reader
Class Controller
java.lang.Object
com.sun.msv.reader.Controller
- All Implemented Interfaces:
GrammarReaderController
,GrammarReaderController2
,EntityResolver
,ErrorHandler
Internal view of GrammarReaderController.
This class wraps a GrammarReaderController and
adds several convenient methods for the caller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
This flag will be set to true in case of any error.private final GrammarReaderController
Controller works as a wrapper to this object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(IOException e, Locator source) void
void
error
(ParserConfigurationException e, Locator source) void
void
error
(SAXException e, Locator source) void
error
(SAXParseException spe) void
getCore()
protected Locator[]
Return the full resolver.boolean
hadError()
Returns true if an error had been reported.resolveEntity
(String publicId, String systemId) Deprecated.final void
Force set the error flag to true.void
void
warning
(SAXParseException spe)
-
Field Details
-
core
Controller works as a wrapper to this object. -
_hadError
private boolean _hadErrorThis flag will be set to true in case of any error.
-
-
Constructor Details
-
Controller
-
-
Method Details
-
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
- Specified by:
warning
in interfaceGrammarReaderController
-
error
- Specified by:
error
in interfaceGrammarReaderController
-
error
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
-
error
- Specified by:
error
in interfaceErrorHandler
-
warning
- Specified by:
warning
in interfaceErrorHandler
-
error
-
error
-
error
-
getLocator
-
getLSResourceResolver
Return the full resolver.- Specified by:
getLSResourceResolver
in interfaceGrammarReaderController2
-