org.jboss.test.faces.writer
Class ElementCriteria
java.lang.Object
org.jboss.test.faces.writer.ElementCriteria
- All Implemented Interfaces:
- Criteria
public class ElementCriteria
- extends Object
- implements Criteria
ElementCriteria
public ElementCriteria(Record base,
String name)
ElementCriteria
public ElementCriteria(Collection<? extends Record> base,
String name)
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.