blob: 59abb8401cbf097371c20b3dea3eedda58324c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.zwobble.mammoth.styles;
import org.zwobble.mammoth.documents.Paragraph;
public class StyleMapping {
private final ParagraphMatcher matcher;
private final HtmlPath htmlPath;
public StyleMapping(ParagraphMatcher matcher, HtmlPath htmlPath) {
this.matcher = matcher;
this.htmlPath = htmlPath;
}
public boolean matches(Paragraph paragraph) {
return matcher.matches(paragraph);
}
public HtmlPath getHtmlPath() {
return htmlPath;
}
}
|