public interface UpDown<T extends UpDown<T>>
The UpDown interface groups rules that match elements under or above the current element matched by the parser.
| Modifier and Type | Method and Description |
|---|---|
T |
downTo(String elementName)
Establishes that the parser should look ‘down’ the page for the given element.
|
T |
downToFooter(String elementName)
Establishes that the parser should look ‘down’ the page for the given element that is in the same table column as the previously matched element.
|
T |
upTo(String elementName)
Establishes that the parser should look ‘up’ the page for the given element.
|
T |
upToHeader(String elementName)
Establishes that the parser should look ‘up’ the page for the given element that is in the same table column as the previously matched element.
|
T upTo(String elementName)
Establishes that the parser should look ‘up’ the page for the given element. The parser will look for an element that appears before the current matched element (up in the hierarchy).
elementName - the tag name of the elementElementFilter instance, allowing method chaining to add more filtering rules over the HTML element being matched.T upToHeader(String elementName)
Establishes that the parser should look ‘up’ the page for the given element that is in the same table column as the previously matched element. Will only work if the previously matched element is a <td> or <th> element or exists inside a <td> or <th>.
elementName - the tag name of the elementElementFilter instance, allowing method chaining to add more filtering rules over the HTML element being matched.T downTo(String elementName)
Establishes that the parser should look ‘down’ the page for the given element. The parser will look for an element that appears after the current matched element (down in the hierarchy).
elementName - the tag name of the elementElementFilter instance, allowing method chaining to add more filtering rules over the HTML element being matched.T downToFooter(String elementName)
Establishes that the parser should look ‘down’ the page for the given element that is in the same table column as the previously matched element. Will only work if the previously matched element is a <td> or <th> element or exists inside a <td> or <th>.
elementName - the tag name of the elementElementFilter instance, allowing method chaining to add more filtering rules over the HTML element being matched.Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.