public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { _receivers[threadId].leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { currentHandler.leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { _receivers[threadId].leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { _receivers[threadId].leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { currentHandler.leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { _receivers[threadId].leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { _receivers[threadId].leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { currentHandler.leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { currentHandler.leaveElement(uri,local,qname); }
public void sendLeaveElement( int threadId, String uri, String local, String qname) throws SAXException { currentHandler.leaveElement(uri,local,qname); }
public void leaveElement(String uri, String localName, String qname) throws SAXException { if(isJoining) return; // ignore any token if we are joining. See joinByXXXX. if( lockCount-- == 0 ) joinByLeaveElement(null,uri,localName,qname); else _receivers[lockedReceiver].leaveElement(uri,localName,qname); } public void enterAttribute(String uri, String localName, String qname) throws SAXException {
public void leaveElement(String uri, String localName, String qname) throws SAXException { if(isJoining) return; // ignore any token if we are joining. See joinByXXXX. if( lockCount-- == 0 ) joinByLeaveElement(null,uri,localName,qname); else _receivers[lockedReceiver].leaveElement(uri,localName,qname); } public void enterAttribute(String uri, String localName, String qname) throws SAXException {
public void leaveElement(String uri, String localName, String qname) throws SAXException { if(isJoining) return; // ignore any token if we are joining. See joinByXXXX. if( lockCount-- == 0 ) joinByLeaveElement(null,uri,localName,qname); else _receivers[lockedReceiver].leaveElement(uri,localName,qname); } public void enterAttribute(String uri, String localName, String qname) throws SAXException {
public void leaveElement(String uri, String localName, String qname) throws SAXException { if(isJoining) return; // ignore any token if we are joining. See joinByXXXX. if( lockCount-- == 0 ) joinByLeaveElement(null,uri,localName,qname); else _receivers[lockedReceiver].leaveElement(uri,localName,qname); } public void enterAttribute(String uri, String localName, String qname) throws SAXException {
public void leaveElement(String uri, String localName, String qname) throws SAXException { if(isJoining) return; // ignore any token if we are joining. See joinByXXXX. if( lockCount-- == 0 ) joinByLeaveElement(null,uri,localName,qname); else _receivers[lockedReceiver].leaveElement(uri,localName,qname); } public void enterAttribute(String uri, String localName, String qname) throws SAXException {
public void endDocument() throws SAXException { // consume the special "end document" token so that all the handlers // currently at the stack will revert to their respective parents. // // this is necessary to handle a grammar like // <start><ref name="X"/></start> // <define name="X"> // <element name="root"><empty/></element> // </define> // // With this grammar, when the endElement event is consumed, two handlers // are on the stack (because a child object won't revert to its parent // unless it sees a next event.) // pass around an "impossible" token. currentHandler.leaveElement(IMPOSSIBLE,IMPOSSIBLE,IMPOSSIBLE); reset(); } public void startDocument() {}
public void endElement(String uri, String localname, String qname) throws SAXException { if(redirect!=null) { redirect.endElement(uri,localname,qname); redirectionDepth--; if(redirectionDepth!=0) return; // finished redirection. for( int i=0; i<namespaces.size(); i+=2 ) redirect.endPrefixMapping((String)namespaces.get(i)); redirect.endDocument(); redirect = null; // then process this element normally } processPendingText(false); currentHandler.leaveElement(uri, localname, qname); // System.out.println("endElement:"+localname); }
public void joinByLeaveElement( NGCCEventReceiver source, String uri, String local, String qname ) throws SAXException { if(isJoining) return; // we are already in the process of joining. ignore. isJoining = true; // send special token to the rest of the branches. // these branches don't understand this token, so they will // try to move to a final state and send the token back to us, // which this object will ignore (because isJoining==true) // Otherwise branches will find an error. for( int i=0; i<_receivers.length; i++ ) if( _receivers[i]!=source ) _receivers[i].leaveElement(uri,local,qname); // revert to the parent _parent._source.replace(this,_parent); _parent.onChildCompleted(null,_cookie,true); // send this event to the parent _parent.leaveElement(uri,local,qname); }
public void joinByLeaveElement( NGCCEventReceiver source, String uri, String local, String qname ) throws SAXException { if(isJoining) return; // we are already in the process of joining. ignore. isJoining = true; // send special token to the rest of the branches. // these branches don't understand this token, so they will // try to move to a final state and send the token back to us, // which this object will ignore (because isJoining==true) // Otherwise branches will find an error. for( int i=0; i<_receivers.length; i++ ) if( _receivers[i]!=source ) _receivers[i].leaveElement(uri,local,qname); // revert to the parent _parent._source.replace(this,_parent); _parent.onChildCompleted(null,_cookie,true); // send this event to the parent _parent.leaveElement(uri,local,qname); }
public void joinByLeaveElement( NGCCEventReceiver source, String uri, String local, String qname ) throws SAXException { if(isJoining) return; // we are already in the process of joining. ignore. isJoining = true; // send special token to the rest of the branches. // these branches don't understand this token, so they will // try to move to a final state and send the token back to us, // which this object will ignore (because isJoining==true) // Otherwise branches will find an error. for( int i=0; i<_receivers.length; i++ ) if( _receivers[i]!=source ) _receivers[i].leaveElement(uri,local,qname); // revert to the parent _parent._source.replace(this,_parent); _parent.onChildCompleted(null,_cookie,true); // send this event to the parent _parent.leaveElement(uri,local,qname); }