Singleton
caplin.element.parser

KeyValueParser

Implements caplin.element.Parser.
Substitues a mapped value with a value if the a mapped value exists otherwise it returns the value itself. The mAttributes argument should have the map holding the mappings in it's map key.

Constructor Summary

Attributes Name and Description
caplin.element.parser.KeyValueParser()

Method Summary

Attributes Name and Description
void parse(Variant vValue, Map mAttributes)

Substitues a mapped value with a value if the a mapped value exists othewise it returns the value itself.

Constructor Detail

caplin.element.parser.KeyValueParser()

Method Detail

void parse(Variant vValue, Map mAttributes)

Substitues a mapped value with a value if the a mapped value exists othewise it returns the value itself.

Parameters
Variant vValue the value which is expected to be mapped to a key in mAttributes.map
Map mAttributes the object which holds a map of key-value pairs in its "map" element.
Returns
the found key for the value or the value if the key was not found.