ParsedResultItem Class
The ParsedResultItem class represents a parsed result item generated by code parser engine.
Definition
Namespace: Dynamsoft.DCP
Inheritance: CapturedResultItem -> ParsedResultItem
public class ParsedResultItem : CapturedResultItem
Methods
| Method | Description |
|---|---|
GetCodeType |
Gets the code type of the parsed result. |
GetFieldValue |
Gets the value of a specified field from the parsed result. |
GetFieldRawValue |
Gets the raw value of a specified field from the parsed result. |
GetFieldMappingStatus |
Gets the mapping status of a specified field from the parsed result. |
GetFieldValidationStatus |
Gets the validation status of a specified field from the parsed result. |
GetJsonString |
Gets the parsed result as a JSON formatted string. |
GetFieldCount |
Gets the total number of parsed fields. |
GetFieldName |
Gets the name of a specific parsed field by its index. |
GetCodeType
Gets the code type of the parsed result.
string GetCodeType()
Return Value
Returns a string value representing the code type.
GetFieldValue
Gets the value of a specified field from the parsed result.
string GetFieldValue(string fieldName)
Parameters
[in] fieldName The name of the field.
Return Value
Returns a string representing the specified field value.
GetFieldRawValue
Gets the raw value of a specified field from the parsed result.
string GetFieldRawValue(string fieldName)
Parameters
[in] fieldName The name of the field.
Return Value
Returns a string representing the specified field raw value.
GetFieldMappingStatus
Gets the mapping status of a specified field from the parsed result.
EnumMappingStatus GetFieldMappingStatus(string fieldName)
Parameters
[in] fieldName The name of the field.
Return Value
Returns an EnumMappingStatus value representing the mapping status of a specified field.
See Also
GetFieldValidationStatus
Gets the validation status of a specified field from the parsed result.
EnumValidationStatus GetFieldValidationStatus(string fieldName)
Parameters
[in] fieldName The name of the field.
Return Value
Returns an EnumValidationStatus value representing the validation status of a specified field.
See Also
GetJsonString
Gets the parsed result as a JSON formatted string.
string GetJsonString()
Return Value
Returns a JSON formatted string representing the full parsed result.
GetFieldCount
Gets the total number of parsed fields.
int GetFieldCount()
Return Value
Returns an integer representing the count of parsed fields.
GetFieldName
Gets the name of a specific parsed field by its index.
string GetFieldName(int index)
Parameters
[in] index The index of the parsed field.
Return Value
Returns a string representing the specified field name.
If the field is nested, the name includes all parent fields, separated by a dot (.). The format follows this pattern: