public class PlainText extends AbstractSelectable
Modifier and Type | Field and Description |
---|---|
protected List<String> |
sourceTexts |
Constructor and Description |
---|
PlainText(List<String> sourceTexts) |
PlainText(String text) |
Modifier and Type | Method and Description |
---|---|
Selectable |
$(String selector)
select list with css selector
|
Selectable |
$(String selector,
String attrName)
select list with css selector
|
static PlainText |
create(String text) |
protected List<String> |
getSourceTexts() |
Selectable |
links()
select all links
|
List<Selectable> |
nodes()
get all nodes
|
Selectable |
smartContent()
select smart content with ReadAbility algorithm
|
Selectable |
xpath(String xpath)
select list with xpath
|
all, css, css, get, getFirstSourceText, jsonPath, match, regex, regex, replace, select, select, selectList, selectList, toString
public PlainText(String text)
public Selectable xpath(String xpath)
Selectable
xpath
- xpathpublic Selectable $(String selector)
Selectable
selector
- css selector expressionpublic Selectable $(String selector, String attrName)
Selectable
selector
- css selector expressionattrName
- attribute name of css selectorpublic Selectable smartContent()
Selectable
public Selectable links()
Selectable
public List<Selectable> nodes()
Selectable
protected List<String> getSourceTexts()
getSourceTexts
in class AbstractSelectable
Copyright © 2017. All rights reserved.