watij.finders
Class AttributeFinder
java.lang.Object
watij.finders.BaseFinder
watij.finders.AttributeFinder
- All Implemented Interfaces:
- Finder, Matcher, Symbol
- Direct Known Subclasses:
- TitleFinder, UrlFinder
public class AttributeFinder
- extends BaseFinder
- implements Symbol
Method Summary |
protected boolean |
matches(org.w3c.dom.Attr attr,
java.lang.String what)
|
boolean |
matches(org.w3c.dom.Element element)
|
protected boolean |
matchesNameAndValue(java.lang.String attrName,
java.lang.String attrValue,
java.lang.String what)
|
protected boolean |
matchesNameWithValueEmpty(java.lang.String attrName,
java.lang.String what)
|
Finder |
newFinder(java.lang.String what)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeFinder
public AttributeFinder(java.lang.String name)
AttributeFinder
public AttributeFinder(java.lang.String name,
java.lang.String what)
newFinder
public Finder newFinder(java.lang.String what)
throws java.lang.Exception
- Specified by:
newFinder
in interface Symbol
- Throws:
java.lang.Exception
matches
public boolean matches(org.w3c.dom.Element element)
throws java.lang.Exception
- Specified by:
matches
in interface Matcher
- Throws:
java.lang.Exception
matches
protected boolean matches(org.w3c.dom.Attr attr,
java.lang.String what)
matchesNameWithValueEmpty
protected boolean matchesNameWithValueEmpty(java.lang.String attrName,
java.lang.String what)
matchesNameAndValue
protected boolean matchesNameAndValue(java.lang.String attrName,
java.lang.String attrValue,
java.lang.String what)