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 booleanThis flag will be set to true in case of any error.private final GrammarReaderControllerController works as a wrapper to this object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(IOException e, Locator source) voidvoiderror(ParserConfigurationException e, Locator source) voidvoiderror(SAXException e, Locator source) voiderror(SAXParseException spe) voidgetCore()protected Locator[]Return the full resolver.booleanhadError()Returns true if an error had been reported.resolveEntity(String publicId, String systemId) Deprecated.final voidForce set the error flag to true.voidvoidwarning(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:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
warning
- Specified by:
warningin interfaceGrammarReaderController
-
error
- Specified by:
errorin interfaceGrammarReaderController
-
error
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler
-
error
- Specified by:
errorin interfaceErrorHandler
-
warning
- Specified by:
warningin interfaceErrorHandler
-
error
-
error
-
error
-
getLocator
-
getLSResourceResolver
Return the full resolver.- Specified by:
getLSResourceResolverin interfaceGrammarReaderController2
-