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