aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlReaderMakers.java
blob: 9df21e980b31e64d2277f200fe9bbc92e05f62f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.zwobble.mammoth.tests.docx;

import com.natpryce.makeiteasy.Instantiator;
import com.natpryce.makeiteasy.Property;
import org.zwobble.mammoth.docx.BodyXmlReader;
import org.zwobble.mammoth.docx.Numbering;
import org.zwobble.mammoth.docx.Styles;

import static com.natpryce.makeiteasy.Property.newProperty;

public class BodyXmlReaderMakers {
    public static final Property<BodyXmlReader, Styles> STYLES = newProperty();
    public static final Property<BodyXmlReader, Numbering> NUMBERING = newProperty();

    public static final Instantiator<BodyXmlReader> bodyReader =
        propertyLookup -> new BodyXmlReader(
            propertyLookup.valueOf(STYLES, Styles.EMPTY),
            propertyLookup.valueOf(NUMBERING, Numbering.EMPTY));
}