DocumentFieldSchema Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentFieldSchema
- com.
Implements
public final class DocumentFieldSchema
implements JsonSerializable<DocumentFieldSchema>
Description of the field semantic schema using a JSON Schema style syntax.
Constructor Summary
Constructor | Description |
---|---|
DocumentFieldSchema(DocumentFieldType type) |
Creates an instance of Document |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
String |
getDescription()
Get the description property: Field description. |
String |
getExample()
Get the example property: Example field content. |
Document |
getItems()
Get the items property: Field type schema of each array element. |
Map<String,Document |
getProperties()
Get the properties property: Named sub-fields of the object field. |
Document |
getType()
Get the type property: Semantic data type of the field value. |
Document |
setDescription(String description)
Set the description property: Field description. |
Document |
setExample(String example)
Set the example property: Example field content. |
Document |
setItems(DocumentFieldSchema items)
Set the items property: Field type schema of each array element. |
Document |
setProperties(Map<String,DocumentFieldSchema> properties)
Set the properties property: Named sub-fields of the object field. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DocumentFieldSchema
public DocumentFieldSchema(DocumentFieldType type)
Creates an instance of DocumentFieldSchema class.
Parameters:
Method Details
fromJson
public static DocumentFieldSchema fromJson(JsonReader jsonReader)
Reads an instance of DocumentFieldSchema from the JsonReader.
Parameters:
Returns:
Throws:
getDescription
public String getDescription()
Get the description property: Field description.
Returns:
getExample
public String getExample()
Get the example property: Example field content.
Returns:
getItems
public DocumentFieldSchema getItems()
Get the items property: Field type schema of each array element.
Returns:
getProperties
public Map
Get the properties property: Named sub-fields of the object field.
Returns:
getType
public DocumentFieldType getType()
Get the type property: Semantic data type of the field value.
Returns:
setDescription
public DocumentFieldSchema setDescription(String description)
Set the description property: Field description.
Parameters:
Returns:
setExample
public DocumentFieldSchema setExample(String example)
Set the example property: Example field content.
Parameters:
Returns:
setItems
public DocumentFieldSchema setItems(DocumentFieldSchema items)
Set the items property: Field type schema of each array element.
Parameters:
Returns:
setProperties
public DocumentFieldSchema setProperties(Map
Set the properties property: Named sub-fields of the object field.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java