com.sun.xml.xsom.impl.parser.state
Class NGCCHandler

java.lang.Object
  extended by com.sun.xml.xsom.impl.parser.state.NGCCHandler
All Implemented Interfaces:
NGCCEventReceiver
Direct Known Subclasses:
Schema

public abstract class NGCCHandler
extends Object
implements NGCCEventReceiver

Version:
$Id: NGCCHandler.java,v 1.9 2002/09/29 02:55:48 okajima Exp $
Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Field Summary
protected  int _cookie
          Cookie assigned by the parent.
protected  NGCCHandler _parent
          Parent NGCCHandler, if any.
protected  NGCCEventSource _source
          Event source.
 
Constructor Summary
protected NGCCHandler(NGCCEventSource source, NGCCHandler parent, int parentCookie)
           
 
Method Summary
protected abstract  NGCCRuntime getRuntime()
          This method will be implemented by the generated code and returns a reference to the current runtime.
protected abstract  void onChildCompleted(Object result, int cookie, boolean needAttCheck)
          Notifies the completion of a child object.
 void revertToParentFromEnterAttribute(Object result, int cookie, String uri, String local, String qname)
           
 void revertToParentFromEnterElement(Object result, int cookie, String uri, String local, String qname, Attributes atts)
           
 void revertToParentFromLeaveAttribute(Object result, int cookie, String uri, String local, String qname)
           
 void revertToParentFromLeaveElement(Object result, int cookie, String uri, String local, String qname)
           
 void revertToParentFromText(Object result, int cookie, String text)
           
 void spawnChildFromEnterAttribute(NGCCEventReceiver child, String uri, String localname, String qname)
           
 void spawnChildFromEnterElement(NGCCEventReceiver child, String uri, String localname, String qname, Attributes atts)
           
 void spawnChildFromLeaveAttribute(NGCCEventReceiver child, String uri, String localname, String qname)
           
 void spawnChildFromLeaveElement(NGCCEventReceiver child, String uri, String localname, String qname)
           
 void spawnChildFromText(NGCCEventReceiver child, String value)
           
 void unexpectedEnterAttribute(String qname)
           
 void unexpectedEnterElement(String qname)
           
 void unexpectedLeaveAttribute(String qname)
           
 void unexpectedLeaveElement(String qname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.xsom.impl.parser.state.NGCCEventReceiver
enterAttribute, enterElement, leaveAttribute, leaveElement, text
 

Field Detail

_parent

protected final NGCCHandler _parent
Parent NGCCHandler, if any. If this is the root handler, this field will be null.


_source

protected final NGCCEventSource _source
Event source.


_cookie

protected final int _cookie
Cookie assigned by the parent. This value will be passed to the onChildCompleted handler of the parent.

Constructor Detail

NGCCHandler

protected NGCCHandler(NGCCEventSource source,
                      NGCCHandler parent,
                      int parentCookie)
Method Detail

getRuntime

protected abstract NGCCRuntime getRuntime()
This method will be implemented by the generated code and returns a reference to the current runtime.


onChildCompleted

protected abstract void onChildCompleted(Object result,
                                         int cookie,
                                         boolean needAttCheck)
                                  throws SAXException
Notifies the completion of a child object.

Parameters:
result - The parsing result of the child state.
cookie - The cookie value passed to the child object when it is created.
needAttCheck - This flag is true when the callee needs to call the processAttribute method to check attribute transitions. This flag is set to false when this method is triggered by attribute transition.
Throws:
SAXException

spawnChildFromEnterElement

public void spawnChildFromEnterElement(NGCCEventReceiver child,
                                       String uri,
                                       String localname,
                                       String qname,
                                       Attributes atts)
                                throws SAXException
Throws:
SAXException

spawnChildFromEnterAttribute

public void spawnChildFromEnterAttribute(NGCCEventReceiver child,
                                         String uri,
                                         String localname,
                                         String qname)
                                  throws SAXException
Throws:
SAXException

spawnChildFromLeaveElement

public void spawnChildFromLeaveElement(NGCCEventReceiver child,
                                       String uri,
                                       String localname,
                                       String qname)
                                throws SAXException
Throws:
SAXException

spawnChildFromLeaveAttribute

public void spawnChildFromLeaveAttribute(NGCCEventReceiver child,
                                         String uri,
                                         String localname,
                                         String qname)
                                  throws SAXException
Throws:
SAXException

spawnChildFromText

public void spawnChildFromText(NGCCEventReceiver child,
                               String value)
                        throws SAXException
Throws:
SAXException

revertToParentFromEnterElement

public void revertToParentFromEnterElement(Object result,
                                           int cookie,
                                           String uri,
                                           String local,
                                           String qname,
                                           Attributes atts)
                                    throws SAXException
Throws:
SAXException

revertToParentFromLeaveElement

public void revertToParentFromLeaveElement(Object result,
                                           int cookie,
                                           String uri,
                                           String local,
                                           String qname)
                                    throws SAXException
Throws:
SAXException

revertToParentFromEnterAttribute

public void revertToParentFromEnterAttribute(Object result,
                                             int cookie,
                                             String uri,
                                             String local,
                                             String qname)
                                      throws SAXException
Throws:
SAXException

revertToParentFromLeaveAttribute

public void revertToParentFromLeaveAttribute(Object result,
                                             int cookie,
                                             String uri,
                                             String local,
                                             String qname)
                                      throws SAXException
Throws:
SAXException

revertToParentFromText

public void revertToParentFromText(Object result,
                                   int cookie,
                                   String text)
                            throws SAXException
Throws:
SAXException

unexpectedEnterElement

public void unexpectedEnterElement(String qname)
                            throws SAXException
Throws:
SAXException

unexpectedLeaveElement

public void unexpectedLeaveElement(String qname)
                            throws SAXException
Throws:
SAXException

unexpectedEnterAttribute

public void unexpectedEnterAttribute(String qname)
                              throws SAXException
Throws:
SAXException

unexpectedLeaveAttribute

public void unexpectedLeaveAttribute(String qname)
                              throws SAXException
Throws:
SAXException


Copyright © 2012 Oracle. All Rights Reserved.