Partilhar via


DocumentContentFormat Class

public final class DocumentContentFormat
extends ExpandableStringEnum<DocumentContentFormat>

Format of the content in analyzed result.

Field Summary

Modifier and Type Field and Description
static final DocumentContentFormat MARKDOWN

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

static final DocumentContentFormat TEXT

Plain text representation of the document content without any formatting.

Constructor Summary

Constructor Description
DocumentContentFormat()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentContentFormat value.

Method Summary

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

Creates or finds a DocumentContentFormat from its string representation.

static Collection<DocumentContentFormat> values()

Gets known DocumentContentFormat values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

MARKDOWN

public static final DocumentContentFormat MARKDOWN

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

TEXT

public static final DocumentContentFormat TEXT

Plain text representation of the document content without any formatting.

Constructor Details

DocumentContentFormat

@Deprecated
public DocumentContentFormat()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentContentFormat value.

Method Details

fromString

public static DocumentContentFormat fromString(String name)

Creates or finds a DocumentContentFormat from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentContentFormat.

values

public static Collection values()

Gets known DocumentContentFormat values.

Returns:

known DocumentContentFormat values.

Applies to