public class AndTagNodeCondition extends Object implements ITagNodeCondition
ITagNodeCondition
checkers and for checking if
all the ITagNodeCondition
checker instances return true.
This class can basically be given multiple ITagNodeCondition
checker instances.
This class iterates the multiple ITagNodeCondition
checker instances
and invokes ITagNodeCondition.satisfy(TagNode)
on each.
If and only if every call on ITagNodeCondition.satisfy(TagNode)
returns true,
then the satisfy(TagNode)
method of this class returns true.
Otherwise, it will return false.
Constructor and Description |
---|
AndTagNodeCondition()
Zero-argument default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTagNodeCondition(ITagNodeCondition condition)
Adds a
ITagNodeCondition checker instance. |
boolean |
satisfy(TagNode tagNode) |
public AndTagNodeCondition()
public void addTagNodeCondition(ITagNodeCondition condition)
ITagNodeCondition
checker instance.condition
- public boolean satisfy(TagNode tagNode)
This method iterates the multiple ITagNodeCondition
checker instances
and invokes ITagNodeCondition.satisfy(TagNode)
on each.
If and only if every call on ITagNodeCondition.satisfy(TagNode)
returns true,
then the satisfy(TagNode)
method of this class returns true.
Otherwise, it will return false.
Also, if there is no ITagNodeCondition
checker instances, then it returns false.
satisfy
in interface ITagNodeCondition
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.