4A Server -
2.0
|
Class for matcher consisting of comparator and node iterator. More...
Public Member Functions | |
NodeIterator | getNodeIterator () |
Comparator | getComparator () |
void | setNodeIterator (NodeIterator nodeIterator) |
void | setComparator (Comparator comparator) |
Matcher (NodeIterator nodeIterator, Comparator comparator) | |
UpdatableFragment | match (Document document, UpdatableFragment queryFragment) throws XPathExpressionException |
ArrayList< UpdatableFragment > | matchAll (Document document, UpdatableFragment queryFragment) throws XPathExpressionException |
void | InitIterator (Document document, UpdatableFragment queryFragment) throws XPathExpressionException |
UpdatableFragment | matchInNextNode (UpdatableFragment queryFragment) throws XPathExpressionException |
boolean | hasBidirectionalIterator () |
boolean | canMatchNext () |
String | toString () |
Public Attributes | |
NodeIterator | nodeIterator |
Comparator | comparator |
Protected Attributes | |
boolean | iteratorInitialized = false |
Class for matcher consisting of comparator and node iterator.
Class for matcher consisting of comparator and node iterator
Definition at line 32 of file Matcher.java.
cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.Matcher | ( | NodeIterator | nodeIterator, |
Comparator | comparator | ||
) |
Constructor
nodeIterator | node iterator to be used |
comparator | string comparator to be used |
Definition at line 80 of file Matcher.java.
boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.canMatchNext | ( | ) |
Can we match things in another node? Can be used only with the bidirectional node iterator!!! Otherwise it always returns false...
Definition at line 201 of file Matcher.java.
Comparator cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.getComparator | ( | ) |
Getter for comparator used in matcher
Definition at line 52 of file Matcher.java.
NodeIterator cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.getNodeIterator | ( | ) |
Getter for node iterator used in matcher
Definition at line 43 of file Matcher.java.
boolean cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.hasBidirectionalIterator | ( | ) |
Is there bidirectional iterator initialized?
Definition at line 188 of file Matcher.java.
void cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.InitIterator | ( | Document | document, |
UpdatableFragment | queryFragment | ||
) | throws XPathExpressionException |
Inits the Iterator for incremental node matching
document | Document in which given fragment should be matched |
queryFragment | fragment to be matched |
XPathExpressionException |
Definition at line 152 of file Matcher.java.
UpdatableFragment cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.match | ( | Document | document, |
UpdatableFragment | queryFragment | ||
) | throws XPathExpressionException |
Method for matching fragment in document
document | Document in which given fragment should be matched |
queryFragment | fragment to be matched |
Definition at line 92 of file Matcher.java.
ArrayList<UpdatableFragment> cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.matchAll | ( | Document | document, |
UpdatableFragment | queryFragment | ||
) | throws XPathExpressionException |
Method for matching fragments in document
document | Document in which given fragment should be matched |
queryFragment | fragment to be matched |
Definition at line 121 of file Matcher.java.
UpdatableFragment cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.matchInNextNode | ( | UpdatableFragment | queryFragment | ) | throws XPathExpressionException |
Method for matching fragment in next node of the document
queryFragment | fragment to be matched |
Definition at line 163 of file Matcher.java.
void cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.setComparator | ( | Comparator | comparator | ) |
Setter for comparator used in matcher
comparator | comparator used in matcher |
Definition at line 70 of file Matcher.java.
void cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.setNodeIterator | ( | NodeIterator | nodeIterator | ) |
Setter for node iterator used in matcher
nodeIterator | node iterator used in matcher |
Definition at line 61 of file Matcher.java.
String cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.toString | ( | ) |
Overriden toString() method
Definition at line 215 of file Matcher.java.
Comparator cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.comparator |
Definition at line 35 of file Matcher.java.
|
protected |
Definition at line 36 of file Matcher.java.
NodeIterator cz.vutbr.fit.knot.annotations.fragmentUpdater.Matcher.nodeIterator |
Definition at line 34 of file Matcher.java.