public class ComponentResolver extends Object
| Constructor and Description |
|---|
ComponentResolver()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.jsoup.select.Elements |
collect(org.jsoup.nodes.Element document)
Collects all (start,end,empty) Element corresponding to a snippet component.
|
static org.jsoup.select.Elements |
collect(org.jsoup.nodes.Element root,
Pattern searchPattern) |
ComponentToken |
create(org.jsoup.nodes.Element element)
Create a
ComponentToken corresponding to the element. |
protected static Map<String,String> |
extractAttributes(String text) |
static boolean |
hasIncludedSnippetComponent(org.jsoup.nodes.Element document) |
static boolean |
isSnippet(org.jsoup.nodes.Node node) |
org.jsoup.nodes.Document |
normalize(org.jsoup.nodes.Document document)
Normalise the
Document to enclose inline snippet in html element. |
public static boolean isSnippet(org.jsoup.nodes.Node node)
public org.jsoup.select.Elements collect(org.jsoup.nodes.Element document)
document - the Jsoup element to useElements representing all web components contained in Jsoup document.public static boolean hasIncludedSnippetComponent(org.jsoup.nodes.Element document)
document - the Jsoup element to usepublic org.jsoup.nodes.Document normalize(org.jsoup.nodes.Document document)
Document to enclose inline snippet in html element.document - the document to useDocument.public ComponentToken create(org.jsoup.nodes.Element element)
ComponentToken corresponding to the element.element - the element to use.ComponentToken representing the element.public static org.jsoup.select.Elements collect(org.jsoup.nodes.Element root,
Pattern searchPattern)
Copyright © 2012–2023 Friederich Christophe. All rights reserved.