org.odftoolkit.simple.common.navigation.TextNavigation in Simple API.public class TextNavigation extends Navigation
| Constructor and Description |
|---|
TextNavigation(String pattern,
OdfTextDocument doc)
Deprecated.
Construct TextNavigation with matched condition and navigation scope
|
| Modifier and Type | Method and Description |
|---|---|
Selection |
getCurrentItem()
Deprecated.
get the current Selection result
|
boolean |
hasNext()
Deprecated.
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(Node element)
Deprecated.
check if the text content of element match the specified pattern string
|
getNextMatchElement, getNextMatchElementInTreepublic TextNavigation(String pattern, OdfTextDocument doc)
pattern - the matched pattern Stringdoc - the navigation scopepublic Selection getCurrentItem()
NavigationgetCurrentItem in class Navigationpublic boolean hasNext()
NavigationhasNext in class Navigationpublic boolean match(Node element)
match in class Navigationelement - navigate this elementCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.