Class StringIndexType

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

public final class StringIndexType extends com.azure.core.util.ExpandableStringEnum<StringIndexType>
Method used to compute string offset and length.
  • Field Details

    • TEXT_ELEMENTS

      public static final StringIndexType TEXT_ELEMENTS
      User-perceived display character, or grapheme cluster, as defined by Unicode 8.0.0.
    • UNICODE_CODE_POINT

      public static final StringIndexType UNICODE_CODE_POINT
      Character unit represented by a single unicode code point. Used by Python 3.
    • UTF16CODE_UNIT

      public static final StringIndexType UTF16CODE_UNIT
      Character unit represented by a 16-bit Unicode code unit. Used by JavaScript, Java, and .NET.
  • Constructor Details

    • StringIndexType

      @Deprecated public StringIndexType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of StringIndexType value.
  • Method Details

    • fromString

      public static StringIndexType fromString(String name)
      Creates or finds a StringIndexType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding StringIndexType.
    • values

      public static Collection<StringIndexType> values()
      Gets known StringIndexType values.
      Returns:
      known StringIndexType values.