4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator Class Reference

Node iterator which is gradually unnesting. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator:
Collaboration graph

Classes

enum  flow
 Next node sides. More...
 

Public Member Functions

void init (Document document, XPathExpression expr) throws XPathExpressionException
 
Node nextNode ()
 
boolean hasNext ()
 
String toString ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.RecursiveNodeIterator
void init (Document document, XPathExpression expr) throws XPathExpressionException
 
Node nextNode ()
 
String toString ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.NodeIterator
abstract void init (Document document, XPathExpression expr) throws XPathExpressionException
 
abstract Node nextNode ()
 

Protected Member Functions

void changeFlow ()
 
- Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.RecursiveNodeIterator
boolean isWhitespaced (String string)
 

Protected Attributes

flow currentFlow
 
Node nextNodeL
 
boolean leftEnd
 
String sessionL
 
String sessionR
 
- Protected Attributes inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.RecursiveNodeIterator
Node nextNode
 
boolean firstNode
 
long timestamp
 
- Protected Attributes inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.NodeIterator
Document document
 

Package Attributes

Node nextNodeR
 
boolean rightEnd
 

Private Member Functions

void setVisited (Node node, flow currentFlow)
 
boolean isVisited (Node node, flow currentFlow)
 

Additional Inherited Members

- Public Attributes inherited from cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.NodeIterator
NodeList nodeList
 
int currentNodeIndex
 

Detailed Description

Node iterator which is gradually unnesting.

Node iterator which is gradually unnesting

Author
Bc. Lukas Kubik

Definition at line 29 of file BidirectionallyUnNestNodeIterator.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.changeFlow ( )
protected

Changes current flow of the nodes.

Definition at line 191 of file BidirectionallyUnNestNodeIterator.java.

Here is the caller graph for this function:

boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.hasNext ( )

Is there any more node for comparing?

Returns
True if yes, false if not

Definition at line 180 of file BidirectionallyUnNestNodeIterator.java.

void cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.init ( Document  document,
XPathExpression  expr 
) throws XPathExpressionException

Overriden initialization method.

Parameters
documentdocument whose nodes will be iterated through
exprexpression according to which iterating will be provided

Definition at line 58 of file BidirectionallyUnNestNodeIterator.java.

boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.isVisited ( Node  node,
flow  currentFlow 
)
private

Getter of node's "visited" flag

Parameters
nodenode which flag is to be returned
currentFlownext node side
Returns
true if "visited" flag is set, false if isn't

Definition at line 226 of file BidirectionallyUnNestNodeIterator.java.

Here is the caller graph for this function:

Node cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.nextNode ( )

Overriden method for iterator's next node

Returns
iterator's next node

Definition at line 83 of file BidirectionallyUnNestNodeIterator.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.setVisited ( Node  node,
flow  currentFlow 
)
private

Sets node's "visited" flag

Parameters
nodenode which flag is to be set
currentFlownext node side

Definition at line 206 of file BidirectionallyUnNestNodeIterator.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.toString ( )

Overriden toString() method

Returns
string representation of class

Definition at line 253 of file BidirectionallyUnNestNodeIterator.java.

Member Data Documentation

flow cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.currentFlow
protected

Next node side.

Definition at line 38 of file BidirectionallyUnNestNodeIterator.java.

boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.leftEnd
protected

Loop end condition. It is activated when one of the loops steps out of the root node.

Definition at line 47 of file BidirectionallyUnNestNodeIterator.java.

Node cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.nextNodeL
protected

Definition at line 42 of file BidirectionallyUnNestNodeIterator.java.

Node cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.nextNodeR
package

Definition at line 42 of file BidirectionallyUnNestNodeIterator.java.

boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.rightEnd
package

Definition at line 47 of file BidirectionallyUnNestNodeIterator.java.

String cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.sessionL
protected

Definition at line 48 of file BidirectionallyUnNestNodeIterator.java.

String cz.vutbr.fit.knot.annotations.fragmentUpdater.nodeIterators.BidirectionallyUnNestNodeIterator.sessionR
protected

Definition at line 49 of file BidirectionallyUnNestNodeIterator.java.


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