watij.finders
Class AttributeFinder

java.lang.Object
  extended by watij.finders.BaseFinder
      extended by watij.finders.AttributeFinder
All Implemented Interfaces:
Finder, Matcher, Symbol
Direct Known Subclasses:
TitleFinder, UrlFinder

public class AttributeFinder
extends BaseFinder
implements Symbol


Constructor Summary
AttributeFinder(java.lang.String name)
           
AttributeFinder(java.lang.String name, java.lang.String what)
           
 
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 watij.finders.BaseFinder
find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFinder

public AttributeFinder(java.lang.String name)

AttributeFinder

public AttributeFinder(java.lang.String name,
                       java.lang.String what)
Method Detail

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)