blob: 00edc5f9a8b1ab010edff01c8ef45af802cd462a (
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;
import java.util.List;
public class TableRow implements DocumentElement, HasChildren<TableRow> {
private final List<DocumentElement> children;
private final boolean isHeader;
public TableRow(List<DocumentElement> children, boolean isHeader) {
this.children = children;
this.isHeader = isHeader;
}
@Override
public List<DocumentElement> getChildren() {
return children;
}
@Override
public TableRow replaceChildren(List<DocumentElement> newChildren) {
return new TableRow(newChildren, this.isHeader);
}
@Override
public <T, U> T accept(DocumentElementVisitor<T, U> visitor, U context) {
return visitor.visit(this, context);
}
public boolean isHeader() {
return isHeader;
}
}
|