ContentArrayField Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. ContentField - com.
azure. ai. contentunderstanding. models. ContentArrayField
- com.
- com.
public final class ContentArrayField
extends ContentField
Array field extracted from the content.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Content |
fromJson(JsonReader jsonReader)
Reads an instance of Content |
|
Content |
get(int index)
Gets a field from the array by index. |
|
Content |
getType()
Get the type property: Semantic data type of the field value. |
|
List<Content |
getValue()
Gets the strongly-typed value of this field. |
| int |
size()
Gets the number of items in the array. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from ContentField
Methods inherited from java.lang.Object
Method Details
fromJson
public static ContentArrayField fromJson(JsonReader jsonReader)
Reads an instance of ContentArrayField from the JsonReader.
Parameters:
Returns:
Throws:
get
public ContentField get(int index)
Gets a field from the array by index.
Parameters:
Returns:
getType
public ContentFieldType getType()
Get the type property: Semantic data type of the field value.
Overrides:
ContentArrayField.getType()Returns:
getValue
public List<ContentField> getValue()
Gets the strongly-typed value of this field.
Overrides:
ContentArrayField.getValue()Returns:
size
public int size()
Gets the number of items in the array.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ContentArrayField.toJson(JsonWriter jsonWriter)Parameters:
Throws: