aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/documents
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/documents')
-rw-r--r--src/main/java/org/zwobble/mammoth/documents/NoteReference.java10
-rw-r--r--src/main/java/org/zwobble/mammoth/documents/NoteType.java6
2 files changed, 14 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;
}
diff --git a/src/main/java/org/zwobble/mammoth/documents/NoteType.java b/src/main/java/org/zwobble/mammoth/documents/NoteType.java
new file mode 100644
index 0000000..02549d8
--- /dev/null
+++ b/src/main/java/org/zwobble/mammoth/documents/NoteType.java
@@ -0,0 +1,6 @@
+package org.zwobble.mammoth.documents;
+
+public enum NoteType {
+ FOOTNOTE,
+ ENDNOTE
+}