你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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<DocumentContentFormat> values()

Gets known DocumentContentFormat values.

Returns:

known DocumentContentFormat values.

Applies to