ParsedResultItem Class
The ParsedResultItem class represents a parsed result item generated by code parser engine.
Definition
Package: com.dynamsoft.dcp
Inheritance: CapturedResultItem -> ParsedResultItem
public class ParsedResultItem extends 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. |
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. |
getFieldRawValue |
Gets the raw string of a specified field from the parsed result. |
getFieldCount |
Gets the count of parsed fields. |
getFieldName |
Gets the name of a field at the specified index. |
getCodeType
Gets the code type of the parsed result.
public String getCodeType()
Return Value
Returns a string value representing the code type.
getFieldValue
Gets the value of a specified field from the parsed result.
public String getFieldValue(String fieldName)
Parameters
fieldName The name of the field.
Return Value
Returns a string representing the specified field value.
getFieldMappingStatus
Gets the mapping status of a specified field from the parsed result.
public @EnumMappingStatus int getFieldMappingStatus(String fieldName)
Parameters
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.
public @EnumValidationStatus int getFieldValidationStatus(String fieldName)
Parameters
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.
public String getJsonString()
Return Value
Returns a JSON formatted string representing the full parsed result.
getFieldRawValue
Gets the raw string of a specified field from the parsed result.
public String getFieldRawValue(String fieldName)
Parameters
fieldName The name of the field.
Return Value
Returns a string representing the specified field raw string.
getFieldCount
Gets the count of parsed fields.
public int getFieldCount()
Return Value
Returns an integer representing the count of parsed fields.
getFieldName
Gets the name of a field at the specified index.
public String getFieldName(int index)
Parameters
index The index of the field.
Return Value
Returns a string representing the field name at the specified index.
If the field is nested, the name includes all parent fields, separated by a dot (.). The format follows this pattern: