aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/documents/NoteReference.java
blob: 05311c01811c9b6224c0bd95acccb52072663b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.zwobble.mammoth.documents;

public class NoteReference implements DocumentElement {
    public static NoteReference footnoteReference(String noteId) {
        return new NoteReference(noteId);
    }

    private final String noteId;

    public NoteReference(String noteId) {
        this.noteId = noteId;
    }

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