public abstract class NGCCInterleaveFilter extends Object implements NGCCEventSource, NGCCEventReceiver
Auto-generated, do not edit.
| Modifier and Type | Field and Description |
|---|---|
protected NGCCEventReceiver[] |
_receivers
event receiverse.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NGCCInterleaveFilter(NGCCHandler parent,
int cookie) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterAttribute(String uri,
String localName,
String qname) |
void |
enterElement(String uri,
String localName,
String qname,
Attributes atts) |
protected abstract int |
findReceiverOfAttribute(String uri,
String local)
Returns the handler that can receive the given attribute, or null.
|
protected abstract int |
findReceiverOfElement(String uri,
String local)
Implemented by the generated code to determine the handler
that can receive the given element.
|
protected abstract int |
findReceiverOfText()
Returns the handler that can receive text events, or null.
|
void |
joinByEnterAttribute(NGCCEventReceiver source,
String uri,
String local,
String qname) |
void |
joinByEnterElement(NGCCEventReceiver source,
String uri,
String local,
String qname,
Attributes atts)
Joins all the child receivers.
|
void |
joinByLeaveAttribute(NGCCEventReceiver source,
String uri,
String local,
String qname) |
void |
joinByLeaveElement(NGCCEventReceiver source,
String uri,
String local,
String qname) |
void |
joinByText(NGCCEventReceiver source,
String value) |
void |
leaveAttribute(String uri,
String localName,
String qname) |
void |
leaveElement(String uri,
String localName,
String qname) |
int |
replace(NGCCEventReceiver oldHandler,
NGCCEventReceiver newHandler)
Replaces an old handler with a new handler, and returns
ID of the EventReceiver thread.
|
void |
sendEnterAttribute(int threadId,
String uri,
String local,
String qname) |
void |
sendEnterElement(int threadId,
String uri,
String local,
String qname,
Attributes atts)
Sends an enter element event to the specified EventReceiver thread.
|
void |
sendLeaveAttribute(int threadId,
String uri,
String local,
String qname) |
void |
sendLeaveElement(int threadId,
String uri,
String local,
String qname) |
void |
sendText(int threadId,
String value) |
protected void |
setHandlers(NGCCEventReceiver[] receivers) |
void |
text(String value) |
protected NGCCEventReceiver[] _receivers
protected NGCCInterleaveFilter(NGCCHandler parent, int cookie)
protected void setHandlers(NGCCEventReceiver[] receivers)
public int replace(NGCCEventReceiver oldHandler, NGCCEventReceiver newHandler)
NGCCEventSourcereplace in interface NGCCEventSourcepublic void enterElement(String uri, String localName, String qname, Attributes atts) throws SAXException
enterElement in interface NGCCEventReceiverSAXExceptionpublic void leaveElement(String uri, String localName, String qname) throws SAXException
leaveElement in interface NGCCEventReceiverSAXExceptionpublic void enterAttribute(String uri, String localName, String qname) throws SAXException
enterAttribute in interface NGCCEventReceiverSAXExceptionpublic void leaveAttribute(String uri, String localName, String qname) throws SAXException
leaveAttribute in interface NGCCEventReceiverSAXExceptionpublic void text(String value) throws SAXException
text in interface NGCCEventReceiverSAXExceptionprotected abstract int findReceiverOfElement(String uri, String local)
protected abstract int findReceiverOfAttribute(String uri, String local)
protected abstract int findReceiverOfText()
public void joinByEnterElement(NGCCEventReceiver source, String uri, String local, String qname, Attributes atts) throws SAXException
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.
source - If this method is called by one of the child receivers,
the receiver object. If this method is called by itself,
null.SAXExceptionpublic void joinByLeaveElement(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXExceptionpublic void joinByEnterAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXExceptionpublic void joinByLeaveAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXExceptionpublic void joinByText(NGCCEventReceiver source, String value) throws SAXException
SAXExceptionpublic void sendEnterAttribute(int threadId,
String uri,
String local,
String qname)
throws SAXException
sendEnterAttribute in interface NGCCEventSourceSAXExceptionpublic void sendEnterElement(int threadId,
String uri,
String local,
String qname,
Attributes atts)
throws SAXException
NGCCEventSourcesendEnterElement in interface NGCCEventSourceSAXExceptionpublic void sendLeaveAttribute(int threadId,
String uri,
String local,
String qname)
throws SAXException
sendLeaveAttribute in interface NGCCEventSourceSAXExceptionpublic void sendLeaveElement(int threadId,
String uri,
String local,
String qname)
throws SAXException
sendLeaveElement in interface NGCCEventSourceSAXExceptionpublic void sendText(int threadId,
String value)
throws SAXException
sendText in interface NGCCEventSourceSAXExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.