blob: 5512c227ef5e869337820a977bc12ca9f07e2f20 (
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;
public class StyleMapping<T> {
private final DocumentElementMatcher<T> matcher;
private final HtmlPath htmlPath;
public StyleMapping(DocumentElementMatcher<T> matcher, HtmlPath htmlPath) {
this.matcher = matcher;
this.htmlPath = htmlPath;
}
public boolean matches(T element) {
return matcher.matches(element);
}
public HtmlPath getHtmlPath() {
return htmlPath;
}
}
|