public abstract class Navigation extends Object
| Constructor and Description |
|---|
Navigation() |
| Modifier and Type | Method and Description |
|---|---|
abstract Selection |
getCurrentItem()
get the current Selection result
|
protected Node |
getNextMatchElement(Node startpoint)
get the next matched element in a whole dom tree
|
protected Node |
getNextMatchElementInTree(Node startpoint,
Node root)
get the next matched element in a sub tree
|
abstract 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)
|
abstract boolean |
match(Node element)
check if the element match the user defined condition
|
public abstract boolean hasNext()
public abstract Selection getCurrentItem()
public abstract boolean match(Node element)
element - navigate this elementprotected Node getNextMatchElement(Node startpoint)
startpoint - navigate from the startpointCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.