cucumber/cucumber-jvm — Issue #72: Allow XStream conversion to custom Maps
Author: nightscape
Created: 2011-10-24 17:42:52+00:00
State: open

Sorry for bugging again ;)

We have a quite specific use case for converting to Maps. In cucumber and cuke4duke we have tables like the following:

| name | length:i | words[] |
| great | 5 | great, grand, enormous |

We use Transform steps in cucumber and @Transform methods in cuke4duke to read tables like and use the "type information" provided in the header to convert them into arrays of hashes / lists of maps like the following

```ruby
{ "name" => "great", "length" => 5, "words" => ["great", "grand", "enormous"]}
```

Is there a way to allow such a conversion in cucumber-jvm or will @Transform methods eventually be back?
If not, where would I best start in implementing this feature (maybe another HierarchicalStreamReader subclass, or better a custom XStream Converter)?

Best regards
Martin