blob: 33abe8645d0562d9ff712d4054d6c0be6adf995e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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);
public static final BreakMatcher COLUMN_BREAK = new BreakMatcher(Break.Type.COLUMN);
private final Break.Type breakType;
private BreakMatcher(Break.Type breakType) {
this.breakType = breakType;
}
@Override
public boolean matches(Break element) {
return element.getType().equals(breakType);
}
}
|