Class DocumentField
java.lang.Object
com.azure.ai.documentintelligence.models.DocumentField
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DocumentField>
public final class DocumentField
extends Object
implements com.azure.json.JsonSerializable<DocumentField>
An object representing the content and location of a field value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentField
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DocumentField from the JsonReader.Get the boundingRegions property: Bounding regions covering the field.Get the confidence property: Confidence of correctly extracting the field.Get the content property: Field content.getSpans()
Get the spans property: Location of the field in the reading order concatenated content.getType()
Get the type property: Data type of the field value.Get the valueAddress property: Address value.Get the valueArray property: Array of field values.Get the valueCountryRegion property: 3-letter country code value (ISO 3166-1 alpha-3).Get the valueCurrency property: Currency value.Get the valueDate property: Date value in YYYY-MM-DD format (ISO 8601).Get the valueInteger property: Integer value.Get the valueNumber property: Floating point value.Get the valueObject property: Dictionary of named field values.Get the valuePhoneNumber property: Phone number value in E.164 format (ex.Get the valueSelectionGroup property: Selection group value.Get the valueSelectionMark property: Selection mark value.Get the valueSignature property: Presence of signature.Get the valueString property: String value.Get the valueTime property: Time value in hh:mm:ss format (ISO 8601).Get the valueBoolean property: Boolean value.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getType
Get the type property: Data type of the field value.- Returns:
- the type value.
-
getValueString
Get the valueString property: String value.- Returns:
- the valueString value.
-
getValueDate
Get the valueDate property: Date value in YYYY-MM-DD format (ISO 8601).- Returns:
- the valueDate value.
-
getValueTime
Get the valueTime property: Time value in hh:mm:ss format (ISO 8601).- Returns:
- the valueTime value.
-
getValuePhoneNumber
Get the valuePhoneNumber property: Phone number value in E.164 format (ex. +19876543210).- Returns:
- the valuePhoneNumber value.
-
getValueNumber
Get the valueNumber property: Floating point value.- Returns:
- the valueNumber value.
-
getValueInteger
Get the valueInteger property: Integer value.- Returns:
- the valueInteger value.
-
getValueSelectionMark
Get the valueSelectionMark property: Selection mark value.- Returns:
- the valueSelectionMark value.
-
getValueSignature
Get the valueSignature property: Presence of signature.- Returns:
- the valueSignature value.
-
getValueCountryRegion
Get the valueCountryRegion property: 3-letter country code value (ISO 3166-1 alpha-3).- Returns:
- the valueCountryRegion value.
-
getValueArray
Get the valueArray property: Array of field values.- Returns:
- the valueArray value.
-
getValueObject
Get the valueObject property: Dictionary of named field values.- Returns:
- the valueObject value.
-
getValueCurrency
Get the valueCurrency property: Currency value.- Returns:
- the valueCurrency value.
-
getValueAddress
Get the valueAddress property: Address value.- Returns:
- the valueAddress value.
-
isValueBoolean
Get the valueBoolean property: Boolean value.- Returns:
- the valueBoolean value.
-
getValueSelectionGroup
Get the valueSelectionGroup property: Selection group value.- Returns:
- the valueSelectionGroup value.
-
getContent
Get the content property: Field content.- Returns:
- the content value.
-
getBoundingRegions
Get the boundingRegions property: Bounding regions covering the field.- Returns:
- the boundingRegions value.
-
getSpans
Get the spans property: Location of the field in the reading order concatenated content.- Returns:
- the spans value.
-
getConfidence
Get the confidence property: Confidence of correctly extracting the field.- Returns:
- the confidence value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DocumentField>
- Throws:
IOException
-
fromJson
Reads an instance of DocumentField from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DocumentField if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DocumentField.
-