aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/xml/XmlTextNode.java
blob: 9b349e37670a821bfeed7c834961ef631ca0bc91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.zwobble.mammoth.xml;

public class XmlTextNode implements XmlNode {
    private final String value;

    public XmlTextNode(String value) {
        this.value = value;
    }
    
    public String getValue() {
        return value;
    }
    
    @Override
    public <T> T accept(XmlNodeVisitor<T> visitor) {
        return visitor.visit(this);
    }

    @Override
    public String toString() {
        return "XmlTextNode(value=" + value + ")";
    }
}