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