Auto-generated, do not edit.
| Modifier and Type | Field and Description |
|---|---|
| private final int | _cookie
Cookie given by the parent. |
| private final NGCCHandler | _parent
Parent handler. |
| protected NGCCEventReceiver[] | _receivers
event receiverse. |
| private boolean | isJoining
Set to true when this handler is in the process of joining all branches. |
| private int | lockCount
Nest level. |
| private int | lockedReceiver
Receiver that is being locked and therefore receives all the events. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | enterAttribute(String uri, String localName, String qname)
Implements com.
|
| public void | enterElement(String uri, String localName, String qname, Attributes atts)
Implements com.
|
| protected abstract int | Returns: Thread ID of the receiver that can handle this event, or -1 if none.attribute uri uri, String attribute local name local)Returns the handler that can receive the given attribute, or null. |
| protected abstract int | Returns: Thread ID of the receiver that can handle this event, or -1 if none.element uri uri, String element local name local)Implemented by the generated code to determine the handler that can receive the given element. |
| protected abstract int | Returns: Thread ID of the receiver that can handle this event, or -1 if none.Returns the handler that can receive text events, or null. |
| public void | |
| public void | joinByEnterElement(NGCCEventReceiver
If this method is called by one of the child receivers,
the receiver object. If this method is called by itself,
null. source, String Parameter passed to the element event. uri, String Parameter passed to the element event. local, String Parameter passed to the element event. qname, Attributes Parameter passed to the element event. atts)Joins all the child receivers. |
| public void | |
| public void | |
| public void | |
| public void | leaveAttribute(String uri, String localName, String qname)
Implements com.
|
| public void | leaveElement(String uri, String localName, String qname)
Implements com.
|
| public int | replace(NGCCEventReceiver oldHandler, NGCCEventReceiver newHandler)
Implements com. Replaces an old handler with a new handler, and returns ID of the EventReceiver thread. |
| public void | sendEnterAttribute(int threadId, String uri, String local, String qname)
Implements com.
|
| public void | sendEnterElement(int threadId, String uri, String local, String qname, Attributes atts)
Implements com. Sends an enter element event to the specified EventReceiver thread. |
| public void | sendLeaveAttribute(int threadId, String uri, String local, String qname)
Implements com.
|
| public void | sendLeaveElement(int threadId, String uri, String local, String qname)
Implements com.
|
| public void | sendText(int threadId, String value)
Implements com.
|
| protected void | |
| public void |
| _cookie | back to summary |
|---|---|
| private final int _cookie Cookie given by the parent. | |
| _parent | back to summary |
|---|---|
| private final NGCCHandler _parent Parent handler. | |
| _receivers | back to summary |
|---|---|
| protected NGCCEventReceiver[] _receivers event receiverse. | |
| isJoining | back to summary |
|---|---|
| private boolean isJoining Set to true when this handler is in the process of joining all branches. | |
| lockCount | back to summary |
|---|---|
| private int lockCount Nest level. Lock will be release when the lockCount becomes 0. | |
| lockedReceiver | back to summary |
|---|---|
| private int lockedReceiver Receiver that is being locked and therefore receives all the events.
When processing inside the bar element, this receiver is
"locked" so that it can correctly receive its child foo element.
| |
| NGCCInterleaveFilter | back to summary |
|---|---|
| protected NGCCInterleaveFilter(NGCCHandler parent, int cookie) | |
| enterAttribute | back to summary |
|---|---|
| public void enterAttribute(String uri, String localName, String qname) throws SAXException Implements com.
| |
| enterElement | back to summary |
|---|---|
| public void enterElement(String uri, String localName, String qname, Attributes atts) throws SAXException Implements com.
| |
| findReceiverOfAttribute | back to summary |
|---|---|
| protected abstract int findReceiverOfAttribute(String uri, String local) Returns the handler that can receive the given attribute, or null. | |
| findReceiverOfElement | back to summary |
|---|---|
| protected abstract int findReceiverOfElement(String uri, String local) Implemented by the generated code to determine the handler that can receive the given element. | |
| findReceiverOfText | back to summary |
|---|---|
| protected abstract int findReceiverOfText() Returns the handler that can receive text events, or null.
| |
| joinByEnterAttribute | back to summary |
|---|---|
| public void joinByEnterAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException | |
| joinByEnterElement | back to summary |
|---|---|
| public void joinByEnterElement(NGCCEventReceiver source, String uri, String local, String qname, Attributes atts) throws SAXException Joins all the child receivers. This method is called by a child receiver when it sees something that it cannot handle, or by this object itself when it sees an event that it can't process. This method forces children to move to its final state, then revert to the parent.
| |
| joinByLeaveAttribute | back to summary |
|---|---|
| public void joinByLeaveAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException | |
| joinByLeaveElement | back to summary |
|---|---|
| public void joinByLeaveElement(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException | |
| joinByText | back to summary |
|---|---|
| public void joinByText(NGCCEventReceiver source, String value) throws SAXException | |
| leaveAttribute | back to summary |
|---|---|
| public void leaveAttribute(String uri, String localName, String qname) throws SAXException Implements com.
| |
| leaveElement | back to summary |
|---|---|
| public void leaveElement(String uri, String localName, String qname) throws SAXException Implements com.
| |
| replace | back to summary |
|---|---|
| public int replace(NGCCEventReceiver oldHandler, NGCCEventReceiver newHandler) Implements com. Doc from com. Replaces an old handler with a new handler, and returns ID of the EventReceiver thread.
| |
| sendEnterAttribute | back to summary |
|---|---|
| public void sendEnterAttribute(int threadId, String uri, String local, String qname) throws SAXException Implements com.
| |
| sendEnterElement | back to summary |
|---|---|
| public void sendEnterElement(int threadId, String uri, String local, String qname, Attributes atts) throws SAXException Implements com. Doc from com. Sends an enter element event to the specified EventReceiver thread.
| |
| sendLeaveAttribute | back to summary |
|---|---|
| public void sendLeaveAttribute(int threadId, String uri, String local, String qname) throws SAXException Implements com.
| |
| sendLeaveElement | back to summary |
|---|---|
| public void sendLeaveElement(int threadId, String uri, String local, String qname) throws SAXException Implements com.
| |
| sendText | back to summary |
|---|---|
| public void sendText(int threadId, String value) throws SAXException Implements com.
| |
| setHandlers | back to summary |
|---|---|
| protected void setHandlers(NGCCEventReceiver[] receivers) | |
| text | back to summary |
|---|---|
| public void text(String value) throws SAXException Implements com.
| |