diff options
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/documents/NoteReference.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/documents/NoteReference.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/mammoth/documents/NoteReference.java b/src/main/java/org/zwobble/mammoth/documents/NoteReference.java new file mode 100644 index 0000000..05311c0 --- /dev/null +++ b/src/main/java/org/zwobble/mammoth/documents/NoteReference.java @@ -0,0 +1,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); + } +} |
