@Override protected void detachFromParent(Element element) throws SAXException { try { element.detach(); } catch (XMLException e) { fatal(e); } }
@Override protected void detachFromParent(Element element) throws SAXException { try { element.detach(); } catch (XMLException e) { fatal(e); } }
@Override protected boolean hasChildren(Element element) throws SAXException { try { return element.getChildCount() != 0; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
@Override protected boolean hasChildren(Element element) throws SAXException { try { return element.getChildCount() != 0; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
@Override protected void detachFromParent(Element element) throws SAXException { try { element.detach(); } catch (XMLException e) { fatal(e); } }
@Override protected boolean hasChildren(Element element) throws SAXException { try { return element.getChildCount() != 0; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendElement(Element child, Element newParent) throws SAXException { try { child.detach(); newParent.appendChild(child); } catch (XMLException e) { fatal(e); } }
@Override protected void appendElement(Element child, Element newParent) throws SAXException { try { child.detach(); newParent.appendChild(child); } catch (XMLException e) { fatal(e); } }
@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendElement(Element child, Element newParent) throws SAXException { try { child.detach(); newParent.appendChild(child); } catch (XMLException e) { fatal(e); } }
@Override protected void appendChildrenToNewParent(Element oldParent, Element newParent) throws SAXException { try { Nodes children = oldParent.removeChildren(); for (int i = 0; i < children.size(); i++) { newParent.appendChild(children.get(i)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendChildrenToNewParent(Element oldParent, Element newParent) throws SAXException { try { Nodes children = oldParent.removeChildren(); for (int i = 0; i < children.size(); i++) { newParent.appendChild(children.get(i)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendChildrenToNewParent(Element oldParent, Element newParent) throws SAXException { try { Nodes children = oldParent.removeChildren(); for (int i = 0; i < children.size(); i++) { newParent.appendChild(children.get(i)); } } catch (XMLException e) { fatal(e); } }
@Override protected void insertFosterParentedChild(Element child, Element table, Element stackParent) throws SAXException { try { Node parent = table.getParent(); if (parent != null) { // always an element if not null ((ParentNode)parent).insertChild(child, indexOfTable(table, stackParent)); cachedTableIndex++; } else { stackParent.appendChild(child); } } catch (XMLException e) { fatal(e); } }
@Override protected void insertFosterParentedChild(Element child, Element table, Element stackParent) throws SAXException { try { Node parent = table.getParent(); if (parent != null) { // always an element if not null ((ParentNode)parent).insertChild(child, indexOfTable(table, stackParent)); cachedTableIndex++; } else { stackParent.appendChild(child); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }