com.sun.msv.reader
Class Controller

java.lang.Object
  extended by 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
Controller(GrammarReaderController _core)
           
 
Method Summary
 void error(IOException e, Locator source)
           
 void error(Locator[] locs, String errorMessage, Exception nestedException)
           
 void error(ParserConfigurationException e, Locator source)
           
 void error(SAXException e, Locator source)
           
 void error(SAXParseException spe)
           
 void error(String errorMessage, Exception nestedException)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface EntityResolver
Throws:
SAXException
IOException

warning

public void warning(Locator[] locs,
                    String errorMessage)
Specified by:
warning in interface GrammarReaderController

error

public void error(Locator[] locs,
                  String errorMessage,
                  Exception nestedException)
Specified by:
error in interface GrammarReaderController

error

public void error(String errorMessage,
                  Exception nestedException)

fatalError

public void fatalError(SAXParseException spe)
Specified by:
fatalError in interface ErrorHandler

error

public void error(SAXParseException spe)
Specified by:
error in interface ErrorHandler

warning

public void warning(SAXParseException spe)
Specified by:
warning in interface ErrorHandler

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 interface GrammarReaderController2


MSV