Top Fields Constructors Methods
com.sun.xml.xsom.impl.parser.state

public abstract Class NGCCHandler

extends Object
implements NGCCEventReceiver
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.impl.parser.state.NGCCEventReceiver
Known Direct Subclasses
com.sun.xml.xsom.impl.parser.state.notation, com.sun.xml.xsom.impl.parser.state.occurs, com.sun.xml.xsom.impl.parser.state.particle, com.sun.xml.xsom.impl.parser.state.qname, com.sun.xml.xsom.impl.parser.state.qualification, com.sun.xml.xsom.impl.parser.state.redefine, com.sun.xml.xsom.impl.parser.state.Schema, com.sun.xml.xsom.impl.parser.state.simpleType, com.sun.xml.xsom.impl.parser.state.SimpleType_List, com.sun.xml.xsom.impl.parser.state.SimpleType_Restriction, com.sun.xml.xsom.impl.parser.state.SimpleType_Union, com.sun.xml.xsom.impl.parser.state.wildcardBody, com.sun.xml.xsom.impl.parser.state.xpath, com.sun.xml.xsom.impl.parser.state.modelGroupBody, com.sun.xml.xsom.impl.parser.state.annotation, com.sun.xml.xsom.impl.parser.state.attributeDeclBody, com.sun.xml.xsom.impl.parser.state.attributeGroupDecl, com.sun.xml.xsom.impl.parser.state.attributeUses, com.sun.xml.xsom.impl.parser.state.complexType, com.sun.xml.xsom.impl.parser.state.complexType_complexContent_body, com.sun.xml.xsom.impl.parser.state.elementDeclBody, com.sun.xml.xsom.impl.parser.state.erSet, com.sun.xml.xsom.impl.parser.state.ersSet, com.sun.xml.xsom.impl.parser.state.facet, com.sun.xml.xsom.impl.parser.state.foreignAttributes, com.sun.xml.xsom.impl.parser.state.group, com.sun.xml.xsom.impl.parser.state.identityConstraint, com.sun.xml.xsom.impl.parser.state.importDecl, com.sun.xml.xsom.impl.parser.state.includeDecl
Imports
org.xml.sax.Attributes, .SAXException

Author
Kohsuke Kawaguchi ([email protected])
Version
$Id: NGCCHandler.java,v 1.9 2002/09/29 02:55:48 okajima Exp $

Field Summary

Modifier and TypeField and Description
protected final int
_cookie

Cookie assigned by the parent.

protected final NGCCHandler
_parent

Parent NGCCHandler, if any.

protected final NGCCEventSource
_source

Event source.

Constructor Summary

AccessConstructor and Description
protected
NGCCHandler(NGCCEventSource source, NGCCHandler parent, int parentCookie)

Method Summary

Modifier and TypeMethod and Description
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
The parsing result of the child state.
result
,
int
The cookie value passed to the child object when it is created.
cookie
,
boolean
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.
needAttCheck
)

Notifies the completion of a child object.

public void
revertToParentFromEnterAttribute(Object result, int cookie, String uri, String local, String qname)

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

public void
revertToParentFromLeaveAttribute(Object result, int cookie, String uri, String local, String qname)

public void
revertToParentFromLeaveElement(Object result, int cookie, String uri, String local, String qname)

public void
revertToParentFromText(Object result, int cookie, String text)

public void
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_parentback to summary
protected final NGCCHandler _parent

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

_sourceback to summary
protected final NGCCEventSource _source

Event source.

Constructor Detail

NGCCHandlerback to summary
protected NGCCHandler(NGCCEventSource source, NGCCHandler parent, int parentCookie)

Method Detail

getRuntimeback to summary
protected abstract NGCCRuntime getRuntime()

This method will be implemented by the generated code and returns a reference to the current runtime.

onChildCompletedback to summary
protected abstract void onChildCompleted(Object result, int cookie, boolean needAttCheck) throws SAXException

Notifies the completion of a child object.

Parameters
result:Object

The parsing result of the child state.

cookie:int

The cookie value passed to the child object when it is created.

needAttCheck:boolean

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.

revertToParentFromEnterAttributeback to summary
public void revertToParentFromEnterAttribute(Object result, int cookie, String uri, String local, String qname) throws SAXException
revertToParentFromEnterElementback to summary
public void revertToParentFromEnterElement(Object result, int cookie, String uri, String local, String qname, Attributes atts) throws SAXException
revertToParentFromLeaveAttributeback to summary
public void revertToParentFromLeaveAttribute(Object result, int cookie, String uri, String local, String qname) throws SAXException
revertToParentFromLeaveElementback to summary
public void revertToParentFromLeaveElement(Object result, int cookie, String uri, String local, String qname) throws SAXException
revertToParentFromTextback to summary
public void revertToParentFromText(Object result, int cookie, String text) throws SAXException
spawnChildFromEnterAttributeback to summary
public void spawnChildFromEnterAttribute(NGCCEventReceiver child, String uri, String localname, String qname) throws SAXException
spawnChildFromEnterElementback to summary
public void spawnChildFromEnterElement(NGCCEventReceiver child, String uri, String localname, String qname, Attributes atts) throws SAXException
spawnChildFromLeaveAttributeback to summary
public void spawnChildFromLeaveAttribute(NGCCEventReceiver child, String uri, String localname, String qname) throws SAXException
spawnChildFromLeaveElementback to summary
public void spawnChildFromLeaveElement(NGCCEventReceiver child, String uri, String localname, String qname) throws SAXException
spawnChildFromTextback to summary
public void spawnChildFromText(NGCCEventReceiver child, String value) throws SAXException
unexpectedEnterAttributeback to summary
public void unexpectedEnterAttribute(String qname) throws SAXException
unexpectedEnterElementback to summary
public void unexpectedEnterElement(String qname) throws SAXException
unexpectedLeaveAttributeback to summary
public void unexpectedLeaveAttribute(String qname) throws SAXException
unexpectedLeaveElementback to summary
public void unexpectedLeaveElement(String qname) throws SAXException