summaryrefslogtreecommitdiff
path: root/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java
diff options
context:
space:
mode:
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java')
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java40
1 files changed, 18 insertions, 22 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java
index a5e8b9e6ff7e..2a1b4d22cb32 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/ParaNodeIterator.java
@@ -23,19 +23,18 @@ import org.w3c.dom.Node;
import org.openoffice.xmerge.ConverterCapabilities;
import org.openoffice.xmerge.converter.xml.OfficeConstants;
-
/**
- * <p>This is an implementation of the <code>Iterator</code> interface.
- * It will traverse the tree and find the Paragraph/Heading <code>Node</code>
- * sequences.</p>
+ * This is an implementation of the {@code Iterator} interface.
+ *
+ * <p>It will traverse the tree and find the Paragraph/Heading {@code Node}
+ * sequences.</p>
*
- * <p>Note: Once the XML Tree is parsed, then the <code>Iterator</code> will
- * be a snap shot of that tree. That means even the tree is modified later,
- * than the cached paragraph <code>Node</code> list will not be updated
- * accordingly. For this reason and for performance reasons this
- * <code>Iterator</code> does not support any operation methods such as
- * insert, remove or replace. The main purpose of this
- * <code>Iterator</code> is to be used with difference, not with merge.</p>
+ * <p>Note: Once the XML Tree is parsed, then the {@code Iterator} will be a
+ * snap shot of that tree. That means even the tree is modified later, than the
+ * cached paragraph {@code Node} list will not be updated accordingly. For this
+ * reason and for performance reasons this {@code Iterator} does not support any
+ * operation methods such as insert, remove or replace. The main purpose of this
+ * {@code Iterator} is to be used with difference, not with merge.</p>
*/
public final class ParaNodeIterator extends NodeIterator {
@@ -44,33 +43,30 @@ public final class ParaNodeIterator extends NodeIterator {
private static final String SUPPORTED_TAG2 = OfficeConstants.TAG_HEADING;
/**
- * Standard constructor.
+ * Standard constructor.
*
- * @param cc The <code>ConverterCapabilities</code>.
- * @param node The initial root <code>Node</code>.
+ * @param cc The {@code ConverterCapabilities}.
+ * @param node The initial root {@code Node}.
*/
public ParaNodeIterator(ConverterCapabilities cc, Node node) {
// not using convertercapabilities unless it's needed in future.
super(cc, node);
}
-
/**
- * Overwrite the parent <code>nodeSupported</code> method.
+ * Overwrite the parent <code>nodeSupported</code> method.
*
- * @param node <code>Node</code> to check.
+ * @param node {@code Node} to check.
*
- * @return true if the <code>Node</code> is supported, false
- * otherwise.
+ * @return {@code true} if the {@code Node} is supported, {@code false}
+ * otherwise.
*/
@Override
protected boolean nodeSupported(Node node) {
-
// can use an array later to check all possible tags for
// future expansion
return node.getNodeType() == Node.ELEMENT_NODE &&
(node.getNodeName().equals(SUPPORTED_TAG1) ||
node.getNodeName().equals(SUPPORTED_TAG2));
}
-}
-
+} \ No newline at end of file