Class ContentFormat

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ContentFormat>
com.azure.ai.documentintelligence.models.ContentFormat

public final class ContentFormat extends com.azure.core.util.ExpandableStringEnum<ContentFormat>
Format of the content in analyzed result.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ContentFormat
    Markdown representation of the document content with section headings, tables, etc.
    static final ContentFormat
    Plain text representation of the document content without any formatting.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a ContentFormat from its string representation.
    Gets known ContentFormat values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TEXT

      public static final ContentFormat TEXT
      Plain text representation of the document content without any formatting.
    • MARKDOWN

      public static final ContentFormat MARKDOWN
      Markdown representation of the document content with section headings, tables, etc.
  • Constructor Details

    • ContentFormat

      @Deprecated public ContentFormat()
      Deprecated.
      Use the fromString(String) 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.