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
NotFoundException
public String getText() throws NotFoundException
NotFoundException
public Object getAttribute(String name) throws NotFoundException
NotFoundException
public boolean matches()
public ElementCriteria element(String name)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.