JSF Test Framework: Mockito 1.1.2

org.jboss.test.faces.writer
Class ElementCriteria

java.lang.Object
  extended by org.jboss.test.faces.writer.ElementCriteria
All Implemented Interfaces:
Criteria

public class ElementCriteria
extends Object
implements Criteria


Constructor Summary
ElementCriteria(Collection<? extends Record> base, String name)
           
ElementCriteria(Record base, String name)
           
 
Method Summary
 ElementCriteria atLevel(int level)
           
 ElementCriteria atPosition(int position)
           
 ElementCriteria contains(String regex)
           
 ElementCriteria element(String name)
           
 Object getAttribute(String name)
           
 String getName()
           
 String getText()
           
 boolean matches()
           
 String toString()
           
 ElementCriteria withAttribute(String name)
           
 ElementCriteria withAttribute(String name, String regex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementCriteria

public ElementCriteria(Record base,
                       String name)

ElementCriteria

public ElementCriteria(Collection<? extends Record> base,
                       String name)
Method Detail

atLevel

public ElementCriteria atLevel(int level)

atPosition

public ElementCriteria atPosition(int position)

withAttribute

public ElementCriteria withAttribute(String name)

withAttribute

public ElementCriteria withAttribute(String name,
                                     String regex)

contains

public ElementCriteria contains(String regex)

getName

public String getName()
               throws NotFoundException
Throws:
NotFoundException

getText

public String getText()
               throws NotFoundException
Throws:
NotFoundException

getAttribute

public Object getAttribute(String name)
                    throws NotFoundException
Throws:
NotFoundException

matches

public boolean matches()

toString

public String toString()
Overrides:
toString in class Object

element

public ElementCriteria element(String name)
Specified by:
element in interface Criteria

JSF Test Framework: Mockito 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.