blob: 05bfa78b78826a5685122fe36984d82df5759ff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.zwobble.mammoth.xml;
import java.util.Optional;
public class NullXmlElement implements XmlElementLike {
public static final XmlElementLike INSTANCE = new NullXmlElement();
private NullXmlElement() {
}
@Override
public XmlElementLike findChildOrEmpty(String name) {
return this;
}
@Override
public Optional<String> getAttributeOrNone(String name) {
return Optional.empty();
}
}
|