Esempio n. 1
0
 /** 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);
     }
   }
 }
Esempio n. 2
0
 /**
  * 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();
   }
 }
Esempio n. 3
0
 /**
  * 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();
   }
 }
Esempio n. 4
0
 /**
  * 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);
   }
 }
Esempio n. 5
0
 /**
  * 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);
   }
 }
Esempio n. 6
0
 /**
  * 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);
   }
 }