blob: c94d1aac3b73c94b98119517f31fdfda9cf00a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.zwobble.mammoth.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;
}
}
|