|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.incubator.search.Navigation
org.odftoolkit.odfdom.incubator.search.TextNavigation
public class TextNavigation
A derived Navigation class used for navigate the text content it is used to search the document and find the matched text and would return TextSelection instance
| Constructor Summary | |
|---|---|
TextNavigation(java.lang.String pattern,
OdfTextDocument doc)
Construct TextNavigation with matched condition and navigation scope |
|
| Method Summary | |
|---|---|
Selection |
getCurrentItem()
get the current Selection result |
boolean |
hasNext()
Return true if document still has more matched Selection when traversing the document(In other words return true if getNextMatchElement() would return an element instance rather than return null) |
boolean |
match(org.w3c.dom.Node element)
check if the text content of element match the specified pattern string |
| Methods inherited from class org.odftoolkit.odfdom.incubator.search.Navigation |
|---|
getNextMatchElement, getNextMatchElementInTree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextNavigation(java.lang.String pattern,
OdfTextDocument doc)
pattern - the matched pattern Stringdoc - the navigation scope| Method Detail |
|---|
public Selection getCurrentItem()
Navigation
getCurrentItem in class Navigationpublic boolean hasNext()
Navigation
hasNext in class Navigationpublic boolean match(org.w3c.dom.Node element)
match in class Navigationelement - navigate this element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||