001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.1-05/30/2003 05:06 AM(java_re)-fcs
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2004.10.11 at 12:13:34 EDT
006 //
007
008 /*
009 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
010 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
011 */
012
013 /*
014 * @(#)$Id: UnmarshallingEventHandler.java,v 1.5 2003/05/14 18:36:18 lschwenk Exp $
015 */
016 package astronomy.data.spectra.impl.runtime;
017
018 import org.xml.sax.Attributes;
019 import org.xml.sax.SAXException;
020
021 /**
022 * Implemented by the generated code to unmarshall an object
023 * from unmarshaller events.
024 *
025 * <p>
026 * AbstractUnmarshallingEventHandlerImpl throws a SAXException when a problem is encountered
027 * and that problem is not reported. It is the responsibility of the caller
028 * of this interface to report it to the client's ValidationEventHandler
029 * and re-wrap it into UnmarshalException.
030 *
031 * @author
032 * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
033 */
034 public interface UnmarshallingEventHandler {
035
036 /**
037 * Returns the content-tree object for which this unmarshaller
038 * is working for.
039 */
040 Object owner();
041
042 //
043 // event handlers
044 //
045 void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException;
046 void leaveElement(String uri, String local, String qname ) throws SAXException;
047 void text(String s) throws SAXException;
048 void enterAttribute(String uri, String local, String qname ) throws SAXException;
049 void leaveAttribute(String uri, String local, String qname ) throws SAXException;
050 void leaveChild(int nextState) throws SAXException;
051 }