blob: 292609e6f7c5e28aecde7f0e1c2de593f9f5cfa9 (
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
|
package org.zwobble.mammoth.internal.html;
import java.util.Map;
public class HtmlSelfClosingElement implements HtmlNode {
private final String tagName;
private final Map<String, String> attributes;
public HtmlSelfClosingElement(String tagName, Map<String, String> attributes) {
this.tagName = tagName;
this.attributes = attributes;
}
public String getTagName() {
return tagName;
}
public Map<String, String> getAttributes() {
return attributes;
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
@Override
public <T> T accept(Mapper<T> visitor) {
return visitor.visit(this);
}
}
|