/* * @(#)$Id: GrammarReaderController.java,v 1.7 2002/03/04 00:53:48 kk122374 Exp $ * * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ package com.sun.msv.reader; import org.xml.sax.Locator; import org.xml.sax.InputSource; import org.xml.sax.EntityResolver; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import java.io.IOException; /** * Event notification interface for controlling grammar parsing process. * * <ol> * <li>receives notification of errors and warnings while parsing a grammar * <li>controls how inclusion of other grammars are processed (through * {@link EntityResolver}. * </ol> * * @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a> */ public interface GrammarReaderController extends EntityResolver { void warning( Locator[] locs, String errorMessage ); void error( Locator[] locs, String errorMessage, Exception nestedException ); }