DocumentField Class
- java.
lang. Object - com.
azure. ai. formrecognizer. documentanalysis. models. TypedDocumentField<T> - com.
azure. ai. formrecognizer. documentanalysis. models. DocumentField
- com.
- com.
public final class DocumentField
extends TypedDocumentField<Object>
Model representing the content and location of a field value.
Constructor Summary
Constructor | Description |
---|---|
DocumentField() |
Constructs a Document |
Method Summary
Modifier and Type | Method and Description |
---|---|
Address |
getValueAsAddress()
Get address value of the field. |
Boolean |
getValueAsBoolean()
Get boolean value of the field. |
String |
getValueAsCountry()
Get the 3-letter country code value (ISO 3166-1 alpha-3). |
Currency |
getValueAsCurrency()
Get the Currency value. |
Local |
getValueAsDate()
Get the date value in YYYY-MM-DD format (ISO 8601). |
Double |
getValueAsDouble()
Get the double/floating point value of the field. |
List<Document |
getValueAsList()
Get the array of field values. |
Long |
getValueAsLong()
Get the long value of the field. |
Map<String,Document |
getValueAsMap()
Get the map of named field values. |
String |
getValueAsPhoneNumber()
Get the phone number value in E.164 format (ex. |
Document |
getValueAsSelectionMark()
Get the selection mark value. |
Document |
getValueAsSignature()
Get the presence of signature type. |
String |
getValueAsString()
Get the string value of the field. |
Local |
getValueAsTime()
Get the time value in hh:mm:ss format (ISO 8601). |
Methods inherited from TypedDocumentField
Methods inherited from java.lang.Object
Constructor Details
DocumentField
public DocumentField()
Constructs a DocumentField object.
Method Details
getValueAsAddress
public AddressValue getValueAsAddress()
Get address value of the field.
Returns:
getValueAsBoolean
public Boolean getValueAsBoolean()
Get boolean value of the field.
Returns:
getValueAsCountry
public String getValueAsCountry()
Get the 3-letter country code value (ISO 3166-1 alpha-3).
Returns:
getValueAsCurrency
public CurrencyValue getValueAsCurrency()
Get the Currency value.
Returns:
getValueAsDate
public LocalDate getValueAsDate()
Get the date value in YYYY-MM-DD format (ISO 8601).
Returns:
getValueAsDouble
public Double getValueAsDouble()
Get the double/floating point value of the field.
Returns:
getValueAsList
public List
Get the array of field values.
Returns:
getValueAsLong
public Long getValueAsLong()
Get the long value of the field.
Returns:
getValueAsMap
public Map
Get the map of named field values.
Returns:
getValueAsPhoneNumber
public String getValueAsPhoneNumber()
Get the phone number value in E.164 format (ex. +19876543210).
Returns:
getValueAsSelectionMark
public DocumentSelectionMarkState getValueAsSelectionMark()
Get the selection mark value.
Returns:
getValueAsSignature
public DocumentSignatureType getValueAsSignature()
Get the presence of signature type.
Returns:
getValueAsString
public String getValueAsString()
Get the string value of the field.
Returns:
getValueAsTime
public LocalTime getValueAsTime()
Get the time value in hh:mm:ss format (ISO 8601).
Returns:
Applies to
Azure SDK for Java