public interface Selectable
Modifier and Type | Method and Description |
---|---|
Selectable |
$(String selector)
select list with css selector
|
Selectable |
$(String selector,
String attrName)
select list with css selector
|
List<String> |
all()
multi string result
|
Selectable |
css(String selector)
select list with css selector
|
Selectable |
css(String selector,
String attrName)
select list with css selector
|
String |
get()
single string result
|
Selectable |
jsonPath(String jsonPath)
extract by JSON Path expression
|
Selectable |
links()
select all links
|
boolean |
match()
if result exist for select
|
List<Selectable> |
nodes()
get all nodes
|
Selectable |
regex(String regex)
select list with regex, default group is group 1
|
Selectable |
regex(String regex,
int group)
select list with regex
|
Selectable |
replace(String regex,
String replacement)
replace with regex
|
Selectable |
select(Selector selector)
extract by custom selector
|
Selectable |
selectList(Selector selector)
extract by custom selector
|
Selectable |
smartContent()
select smart content with ReadAbility algorithm
|
String |
toString()
single string result
|
Selectable |
xpath(String xpath)
select list with xpath
|
Selectable xpath(String xpath)
xpath
- xpathSelectable $(String selector)
selector
- css selector expressionSelectable $(String selector, String attrName)
selector
- css selector expressionattrName
- attribute name of css selectorSelectable css(String selector)
selector
- css selector expressionSelectable css(String selector, String attrName)
selector
- css selector expressionattrName
- attribute name of css selectorSelectable smartContent()
Selectable links()
Selectable regex(String regex)
regex
- regexSelectable regex(String regex, int group)
regex
- regexgroup
- groupSelectable replace(String regex, String replacement)
regex
- regexreplacement
- replacementString toString()
String get()
boolean match()
Selectable jsonPath(String jsonPath)
jsonPath
- jsonPathSelectable select(Selector selector)
selector
- selectorSelectable selectList(Selector selector)
selector
- selectorList<Selectable> nodes()
Copyright © 2017. All rights reserved.