DocumentField Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentField
- com.
Implements
public final class DocumentField
implements JsonSerializable<DocumentField>
An object representing the content and location of a field value.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
List<Bounding |
getBoundingRegions()
Get the bounding |
Double |
getConfidence()
Get the confidence property: Confidence of correctly extracting the field. |
String |
getContent()
Get the content property: Field content. |
List<Document |
getSpans()
Get the spans property: Location of the field in the reading order concatenated content. |
Document |
getType()
Get the type property: Data type of the field value. |
Address |
getValueAddress()
Get the value |
String |
getValueCountryRegion()
Get the value |
Currency |
getValueCurrency()
Get the value |
Local |
getValueDate()
Get the value |
Long |
getValueInteger()
Get the value |
List<Document |
getValueList()
Get the value |
Map<String,Document |
getValueMap()
Get the value |
Double |
getValueNumber()
Get the value |
String |
getValuePhoneNumber()
Get the value |
List<String> |
getValueSelectionGroup()
Get the value |
Document |
getValueSelectionMark()
Get the value |
Document |
getValueSignature()
Get the value |
String |
getValueString()
Get the value |
String |
getValueTime()
Get the value |
Boolean |
isValueBoolean()
Get the value |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentField fromJson(JsonReader jsonReader)
Reads an instance of DocumentField from the JsonReader.
Parameters:
Returns:
Throws:
getBoundingRegions
public List
Get the boundingRegions property: Bounding regions covering the field.
Returns:
getConfidence
public Double getConfidence()
Get the confidence property: Confidence of correctly extracting the field.
Returns:
getContent
public String getContent()
Get the content property: Field content.
Returns:
getSpans
public List
Get the spans property: Location of the field in the reading order concatenated content.
Returns:
getType
public DocumentFieldType getType()
Get the type property: Data type of the field value.
Returns:
getValueAddress
public AddressValue getValueAddress()
Get the valueAddress property: Address value.
Returns:
getValueCountryRegion
public String getValueCountryRegion()
Get the valueCountryRegion property: 3-letter country code value (ISO 3166-1 alpha-3).
Returns:
getValueCurrency
public CurrencyValue getValueCurrency()
Get the valueCurrency property: Currency value.
Returns:
getValueDate
public LocalDate getValueDate()
Get the valueDate property: Date value in YYYY-MM-DD format (ISO 8601).
Returns:
getValueInteger
public Long getValueInteger()
Get the valueInteger property: Integer value.
Returns:
getValueList
public List
Get the valueList property: Array of field values.
Returns:
getValueMap
public Map
Get the valueMap property: Dictionary of named field values.
Returns:
getValueNumber
public Double getValueNumber()
Get the valueNumber property: Floating point value.
Returns:
getValuePhoneNumber
public String getValuePhoneNumber()
Get the valuePhoneNumber property: Phone number value in E.164 format (ex. +19876543210).
Returns:
getValueSelectionGroup
public List
Get the valueSelectionGroup property: Selection group value.
Returns:
getValueSelectionMark
public DocumentSelectionMarkState getValueSelectionMark()
Get the valueSelectionMark property: Selection mark value.
Returns:
getValueSignature
public DocumentSignatureType getValueSignature()
Get the valueSignature property: Presence of signature.
Returns:
getValueString
public String getValueString()
Get the valueString property: String value.
Returns:
getValueTime
public String getValueTime()
Get the valueTime property: Time value in hh:mm:ss format (ISO 8601).
Returns:
isValueBoolean
public Boolean isValueBoolean()
Get the valueBoolean property: Boolean value.
Returns:
toJson
Applies to
Azure SDK for Java