ParsedResultItem Class
The ParsedResultItem
class represents a parsed result item generated by code parser engine.
Definition
Module: dynamsoft_code_parser
Inheritance: CapturedResultItem -> ParsedResultItem
class ParsedResultItem(dynamsoft_core.CapturedResultItem)
Methods
Method | Description |
---|---|
get_code_type |
Gets the code type of the parsed result. |
get_field_value |
Gets the value of a specified field from the parsed result. |
get_field_mapping_status |
Gets the mapping status of a specified field from the parsed result. |
get_field_validation_status |
Gets the validation status of a specified field from the parsed result. |
get_json_string |
Gets the parsed result as a JSON formatted string. |
get_code_type
Gets the code type of the parsed result.
def get_code_type(self) -> str:
Return Value
Returns a string value representing the code type.
get_field_value
Gets the value of a specified field from the parsed result.
def get_field_value(self, field_name: str) -> str:
Parameters
field_name
The name of the field.
Return Value
Returns a string representing the specified field value.
get_field_mapping_status
Gets the mapping status of a specified field from the parsed result.
def get_field_mapping_status(self, field_name: str) -> int:
Parameters
field_name
The name of the field.
Return Value
Returns an EnumMappingStatus
value representing the mapping status of a specified field.
See Also
get_field_validation_status
Gets the validation status of a specified field from the parsed result.
def get_field_validation_status(self, field_name: str) -> int:
Parameters
field_name
The name of the field.
Return Value
Returns an EnumValidationStatus
value representing the validation status of a specified field.
See Also
get_json_string
Gets the parsed result as a JSON formatted string.
def get_json_string(self) -> str:
Return Value
Returns a JSON formatted string representing the full parsed result.