Class NGCCHandler
java.lang.Object
com.sun.xml.xsom.impl.parser.state.NGCCHandler
- All Implemented Interfaces:
NGCCEventReceiver
- Direct Known Subclasses:
Schema
- Version:
- $Id: NGCCHandler.java,v 1.9 2002/09/29 02:55:48 okajima Exp $
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
Cookie assigned by the parent.protected final NGCCHandler
Parent NGCCHandler, if any.protected final NGCCEventSource
Event source. -
Constructor Summary
ModifierConstructorDescriptionprotected
NGCCHandler
(NGCCEventSource source, NGCCHandler parent, int parentCookie) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract NGCCRuntime
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 Details
-
_parent
Parent NGCCHandler, if any. If this is the root handler, this field will be null. -
_source
Event source. -
_cookie
protected final int _cookieCookie assigned by the parent. This value will be passed to the onChildCompleted handler of the parent.
-
-
Constructor Details
-
NGCCHandler
-
-
Method Details
-
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
- 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
- Throws:
SAXException
-
unexpectedEnterElement
- Throws:
SAXException
-
unexpectedLeaveElement
- Throws:
SAXException
-
unexpectedEnterAttribute
- Throws:
SAXException
-
unexpectedLeaveAttribute
- Throws:
SAXException
-