org.htmlparser.filters
public class HasSiblingFilter extends Object implements NodeFilter
| Field Summary | |
|---|---|
| protected NodeFilter | mSiblingFilter
The filter to apply to the sibling. |
| Constructor Summary | |
|---|---|
| HasSiblingFilter()
Creates a new instance of HasSiblingFilter.
| |
| HasSiblingFilter(NodeFilter filter)
Creates a new instance of HasSiblingFilter that accepts nodes
with sibling acceptable to the filter. | |
| Method Summary | |
|---|---|
| boolean | accept(Node node)
Accept tags with a sibling acceptable to the filter. |
| NodeFilter | getSiblingFilter()
Get the filter used by this HasSiblingFilter. |
| void | setSiblingFilter(NodeFilter filter)
Set the filter for this HasSiblingFilter. |
false
from HasSiblingFilter.Parameters: filter The filter to apply to the sibling.
Parameters: node The node to check.
Returns: true if the node has an acceptable sibling,
false otherwise.
Returns: The filter to apply to siblings.
Parameters: filter The filter to apply to siblings in HasSiblingFilter.
| HTML Parser is an open source library released under LGPL. | |