ParserResult Class Reference

Public Member Functions

String getJsonString ()
 
Field[] getFields ()
 
Map< String, FieldgetFieldsByName ()
 
Field[] getFieldsArray ()
 
Map< String, FieldgetFieldsDict ()
 

Detailed Description

Holds the result of a successfully parsed data string.

The result can be accessed in one of many ways:

  • Through an array of parser fields. The order of the fields in the array matches the order of how they appear in the data.
  • Through a dictionary (getFieldsByName).
  • through a jsonString.

The fields contained in the result are different for each type of parser. Consult the format documentation for more information.

Since
5.6

Member Function Documentation

String getJsonString ( )

The result object as a serialized JSON string.

Returns
The JSON string
Since
5.6
Field [] getFields ( )

The fields contained in the result as an array.

The order of the fields in array depends on the order of the fields in the input data.

Returns
The fields array
Since
5.6
Map<String, Field> getFieldsByName ( )

The fields contained in the result as a dictionary.

The entries in the dictionary map the field name to the parser field.

Returns
The fields map
Since
5.6
Field [] getFieldsArray ( )
Returns
The fields array
Map<String, Field> getFieldsDict ( )
Returns
The fields map

The documentation for this class was generated from the following file:
  • ParserResult.java