|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.htmlparser.filters.OrFilter
Accepts nodes matching any of it's predicates filters (OR operation).
Field Summary | |
protected NodeFilter[] |
mPredicates
The predicates that are to be or'ed together; |
Constructor Summary | |
OrFilter()
Creates a new instance of an OrFilter. |
|
OrFilter(NodeFilter left,
NodeFilter right)
Creates an OrFilter that accepts nodes acceptable to either filter. |
Method Summary | |
boolean |
accept(Node node)
Accept nodes that are acceptable to any of it's predicate filters. |
NodeFilter[] |
getPredicates()
Get the predicates used by this OrFilter. |
void |
setPredicates(NodeFilter[] predicates)
Set the predicates for this OrFilter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected NodeFilter[] mPredicates
Constructor Detail |
public OrFilter()
false
to accept(org.htmlparser.Node)
.
setPredicates(org.htmlparser.NodeFilter[])
public OrFilter(NodeFilter left, NodeFilter right)
left
- One filter.right
- The other filter.Method Detail |
public NodeFilter[] getPredicates()
public void setPredicates(NodeFilter[] predicates)
predicates
- The list of predidcates to use in accept(org.htmlparser.Node)
.public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if any of the predicate filters find the node
is acceptable, false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |