Ejemplo n.º 1
0
 /**
  * @param transaction
  * @param text
  * @param path
  */
 public void characters(Txn transaction, TextImpl text, NodePath path) {
   if (config == null) {
     engine.storeText(text, NativeTextEngine.TOKENIZE, config, mode == REMOVE_ALL_NODES);
   } else if (config.match(path)) {
     int tokenize =
         config.preserveContent(path)
             ? NativeTextEngine.DO_NOT_TOKENIZE
             : NativeTextEngine.TOKENIZE;
     engine.storeText(text, tokenize, config, mode == REMOVE_ALL_NODES);
   }
   if (!contentStack.isEmpty()) {
     for (int i = 0; i < contentStack.size(); i++) {
       ElementContent next = (ElementContent) contentStack.get(i);
       next.append(text.getXMLString());
     }
   }
   super.characters(transaction, text, path);
 }