public class LinkStringFilter extends java.lang.Object implements NodeFilter
构造器和说明 |
---|
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.
|
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
在接口中 NodeFilter
node
- The node to check.true
if the node is a link with the pattern.