java.io.Serializable, java.lang.Cloneable, NodeFilterpublic class LinkStringFilter extends java.lang.Object implements NodeFilter
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
mCaseSensitive |
Flag indicating case sensitive/insensitive search.
|
protected java.lang.String |
mPattern |
The pattern to search for in the link.
|
| Constructor | Description |
|---|---|
LinkStringFilter(java.lang.String pattern) |
Creates a LinkStringFilter that accepts LinkTag nodes containing
a URL that matches the supplied pattern.
|
LinkStringFilter(java.lang.String pattern,
boolean caseSensitive) |
Creates a LinkStringFilter that accepts LinkTag nodes containing
a URL that matches the supplied pattern.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(Node node) |
Accept nodes that are a LinkTag and
have a URL that matches the pattern supplied in the constructor.
|
protected java.lang.String mPattern
protected boolean mCaseSensitive
public LinkStringFilter(java.lang.String pattern)
pattern - The pattern to match.public LinkStringFilter(java.lang.String pattern,
boolean caseSensitive)
pattern - The pattern to match.caseSensitive - Specifies case sensitivity for the matching process.public boolean accept(Node node)
accept in interface NodeFilternode - The node to check.true if the node is a link with the pattern.HTML Parser is an open source library released under LGPL.