public class TagUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
TagUtils() |
| Modifier and Type | Method | 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 ofi - 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–2018. All rights reserved.