package org.zwobble.mammoth.documents; public class NoteReference implements DocumentElement { public static NoteReference footnoteReference(String 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(NoteType noteType, String noteId) { this.noteType = noteType; this.noteId = noteId; } public NoteType getNoteType() { return noteType; } public String getNoteId() { return noteId; } @Override public T accept(DocumentElementVisitor visitor) { return visitor.visit(this); } }