Resource Base
Table of contents

ParsedResultItem Class

ParsedResultItem it the basic unit of a parsed result. It stores the field name, value and additional information.

Definition

Namespace: com.dynamsoft.dcp

Assembly: DynamsoftCodeParser.aar

class ParsedResultItem extends CapturedResultItem
Method Description
getCodeType Gets the code type of 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.
getFieldValue Gets the value of a specified field from the parsed result.
getJsonString Gets the parsed result as a JSON formatted string.

getCodeType

Gets the code type of the parsed result.

String getCodeType();

Return Value

Returns a string value representing the code type. It can be one of the following:

  • “AADHAAR”
  • “AAMVA_DL_ID”
  • “AAMVA_DL_ID_WITH_MAG_STRIPE”
  • “MRTD_TD1_ID”
  • “MRTD_TD2_ID”
  • “MRTD_TD2_VISA”
  • “MRTD_TD3_PASSPORT”
  • “MRTD_TD3_VISA”
  • “MRTD_TD2_FRENCH_ID”
  • “SOUTH_AFRICA_DL”
  • “VIN”

getJsonString

Gets the parsed result as a JSON formatted string.

String getJsonString();

Return Value

Returns a JSON formatted string representing the parsed result.

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.

getFieldMappingStatus

Gets the mapping status of a specified field from the parsed result. Certain fields in the parsed result, such as the residing province or state, are abbreviated (e.g. BC standing for British Columbia). The library takes such fields and maps them to their full form. If the mapping is successful, the MappingStatus will be MS_SUCCEEDED. To learn of the other options of MappingStatus, please refer to the link below.

EnumMappingStatus getFieldMappingStatus(String fieldName);

Parameters

[in] fieldName: The name of the field.

Return Value

Returns a MappingStatus enumeration value representing the mapping status of a specified field.

See Also

MappingStatus

getFieldValidationStatus

Gets the validation status of a specified field from the parsed result. Certain fields can be validated with one of four possible validation methods: certification, checksum, length, and regex. Whether a field is validated or not, as well as the validation method, is determined by the code specification e.g. AAMVA specification.

EnumValidationStatus getFieldValidationStatus(String fieldName);

Parameters

[in] fieldName: The name of the field.

Return Value

Returns a ValidationStatus enumeration value saying whether the validation of a specified field was successful, failed, or if it did not require validation.

See Also

ValidationStatus

getParsedFields

Get the field names and values of the parsed fields as a HashMap. The field names are stored as the key of the HashMap while the field values are stored as the value.

HashMap<String, String> getParsedFields();

Return Value

A HashMap that contains the names and values of the parsed fields.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.0.21
      • Version 2.0.20
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support