public class TagUtils extends Object
| Constructor and Description |
|---|
TagUtils() |
| Modifier and Type | Method and Description |
|---|---|
static TagUtils |
getInstance() |
Tag |
getSibling(Tag t, int i)
Method used for retrieving a sibling of the given tag t.
|
public Tag getSibling(Tag t, int i) throws NoSiblingException
t - tag to find the previous sibling of
i - int index relative to the one of the given tag. (-i for previous siblings)
NoSiblingException - when no previous sibling can be found, because the tag is the first child.
public static TagUtils getInstance()
Copyright © 1998–2021. All rights reserved.