public class RunMatcher extends Object implements DocumentElementMatcher<Run>
| Modifier and Type | Field and Description |
|---|---|
static RunMatcher |
ANY |
| Constructor and Description |
|---|
RunMatcher(Optional<String> styleId,
Optional<StringMatcher> styleName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Run run) |
static RunMatcher |
styleId(String styleId) |
static RunMatcher |
styleName(String styleName) |
public static final RunMatcher ANY
public RunMatcher(Optional<String> styleId, Optional<StringMatcher> styleName)
public static RunMatcher styleId(String styleId)
public static RunMatcher styleName(String styleName)
public boolean matches(Run run)
matches in interface DocumentElementMatcher<Run>Copyright © 2018. All rights reserved.