|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.filters.HasSiblingFilter
public class HasSiblingFilter
This class accepts all tags that have a sibling acceptable to another filter. End tags are not considered to be siblings of any tag.
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NodeFilter mSiblingFilter
| Constructor Detail |
|---|
public HasSiblingFilter()
false
from accept(org.htmlparser.Node).
public HasSiblingFilter(NodeFilter filter)
filter - The filter to apply to the sibling.| Method Detail |
|---|
public NodeFilter getSiblingFilter()
public void setSiblingFilter(NodeFilter filter)
filter - The filter to apply to siblings in accept(org.htmlparser.Node).public boolean accept(Node node)
accept in interface NodeFilternode - The node to check.
true if the node has an acceptable sibling,
false otherwise.
|
© 2006 Derrick Oswald Sep 17, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under Common Public License. | |