LibreOffice Module xmerge (master)  1
Public Member Functions | Protected Member Functions | List of all members
org.openoffice.xmerge.merger.diff.ParaNodeIterator Class Reference

This is an implementation of the. More...

Inheritance diagram for org.openoffice.xmerge.merger.diff.ParaNodeIterator:
Collaboration diagram for org.openoffice.xmerge.merger.diff.ParaNodeIterator:

Public Member Functions

 ParaNodeIterator (ConverterCapabilities cc, Node node)
 Standard constructor. More...
- Public Member Functions inherited from org.openoffice.xmerge.merger.diff.NodeIterator
 NodeIterator (ConverterCapabilities cc, Node node)
 Standard constructor. More...
Object next ()
 Move to next element in the sequence. More...
Object previous ()
Object start ()
 Move to the beginning of the sequence. More...
Object end ()
Object currentElement ()
 Return the current element. More...
int elementCount ()
 Return the total element count in the sequence. More...
boolean equivalent (Object obj1, Object obj2)
 A method to allow the difference algorithm to test whether the. More...
void refresh ()
 A method to force the. More...

Protected Member Functions

boolean nodeSupported (Node node)
 Overwrite the parent nodeSupported method. More...
- Protected Member Functions inherited from org.openoffice.xmerge.merger.diff.NodeIterator
boolean compareNode (Node node1, Node node2)
 Used to compare two. More...
boolean childrenEqual (Node node1, Node node2)
 Compare the children of two. More...
abstract boolean nodeSupported (Node node)
 Check whether a. More...

Detailed Description

This is an implementation of the.



It will traverse the tree and find the Paragraph/Heading


Note: Once the XML Tree is parsed, then the


will be a snapshot of that tree. That means even the tree is modified later, then the cached paragraph

list will not be updated accordingly. For this reason and for performance reasons this


does not support any operation methods such as insert, remove or replace. The main purpose of this


is to be used with difference, not with merge.

Definition at line 39 of file

Constructor & Destructor Documentation

org.openoffice.xmerge.merger.diff.ParaNodeIterator.ParaNodeIterator ( ConverterCapabilities  cc,
Node  node 

Standard constructor.

nodeThe initial root .

Definition at line 47 of file

Member Function Documentation

boolean org.openoffice.xmerge.merger.diff.ParaNodeIterator.nodeSupported ( Node  node)

Overwrite the parent nodeSupported method.


Definition at line 61 of file

References String, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_HEADING, and org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_PARAGRAPH.

The documentation for this class was generated from the following file: