blob: 62bfd73d2eb59588a6213024be9f83eb5f32e9c0 (
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.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 visit(Visitor visitor) {
visitor.visit(this);
}
@Override
public <T> T accept(Mapper<T> visitor) {
return visitor.visit(this);
}
}
|