|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: CParsedResultItem Class - Dynamsoft Code Parser SDK Android Edition API Reference |
| 4 | +description: This page shows CParsedResultItem Class of Dynamsoft Code Parser SDK Android Edition. |
| 5 | +keywords: CParsedResultItem, api reference, Android |
| 6 | +needAutoGenerateSidebar: true |
| 7 | +--- |
| 8 | + |
| 9 | +# ParsedResultItem Class |
| 10 | + |
| 11 | +```java |
| 12 | +class ParsedResultItem extends CapturedResultItem |
| 13 | +``` |
| 14 | + |
| 15 | + | Method | Description | |
| 16 | + |----------------------|-------------| |
| 17 | + | [`getCodeType`](#getcodetype) | Gets the code type of the parsed result. | |
| 18 | + | [`getFieldMappingStatus`](#getfieldmappingstatus) | Gets the mapping status of a specified field from the parsed result. | |
| 19 | + | [`getFieldValidationStatus`](#getfieldvalidationstatus) | Gets the validation status of a specified field from the parsed result. | |
| 20 | + | [`getFieldValue`](#getfieldvalue) | Gets the value of a specified field from the parsed result. | |
| 21 | + | [`getJsonString`](#getjsonstring) | Gets the parsed result as a JSON formatted string. | |
| 22 | + |
| 23 | +## getCodeType |
| 24 | + |
| 25 | +Gets the code type of the parsed result. |
| 26 | + |
| 27 | +```java |
| 28 | +String getCodeType(); |
| 29 | +``` |
| 30 | + |
| 31 | +**Return Value** |
| 32 | + |
| 33 | +Returns a string value representing the code type. |
| 34 | + |
| 35 | +## getJsonString |
| 36 | + |
| 37 | +Gets the parsed result as a JSON formatted string. |
| 38 | + |
| 39 | +```java |
| 40 | +String getJsonString(); |
| 41 | +``` |
| 42 | + |
| 43 | +**Return Value** |
| 44 | + |
| 45 | +Returns a JSON formatted string representing the parsed result. |
| 46 | + |
| 47 | +## getFieldValue |
| 48 | + |
| 49 | +Gets the value of a specified field from the parsed result. |
| 50 | + |
| 51 | +```java |
| 52 | +String getFieldValue(String fieldName); |
| 53 | +``` |
| 54 | + |
| 55 | +**Parameters** |
| 56 | + |
| 57 | +`[in] fieldName`: The name of the field. |
| 58 | + |
| 59 | +**Return Value** |
| 60 | + |
| 61 | +Returns a string representing the specified field value. |
| 62 | + |
| 63 | +## getFieldMappingStatus |
| 64 | + |
| 65 | +Gets the mapping status of a specified field from the parsed result. |
| 66 | + |
| 67 | +```java |
| 68 | +EnumMappingStatus getFieldMappingStatus(String fieldName); |
| 69 | +``` |
| 70 | + |
| 71 | +**Parameters** |
| 72 | + |
| 73 | +`[in] fieldName`: The name of the field. |
| 74 | + |
| 75 | +**Return Value** |
| 76 | + |
| 77 | +Returns a [MappingStatus]({{ site.enumerations }}code-parser/mapping-status.html?lang=android) enumeration value representing the mapping status of a specified field. |
| 78 | + |
| 79 | +**See Also** |
| 80 | + |
| 81 | +[MappingStatus]({{ site.enumerations }}code-parser/mapping-status.html?lang=android) |
| 82 | + |
| 83 | +## getFieldValidationStatus |
| 84 | + |
| 85 | +Gets the validation status of a specified field from the parsed result. |
| 86 | + |
| 87 | +```java |
| 88 | +EnumValidationStatus getFieldValidationStatus(String fieldName); |
| 89 | +``` |
| 90 | + |
| 91 | +**Parameters** |
| 92 | + |
| 93 | +`[in] fieldName`: The name of the field. |
| 94 | + |
| 95 | +**Return Value** |
| 96 | + |
| 97 | +Returns a [ValidationStatus]({{ site.enumerations }}code-parser/validation-status.html?lang=android) enumeration value representing the validation status of a specified field. |
| 98 | + |
| 99 | +**See Also** |
| 100 | + |
| 101 | +[ValidationStatus]({{ site.enumerations }}code-parser/validation-status.html?lang=android) |
| 102 | + |
| 103 | +## getParsedFields |
| 104 | + |
| 105 | +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. |
| 106 | + |
| 107 | +```java |
| 108 | +HashMap<String, String> getParsedFields(); |
| 109 | +``` |
| 110 | + |
| 111 | +**Return Value** |
| 112 | + |
| 113 | +A HashMap that contains the names and values of the parsed fields. |
0 commit comments