|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.xsom.impl.parser.state.NGCCInterleaveFilter
public abstract class NGCCInterleaveFilter
Dispatches incoming events into sub handlers appropriately so that the interleaving semantics will be correctly realized.
| Field Summary | |
|---|---|
protected NGCCEventReceiver[] |
_receivers
event receiverse. |
| Constructor Summary | |
|---|---|
protected |
NGCCInterleaveFilter(NGCCHandler parent,
int cookie)
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NGCCEventReceiver[] _receivers
| Constructor Detail |
|---|
protected NGCCInterleaveFilter(NGCCHandler parent,
int cookie)
| Method Detail |
|---|
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 NGCCEventReceiverSAXException
public void leaveElement(String uri,
String localName,
String qname)
throws SAXException
leaveElement in interface NGCCEventReceiverSAXException
public void enterAttribute(String uri,
String localName,
String qname)
throws SAXException
enterAttribute in interface NGCCEventReceiverSAXException
public void leaveAttribute(String uri,
String localName,
String qname)
throws SAXException
leaveAttribute in interface NGCCEventReceiverSAXException
public void text(String value)
throws SAXException
text in interface NGCCEventReceiverSAXException
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 NGCCEventSourceSAXException
public void sendEnterElement(int threadId,
String uri,
String local,
String qname,
Attributes atts)
throws SAXException
NGCCEventSource
sendEnterElement in interface NGCCEventSourceSAXException
public void sendLeaveAttribute(int threadId,
String uri,
String local,
String qname)
throws SAXException
sendLeaveAttribute in interface NGCCEventSourceSAXException
public void sendLeaveElement(int threadId,
String uri,
String local,
String qname)
throws SAXException
sendLeaveElement in interface NGCCEventSourceSAXException
public void sendText(int threadId,
String value)
throws SAXException
sendText in interface NGCCEventSourceSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||