public class ParagraphMatcher extends Object implements DocumentElementMatcher<Paragraph>
| Modifier and Type | Field and Description |
|---|---|
static ParagraphMatcher |
ANY |
| Constructor and Description |
|---|
ParagraphMatcher(Optional<String> styleId,
Optional<StringMatcher> styleName,
Optional<NumberingLevel> numbering) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Paragraph paragraph) |
static ParagraphMatcher |
orderedList(String level) |
static ParagraphMatcher |
styleId(String styleId) |
static ParagraphMatcher |
styleName(String styleName) |
static ParagraphMatcher |
styleName(StringMatcher styleName) |
static ParagraphMatcher |
unorderedList(String level) |
public static final ParagraphMatcher ANY
public ParagraphMatcher(Optional<String> styleId, Optional<StringMatcher> styleName, Optional<NumberingLevel> numbering)
public static ParagraphMatcher styleId(String styleId)
public static ParagraphMatcher styleName(String styleName)
public static ParagraphMatcher styleName(StringMatcher styleName)
public static ParagraphMatcher orderedList(String level)
public static ParagraphMatcher unorderedList(String level)
public boolean matches(Paragraph paragraph)
matches in interface DocumentElementMatcher<Paragraph>Copyright © 2018. All rights reserved.