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:
[legend]
Collaboration diagram for org.openoffice.xmerge.merger.diff.ParaNodeIterator:
[legend]

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.

Iterator

interface.

It will traverse the tree and find the Paragraph/Heading

sequences.

Note: Once the XML Tree is parsed, then the

Iterator

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

Iterator

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

Iterator

is to be used with difference, not with merge.

Definition at line 39 of file ParaNodeIterator.java.

Constructor & Destructor Documentation

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

Standard constructor.

Parameters
ccThe
ConverterCapabilities
.
nodeThe initial root .

Definition at line 47 of file ParaNodeIterator.java.

Member Function Documentation

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

Overwrite the parent nodeSupported method.

Parameters
node

Definition at line 61 of file ParaNodeIterator.java.

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: