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

This is an implementations of the. More...

Inheritance diagram for org.openoffice.xmerge.merger.diff.CellNodeIterator:
[legend]
Collaboration diagram for org.openoffice.xmerge.merger.diff.CellNodeIterator:
[legend]

Public Member Functions

 CellNodeIterator (ConverterCapabilities cc, Node node)
 The 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. More...
 
boolean childrenEqual (Node node1, Node node2)
 
- 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...
 

Static Private Attributes

static final String SUPPORTED_TAG1 = OfficeConstants.TAG_TABLE_CELL
 

Detailed Description

This is an implementations of the.

Iterator

interface.

It will traverse the tree and find cell

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 CellNodeIterator.java.

Constructor & Destructor Documentation

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

The standard constructor.

Parameters
ccThe
ConverterCapabilities
.
nodeThe initial root .

Definition at line 50 of file CellNodeIterator.java.

Member Function Documentation

boolean org.openoffice.xmerge.merger.diff.CellNodeIterator.childrenEqual ( Node  node1,
Node  node2 
)
inlineprotected
boolean org.openoffice.xmerge.merger.diff.CellNodeIterator.nodeSupported ( Node  node)
inlineprotected

Overwrite the parent.

method.

Only cell

objects are supported.

Parameters
nodeThe to check.
Returns
true
if the is supported,
false
otherwise.

Definition at line 65 of file CellNodeIterator.java.

Member Data Documentation

final String org.openoffice.xmerge.merger.diff.CellNodeIterator.SUPPORTED_TAG1 = OfficeConstants.TAG_TABLE_CELL
staticprivate

Definition at line 42 of file CellNodeIterator.java.


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