diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:31:19 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-13 21:31:19 +0000 |
| commit | 573ad1b23218f872ec34311812a76ce4a9951e11 (patch) | |
| tree | 31ebdda5fef77bb4a45109154b7de90cb623899c /src/main/java/org/zwobble/mammoth/documents/NoteReference.java | |
| parent | ed074b78dbb2a0d15ccb985b1e9531aace0fd4ea (diff) | |
Read endnote references
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/documents/NoteReference.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/documents/NoteReference.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/mammoth/documents/NoteReference.java b/src/main/java/org/zwobble/mammoth/documents/NoteReference.java index 05311c0..01fff95 100644 --- a/src/main/java/org/zwobble/mammoth/documents/NoteReference.java +++ b/src/main/java/org/zwobble/mammoth/documents/NoteReference.java @@ -2,12 +2,18 @@ package org.zwobble.mammoth.documents; public class NoteReference implements DocumentElement { public static NoteReference footnoteReference(String noteId) { - return new NoteReference(noteId); + return new NoteReference(NoteType.FOOTNOTE, noteId); } + public static NoteReference endnoteReference(String noteId) { + return new NoteReference(NoteType.ENDNOTE, noteId); + } + + private final NoteType noteType; private final String noteId; - public NoteReference(String noteId) { + public NoteReference(NoteType noteType, String noteId) { + this.noteType = noteType; this.noteId = noteId; } |
