aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/documents/ParagraphElement.java
blob: dcf8daddb31dc7f2e93ecf6634d6e302bb3a839d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.zwobble.mammoth.documents;

import java.util.List;
import java.util.Optional;

public class ParagraphElement implements DocumentElement, HasChildren {
    private final Optional<String> styleId;
    private final List<DocumentElement> children;

    public ParagraphElement(Optional<String> styleId, List<DocumentElement> children) {
        this.styleId = styleId;
        this.children = children;
    }

    public Optional<String> getStyleId() {
        return styleId;
    }

    public List<DocumentElement> getChildren() {
        return children;
    }
}