@Override public boolean hasChildNodes() { return documentFragment.hasChildNodes(); }
public boolean hasChildNodes() { return delegate.hasChildNodes(); }
/** * The function is to judge if the pushed content type march the type of content being pushed/replaced * @param targetClassAttribute the class attribute of target element which is being pushed * @param content pushedContent * @return boolean: if type match, return true, else return false */ private boolean isPushedTypeMatch(final DitaClass targetClassAttribute, final DocumentFragment content) { DitaClass clazz = null; if (content.hasChildNodes()) { final NodeList nodeList = content.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { final Node node = nodeList.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { final Element elem = (Element) node; clazz = new DitaClass(elem.getAttribute(ATTRIBUTE_NAME_CLASS)); break; // get type of the target element } } } return targetClassAttribute.matches(clazz); }
while (osFragment.hasChildNodes()) { Node osKid = osFragment.removeChild(osFragment.getFirstChild()); osKid = next.getOwnerDocument().adoptNode(osKid);
while (osFragment.hasChildNodes()) { Node osKid = osFragment.removeChild(osFragment.getFirstChild()); osKid = next.getOwnerDocument().adoptNode(osKid);
while (osFragment.hasChildNodes()) { Node osKid = osFragment.removeChild(osFragment.getFirstChild()); osKid = next.getOwnerDocument().adoptNode(osKid);
Node html = null; LinkedList<Node> beforeHtml = Lists.newLinkedList(); while (fragment.hasChildNodes()) { Node child = fragment.removeChild(fragment.getFirstChild()); if (child.getNodeType() == Node.ELEMENT_NODE &&
Node html = null; LinkedList<Node> beforeHtml = Lists.newLinkedList(); while (fragment.hasChildNodes()) { Node child = fragment.removeChild(fragment.getFirstChild()); if (child.getNodeType() == Node.ELEMENT_NODE &&
if (content.hasChildNodes()) { final NodeList nodeList = content.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) {
Node html = null; LinkedList<Node> beforeHtml = Lists.newLinkedList(); while (fragment.hasChildNodes()) { Node child = fragment.removeChild(fragment.getFirstChild()); if (child.getNodeType() == Node.ELEMENT_NODE &&
frag.appendChild(node); if (created && !frag.hasChildNodes()) { return null; } else {