blob: 3a5047ecde7ee538ed23815c85842c48dd16b55c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package org.zwobble.mammoth.internal.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, U> T accept(DocumentElementVisitor<T, U> visitor, U context) {
return visitor.visit(this, context);
}
}
|