Package org.odlabs.wiquery.tester.matchers

Examples of org.odlabs.wiquery.tester.matchers.ComponentMatcher


    return visitor.matchedComponents.get(0);
  }

  public <X extends Component> List<X> all(MarkupContainer root, Class<X> componentType)
  {
    ComponentMatcher matcher = new ComponentTypeMatcher(componentType);
    CollectingVisitor<X> visitor = new CollectingVisitor<X>(matcher);
    root.visitChildren(componentType, visitor);
    return visitor.matchedComponents;
  }
View Full Code Here


    return visitor.matchedComponents.get(0);
  }

  public <X extends Component> List<X> all(MarkupContainer root, Class<X> componentType)
  {
    ComponentMatcher matcher = new ComponentTypeMatcher(componentType);
    CollectingVisitor<X> visitor = new CollectingVisitor<X>(matcher);
    root.visitChildren(componentType, visitor);
    return visitor.matchedComponents;
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.tester.matchers.ComponentMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.