Package src :: Package com :: Package deviceatlas :: Package device :: Module dynamic_string_extractor :: Class DynamicStringExtractor
[frames] | no frames]

Class DynamicStringExtractor

dynamic_value_extractor.DynamicValueExtractor --+
                                                |
                                               DynamicStringExtractor

The "string" dynamic value extractor extracts a dynamic value without validating the extracted value.

@author DeviceAtlas Limited

Instance Methods
 
__init__(self, before_delimiter, after_delimiter)
 
get_dynamic_value(self, identifier, start_index)
Extracts the characters between a valid delimiter and up to the next delimiter.
Method Details

get_dynamic_value(self, identifier, start_index)

 

Extracts the characters between a valid delimiter and up to the next delimiter. The ending delimiter can be any delimiter but the starting delimiter must match the defined "delimiterBeforeDynamicValue". The extracted value is not validated and is returned as is.

@param identifier The identifier string to extract the dynamic value from @param startIndex The character index in the identifier where the dynamic value starts @return The dynamic value string or null if no dynamic value found.

:param identifier: :param start_index: :return:

Overrides: dynamic_value_extractor.DynamicValueExtractor.get_dynamic_value