/*
 * @(#)$Id: GrammarReaderController.java,v 1.9 2003/06/09 20:37:23 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.EntityResolver;
import org.xml.sax.Locator;

/**
 * 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 );
}
