Ejemplo 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);
     }
   }
 }
Ejemplo 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();
   }
 }
Ejemplo 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();
   }
 }
Ejemplo 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);
   }
 }
Ejemplo 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);
   }
 }
Ejemplo 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);
   }
 }