/** Notify a failure. */ public void notifyFail() { for (final SubtreeListener<? super E> listener : mListeners) { try { listener.fail(); } catch (final DocumentException e) { LOGWRAPPER.error(e.getMessage(), e); } } }
/** * Notify the end of a fragment. * * @throws DocumentException if anything went wrong */ public void notifyEndFragment() throws DocumentException { for (SubtreeListener<? super E> listener : mListeners) { listener.endFragment(); } }
/** * Notify the beginning of a document. * * @throws DocumentException if anything went wrong */ public void notifyBeginDocument() throws DocumentException { for (SubtreeListener<? super E> listener : mListeners) { listener.startDocument(); } }
/** * Notify a processing instruction node. * * @param node the processing instruction * @throws DocumentException if anything went wrong */ public void notifyProcessingInstruction(final E node) throws DocumentException { for (SubtreeListener<? super E> listener : mListeners) { listener.processingInstruction(node); } }
/** * Notify a comment node. * * @param node comment node * @throws DocumentException if anything went wrong */ public void notifyComment(final E node) throws DocumentException { for (SubtreeListener<? super E> listener : mListeners) { listener.comment(node); } }
/** * Notify an attribute node. * * @param node attribute node * @throws DocumentException if anything went wrong */ public void notifyAttribute(final E node) throws DocumentException { for (SubtreeListener<? super E> listener : mListeners) { listener.attribute(node); } }