|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.simple.common.navigation.Navigation
org.odftoolkit.simple.common.navigation.TextNavigation
public class TextNavigation
A derived Navigation
class used to navigate the text content,
which can search the document and find the matched text and return
TextSelection
instance.
Constructor Summary | |
---|---|
TextNavigation(String pattern,
Document doc)
Construct TextNavigation with matched condition and
navigation scope. |
|
TextNavigation(String pattern,
OdfElement element)
Construct TextNavigation with matched condition and
navigation scope. |
Method Summary | |
---|---|
boolean |
hasNext()
Check if has next TextSelection with satisfied content
pattern. |
boolean |
match(Node element)
Check if the text content of element match the specified matched condition, which is stated when the TextNavigation created. |
Selection |
nextSelection()
Get next TextSelection . |
Methods inherited from class org.odftoolkit.simple.common.navigation.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(String pattern, Document doc)
TextNavigation
with matched condition and
navigation scope.
pattern
- the matched pattern Stringdoc
- the navigation scopepublic TextNavigation(String pattern, OdfElement element)
TextNavigation
with matched condition and
navigation scope.
pattern
- the matched pattern Stringelement
- the ODF element whose content will be navigated.Method Detail |
---|
public boolean hasNext()
TextSelection
with satisfied content
pattern.
hasNext
in class Navigation
Navigation.hasNext()
public Selection nextSelection()
TextSelection
.
nextSelection
in class Navigation
Selection
resultNavigation.nextSelection()
public boolean match(Node element)
TextNavigation
created.
match
in class Navigation
element
- navigate this element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |