blob: 01fff9592c4100a977401e76d390173c7528d86f (
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
|
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;
}
@Override
public <T> T accept(DocumentElementVisitor<T> visitor) {
return visitor.visit(this);
}
}
|