blob: a32feda9d71a239bb6b61ac89df65f3946c74e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.zwobble.mammoth.internal.styles;
import org.zwobble.mammoth.internal.documents.Break;
public class BreakMatcher implements DocumentElementMatcher<Break> {
public static final BreakMatcher LINE_BREAK = new BreakMatcher(Break.Type.LINE);
public static final BreakMatcher PAGE_BREAK = new BreakMatcher(Break.Type.PAGE);
private final Break.Type breakType;
private BreakMatcher(Break.Type breakType) {
this.breakType = breakType;
}
@Override
public boolean matches(Break element) {
return element.getType().equals(breakType);
}
}
|