HomePhabricator

wbparsevalue should use datatype.

Authored by daniel.

Description

wbparsevalue should use datatype.

This introduces the new 'datatype' parameter to wbparsevalue, which allows
the parsing to be based on the input value's datatype, instead of directly
picking a parser by name using the 'parser' parameter.

This deprecated 'parser' in favor of 'datatype'. Old parser names remain usable
via the 'parser' parameter.

This change includes a complete rewrite of the unit test, to allow the DataTypeFactory
to be mocked.

Bug: T104876
Change-Id: I3207642e8a9f558618d96e980f5973d4351c5988

Details

Committed
danielAug 4 2015, 10:32 AM
Parents
rEWBA3e2d24d06c5f: Remove unused V4GuidGenerator
Branches
Unknown
Tags
Unknown
References
refs/changes/61/223061/6
ChangeId
I3207642e8a9f558618d96e980f5973d4351c5988