blob: ed4c65ea691a0b7a019ed9b75a25cc05331b2f1f (
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
33
|
package org.zwobble.mammoth.documents;
import java.util.List;
import java.util.Optional;
public class Run implements DocumentElement, HasChildren {
private final boolean isBold;
private final Optional<Style> style;
private final List<DocumentElement> children;
public Run(boolean isBold, Optional<Style> style, List<DocumentElement> children) {
this.isBold = isBold;
this.children = children;
this.style = style;
}
public boolean isBold() {
return isBold;
}
public Optional<Style> getStyle() {
return style;
}
public List<DocumentElement> getChildren() {
return children;
}
@Override
public <T> T accept(DocumentElementVisitor<T> visitor) {
return visitor.visit(this);
}
}
|