ParagraphRole Class

public final class ParagraphRole
extends ExpandableStringEnum<ParagraphRole>

Semantic role of the paragraph.

Field Summary

Modifier and Type Field and Description
static final ParagraphRole FOOTNOTE

Static value footnote for ParagraphRole.

static final ParagraphRole FORMULA_BLOCK

Static value formulaBlock for ParagraphRole.

static final ParagraphRole PAGE_FOOTER

Static value pageFooter for ParagraphRole.

static final ParagraphRole PAGE_HEADER

Static value pageHeader for ParagraphRole.

static final ParagraphRole PAGE_NUMBER

Static value pageNumber for ParagraphRole.

static final ParagraphRole SECTION_HEADING

Static value sectionHeading for ParagraphRole.

static final ParagraphRole TITLE

Static value title for ParagraphRole.

Constructor Summary

Constructor Description
ParagraphRole()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ParagraphRole value.

Method Summary

Modifier and Type Method and Description
static ParagraphRole fromString(String name)

Creates or finds a ParagraphRole from its string representation.

static Collection<ParagraphRole> values()

Gets known ParagraphRole values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FOOTNOTE

public static final ParagraphRole FOOTNOTE

Static value footnote for ParagraphRole.

FORMULA_BLOCK

public static final ParagraphRole FORMULA_BLOCK

Static value formulaBlock for ParagraphRole.

public static final ParagraphRole PAGE_FOOTER

Static value pageFooter for ParagraphRole.

PAGE_HEADER

public static final ParagraphRole PAGE_HEADER

Static value pageHeader for ParagraphRole.

PAGE_NUMBER

public static final ParagraphRole PAGE_NUMBER

Static value pageNumber for ParagraphRole.

SECTION_HEADING

public static final ParagraphRole SECTION_HEADING

Static value sectionHeading for ParagraphRole.

TITLE

public static final ParagraphRole TITLE

Static value title for ParagraphRole.

Constructor Details

ParagraphRole

@Deprecated
public ParagraphRole()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ParagraphRole value.

Method Details

fromString

public static ParagraphRole fromString(String name)

Creates or finds a ParagraphRole from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ParagraphRole.

values

public static Collection values()

Gets known ParagraphRole values.

Returns:

known ParagraphRole values.

Applies to