Package com.sun.msv.reader
Class Controller
- java.lang.Object
-
- com.sun.msv.reader.Controller
-
- All Implemented Interfaces:
GrammarReaderController
,GrammarReaderController2
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class Controller extends java.lang.Object implements GrammarReaderController2, org.xml.sax.ErrorHandler
Internal view of GrammarReaderController. This class wraps a GrammarReaderController and adds several convenient methods for the caller.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_hadError
This flag will be set to true in case of any error.private GrammarReaderController
core
Controller works as a wrapper to this object.
-
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(java.io.IOException e, org.xml.sax.Locator source)
void
error(java.lang.String errorMessage, java.lang.Exception nestedException)
void
error(javax.xml.parsers.ParserConfigurationException e, org.xml.sax.Locator source)
void
error(org.xml.sax.Locator[] locs, java.lang.String errorMessage, java.lang.Exception nestedException)
void
error(org.xml.sax.SAXException e, org.xml.sax.Locator source)
void
error(org.xml.sax.SAXParseException spe)
void
fatalError(org.xml.sax.SAXParseException spe)
GrammarReaderController
getCore()
protected org.xml.sax.Locator[]
getLocator(org.xml.sax.SAXParseException spe)
org.w3c.dom.ls.LSResourceResolver
getLSResourceResolver()
Return the full resolver.boolean
hadError()
Returns true if an error had been reported.org.xml.sax.InputSource
resolveEntity(java.lang.String publicId, java.lang.String systemId)
Deprecated.void
setErrorFlag()
Force set the error flag to true.void
warning(org.xml.sax.Locator[] locs, java.lang.String errorMessage)
void
warning(org.xml.sax.SAXParseException spe)
-
-
-
Field Detail
-
core
private final GrammarReaderController core
Controller works as a wrapper to this object.
-
_hadError
private boolean _hadError
This flag will be set to true in case of any error.
-
-
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 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
Deprecated.- Specified by:
resolveEntity
in interfaceorg.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
warning
public void warning(org.xml.sax.Locator[] locs, java.lang.String errorMessage)
- Specified by:
warning
in interfaceGrammarReaderController
-
error
public void error(org.xml.sax.Locator[] locs, java.lang.String errorMessage, java.lang.Exception nestedException)
- Specified by:
error
in interfaceGrammarReaderController
-
error
public void error(java.lang.String errorMessage, java.lang.Exception nestedException)
-
fatalError
public void fatalError(org.xml.sax.SAXParseException spe)
- Specified by:
fatalError
in interfaceorg.xml.sax.ErrorHandler
-
error
public void error(org.xml.sax.SAXParseException spe)
- Specified by:
error
in interfaceorg.xml.sax.ErrorHandler
-
warning
public void warning(org.xml.sax.SAXParseException spe)
- Specified by:
warning
in interfaceorg.xml.sax.ErrorHandler
-
error
public void error(java.io.IOException e, org.xml.sax.Locator source)
-
error
public void error(org.xml.sax.SAXException e, org.xml.sax.Locator source)
-
error
public void error(javax.xml.parsers.ParserConfigurationException e, org.xml.sax.Locator source)
-
getLocator
protected org.xml.sax.Locator[] getLocator(org.xml.sax.SAXParseException spe)
-
getLSResourceResolver
public org.w3c.dom.ls.LSResourceResolver getLSResourceResolver()
Return the full resolver.- Specified by:
getLSResourceResolver
in interfaceGrammarReaderController2
-
-