| Constructor and Description |
|---|
ElementCriteria(Collection<? extends Record> base,
String name) |
ElementCriteria(Record base,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ElementCriteria(Collection<? extends Record> base, String name)
public ElementCriteria atLevel(int level)
public ElementCriteria atPosition(int position)
public ElementCriteria withAttribute(String name)
public ElementCriteria withAttribute(String name, String regex)
public ElementCriteria contains(String regex)
public String getName() throws NotFoundException
NotFoundExceptionpublic String getText() throws NotFoundException
NotFoundExceptionpublic Object getAttribute(String name) throws NotFoundException
NotFoundExceptionpublic boolean matches()
public ElementCriteria element(String name)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.