From 573ad1b23218f872ec34311812a76ce4a9951e11 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 13 Feb 2016 21:31:19 +0000 Subject: Read endnote references --- src/main/java/org/zwobble/mammoth/documents/NoteReference.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/zwobble/mammoth/documents/NoteReference.java') 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; } -- cgit v1.2.3