aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/html/HtmlTextNode.java
blob: a9f9fd54c39182342f6d6de51131e488a4776958 (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.html;

public class HtmlTextNode implements HtmlNode {
    private final String value;

    public HtmlTextNode(String  value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    @Override
    public void visit(Visitor visitor) {
        visitor.visit(this);
    }

    @Override
    public <T> T accept(Mapper<T> visitor) {
        return visitor.visit(this);
    }
}