19 package org.openoffice.xmerge.merger.diff;
21 import org.w3c.dom.Node;
25 import java.util.ArrayList;
26 import java.util.List;
57 nodeList_ =
new ArrayList<TextNodeEntry>();
83 StringBuffer strBuf =
new StringBuffer();
86 Node currentNode = (Node)(textNodes.
start());
89 currentNode = (Node)(textNodes.
next())) {
93 String nodeName = currentNode.getNodeName();
96 if (currentNode.getNodeType() == Node.TEXT_NODE) {
97 textValue = currentNode.getNodeValue();
104 if (textValue != null) {
105 strBuf.append(textValue);
110 charArray = strBuf.toString().toCharArray();
122 currentPosition + textLen - 1, node);
123 currentPosition = currentPosition + textLen;
125 nodeList_.add(nodeEntry);
final TextNodeIterator textNodes
void addNewNodeEntry(int textLen, Node node)
Adds a new.
String TAG_SPACE
Element tag for text:s.
This interface contains constants for StarOffice XML tags, attributes (StarCalc cell types...
final List< TextNodeEntry > nodeList_
exports com.sun.star. java
char[] getCharArray()
Returns the character array representation of the text.
CharacterParser(Node node)
Standard constructor.
String TAG_TAB_STOP
Element tag for text:tab-stop.
Object next()
Move to next element in the sequence.
A small class to hold the start/end character position and the.
This is an implementation of the.
This is a parser to return a character array for difference purpose.
Provides interfaces for converting between two.
Object start()
Move to the beginning of the sequence.
List< TextNodeEntry > getNodeList()
Returns the.