blob: f250992c42babd444c4710de9dad2e7dbeb4ad58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.zwobble.mammoth.styles;
import org.zwobble.mammoth.html.HtmlElement;
import org.zwobble.mammoth.html.HtmlNode;
import java.util.List;
import java.util.Map;
import static org.zwobble.mammoth.util.MammothLists.list;
public class HtmlPathElement {
private final String tagName;
private final Map<String, String> attributes;
private final boolean isCollapsible;
public HtmlPathElement(String tagName, Map<String, String> attributes, boolean isCollapsible) {
this.tagName = tagName;
this.attributes = attributes;
this.isCollapsible = isCollapsible;
}
public List<HtmlNode> wrap(List<HtmlNode> nodes) {
return list(new HtmlElement(tagName, attributes, nodes, isCollapsible));
}
}
|