@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if ("province".equals(qName)) { mList.add(mProvince); } else if ("city".equals(qName)) { mProvince.addCity(mCity); } } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); // Note: // words are optional in sentences, if there are no words just the chars have to be captured switch (qName) { case "w": tokens.add(chars.toString().trim()); chars.setLength(0); break; // TODO: The sentence should contain the id, so it can be tracked back to the // place it came from case "s": LetsmtSentence sentence = new LetsmtSentence(); if (tokens.size() > 0) { sentence.tokens = tokens.toArray(new String[tokens.size()]); tokens = new ArrayList<>(); } else { sentence.nonTokenizedText = chars.toString().trim(); } sentences.add(sentence); chars.setLength(0); } } }
/** * @param context * @throws SAXException */ protected void endFooterBlock(TableRenderContext context) throws SAXException { this.documentHandler.endElement(FOElementMapping.URI, "block", "block"); }
/** * @param context * @throws SAXException */ protected void endPageSequence(TableRenderContext context) throws SAXException { this.documentHandler.endElement(FOElementMapping.URI, "flow", "flow"); this.documentHandler.endElement(FOElementMapping.URI, "page-sequence", "page-sequence"); }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); childStack.removeLast(); }
private static @Nullable SAXException endElement(DefaultHandler handler, String uri, String localName, String qName) { try { handler.endElement(uri, localName, qName); return null; } catch (SAXException ex) { return ex; } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { // reset the flag when the managed-bean-class element ends if (localName.equals("managed-bean-class")) { this.managedBeanClassElementProcessingInProgress = false; } // let super do its job super.endElement(uri, localName, qName); }
@Override public void endElement(String uri , String localName , String qName) throws SAXException { if (qName.equals("welcome-file")) this.isTarget = false; super.endElement(uri , localName , qName); }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (VERSION_TAG.equals( localName )|| VERSION_TAG.equals( qName )){ versionTag = false; } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equalsIgnoreCase(SUBSCRIPTION)) { if (subscriptions != null && currentSubscription != null) { subscriptions.add(currentSubscription); } currentSubscription = null; } super.endElement(uri, localName, qName); } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (path != null) { if (path.equals(qName)) { path = null; } else { path = path.substring(0, path.length() - qName.length() - 1); } } }
public void endElement(String uri, String localName, String qName) throws SAXException { if (CONCRETE_ASPECT_ELEMENT.equals(qName)) { activeConcreteAspectDefinition = null; } else if (ASPECTJ_ELEMENT.equals(qName)) { inAspectJ = false; } else if (WEAVER_ELEMENT.equals(qName)) { inWeaver = false; } else if (ASPECTS_ELEMENT.equals(qName)) { inAspects = false; } super.endElement(uri, localName, qName); }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (listen) { cids.append(buffer.toString()).append(sep); buffer.delete(0, buffer.length()); listen = false; } }
/** * @see org.pivot4j.ui.table.TableRenderCallback#endTable(org.pivot4j.ui.table.TableRenderContext) */ @Override public void endTable(TableRenderContext context) { try { this.documentHandler.endElement(FOElementMapping.URI, "table", "table"); } catch (SAXException e) { throw new PivotException(e); } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (localName.equals(FEATURE_MEMBRE)) { objets.add(currentObjetKeolis); } else { remplirObjectKeolis(currentObjetKeolis, localName, contenu.toString()); } contenu.setLength(0); }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { if (this.peekParsingInfo().triggerEndElement) { // Pass through this.targetHandler.endElement(uri, localName, qName); this.xmlPath.delete(xmlPath.lastIndexOf("/"), xmlPath.length()); } // Always pop stack this.popParsingInfo(); }
@Override public void endElement(final String uri, final String localName, final String qName) throws SAXException { get().endElement(uri, localName, qName); if (!DEBUG) { pop(); } else { for (int i = 0; i < handlers.size(); i++) { System.out.print(" "); } System.out.println(" - " + pop()); } }
@Override public void endElement(String uri, String localName, String qName) throws SAXException { super.endElement(uri, localName, qName); if (current.hasParent()) { current = current.getParent(); } } @Override
@Override public void endElement(final String uri, final String localName, final String qName) throws SAXException { get().endElement(uri, localName, qName); if (!DEBUG) { pop(); } else { for (final DefaultHandler ignored : handlers) { System.out.print(" "); } System.out.println(" - " + pop()); } }
/** dispatches to output (printing) and handling (object-creation) routines */ @Override public void endElement(String arg0, String arg1, String element) throws SAXException { super.endElement(arg0, arg1, element); handleExit(element); if (verbose) { outputStop(element); } }