Options.java :  » Testing » watij » watij » elements » Java Open Source

Java Open Source » Testing » watij 
watij » watij » elements » Options.java
package watij.elements;

import org.w3c.dom.Element;
import watij.finders.TagFinder;

import java.util.List;

public class Options extends HtmlElementCollections<Option> {

    public Options(List<Element> list, HtmlElementFactory htmlElementFactory) throws Exception {
        super(list, htmlElementFactory);
    }

    protected Option get(Element element) throws Exception {
        return htmlElementFactory().option(element);
    }

    public boolean matches(Element element) throws Exception {
        return new TagFinder("option").matches(element);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.