aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/internal/documents/DocumentElementVisitor.java
blob: de288b9aebee3191b361f33ce3899e3543f1971c (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
package org.zwobble.mammoth.internal.documents;

public interface DocumentElementVisitor<T, U> {
    T visit(Document document, U context);

    T visit(Paragraph paragraph, U context);
    T visit(Run run, U context);
    T visit(Text text, U context);

    T visit(Tab tab, U context);
    T visit(Break lineBreak, U context);

    T visit(Table table, U context);
    T visit(TableRow tableRow, U context);
    T visit(TableCell tableCell, U context);

    T visit(Hyperlink hyperlink, U context);
    T visit(Checkbox checkbox, U context);
    T visit(Bookmark bookmark, U context);
    T visit(NoteReference noteReference, U context);
    T visit(CommentReference commentReference, U context);

    T visit(Image image, U context);

}