blob: a49f5f821485f70f73649e067fb44919f8eedf70 (
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
|
package org.zwobble.mammoth.xml;
import java.util.List;
import java.util.Map;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
@RequiredArgsConstructor
@EqualsAndHashCode
@ToString
public class XmlElement implements XmlNode {
public XmlElement(String name) {
this(name, ImmutableMap.of());
}
public XmlElement(String name, Map<String, String> attributes) {
this(name, attributes, ImmutableList.of());
}
@Getter
private final String name;
private final Map<String, String> attributes;
private final List<XmlNode> children;
}
|