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)
NGCCEventSource
replace
in interface NGCCEventSource
public void enterElement(String uri, String localName, String qname, Attributes atts) throws SAXException
enterElement
in interface NGCCEventReceiver
SAXException
public void leaveElement(String uri, String localName, String qname) throws SAXException
leaveElement
in interface NGCCEventReceiver
SAXException
public void enterAttribute(String uri, String localName, String qname) throws SAXException
enterAttribute
in interface NGCCEventReceiver
SAXException
public void leaveAttribute(String uri, String localName, String qname) throws SAXException
leaveAttribute
in interface NGCCEventReceiver
SAXException
public void text(String value) throws SAXException
text
in interface NGCCEventReceiver
SAXException
protected 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.SAXException
public void joinByLeaveElement(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXException
public void joinByEnterAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXException
public void joinByLeaveAttribute(NGCCEventReceiver source, String uri, String local, String qname) throws SAXException
SAXException
public void joinByText(NGCCEventReceiver source, String value) throws SAXException
SAXException
public void sendEnterAttribute(int threadId, String uri, String local, String qname) throws SAXException
sendEnterAttribute
in interface NGCCEventSource
SAXException
public void sendEnterElement(int threadId, String uri, String local, String qname, Attributes atts) throws SAXException
NGCCEventSource
sendEnterElement
in interface NGCCEventSource
SAXException
public void sendLeaveAttribute(int threadId, String uri, String local, String qname) throws SAXException
sendLeaveAttribute
in interface NGCCEventSource
SAXException
public void sendLeaveElement(int threadId, String uri, String local, String qname) throws SAXException
sendLeaveElement
in interface NGCCEventSource
SAXException
public void sendText(int threadId, String value) throws SAXException
sendText
in interface NGCCEventSource
SAXException
Copyright © 2020 JBoss by Red Hat. All rights reserved.