blob: 59683ba819e4b4032efa01df2461d73454aa19ac (
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
26
27
28
29
30
31
32
33
34
35
|
package org.zwobble.mammoth.html;
import java.util.List;
import java.util.Map;
public class HtmlElement implements HtmlNode {
private final String tagName;
private final Map<String, String> attributes;
private final List<HtmlNode> children;
private final boolean collapsible;
public HtmlElement(String tagName, Map<String, String> attributes, List<HtmlNode> children, boolean collapsible) {
this.tagName = tagName;
this.attributes = attributes;
this.children = children;
this.collapsible = collapsible;
}
public String getTagName() {
return tagName;
}
public Map<String, String> getAttributes() {
return attributes;
}
public List<HtmlNode> getChildren() {
return children;
}
@Override
public void visit(Visitor visitor) {
visitor.visit(this);
}
}
|