ContentFormat Class

public final class ContentFormat
extends ExpandableStringEnum<ContentFormat>

Format of the content in analyzed result.

Field Summary

Modifier and Type Field and Description
static final ContentFormat MARKDOWN

Markdown representation of the document content with section headings, tables, etc.

static final ContentFormat TEXT

Plain text representation of the document content without any formatting.

Constructor Summary

Constructor Description
ContentFormat()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFormat value.

Method Summary

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

Creates or finds a ContentFormat from its string representation.

static Collection<ContentFormat> values()

Gets known ContentFormat values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

MARKDOWN

public static final ContentFormat MARKDOWN

Markdown representation of the document content with section headings, tables, etc.

TEXT

public static final ContentFormat TEXT

Plain text representation of the document content without any formatting.

Constructor Details

ContentFormat

@Deprecated
public ContentFormat()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFormat value.

Method Details

fromString

public static ContentFormat fromString(String name)

Creates or finds a ContentFormat from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ContentFormat.

values

public static Collection<ContentFormat> values()

Gets known ContentFormat values.

Returns:

known ContentFormat values.

Applies to