public class XpathSelector extends BaseElementSelector
Constructor and Description |
---|
XpathSelector(String xpathStr) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasAttribute() |
String |
select(org.jsoup.nodes.Element element)
Extract single result in text.
If there are more than one result, only the first will be chosen. |
org.jsoup.nodes.Element |
selectElement(org.jsoup.nodes.Element element) |
List<org.jsoup.nodes.Element> |
selectElements(org.jsoup.nodes.Element element) |
List<String> |
selectList(org.jsoup.nodes.Element element)
Extract all results in text.
|
select, selectElement, selectElements, selectList
public XpathSelector(String xpathStr)
public String select(org.jsoup.nodes.Element element)
ElementSelector
element
- elementpublic List<String> selectList(org.jsoup.nodes.Element element)
ElementSelector
element
- elementpublic org.jsoup.nodes.Element selectElement(org.jsoup.nodes.Element element)
selectElement
in class BaseElementSelector
public List<org.jsoup.nodes.Element> selectElements(org.jsoup.nodes.Element element)
selectElements
in class BaseElementSelector
public boolean hasAttribute()
hasAttribute
in class BaseElementSelector
Copyright © 2017. All rights reserved.