ntlcn / xmappr

Automatically exported from code.google.com/p/xmappr
0 stars 0 forks source link

Allow 'converter' and/or 'targetType' attributes on wildcard mappings #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This should be possible (currently it's not allowed):

@RootElement
class Root{

  @Element(name="*", converter=MyConverter.class, targetType=SomeType.class)
  List number;
}

Default behavior: if wildcard mapping @Element("*") does not define
'converter' AND 'targetType', then DomElementConverter is used as converter.

Rationale: if all subelements are of the same type then it's possible to
convert them with and assgned converter.

Original issue reported on code.google.com by peter.kn...@gmail.com on 9 Dec 2009 at 11:41

GoogleCodeExporter commented 8 years ago
Also correct the documentation at
http://code.google.com/p/xmappr/wiki/MappingCollections#Wildcard_mapping

Original comment by peter.kn...@gmail.com on 9 Dec 2009 at 11:42

GoogleCodeExporter commented 8 years ago

Original comment by peter.kn...@gmail.com on 10 Dec 2009 at 7:25

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r223.

Original comment by peter.kn...@gmail.com on 10 Dec 2009 at 9:43

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r224.

Original comment by peter.kn...@gmail.com on 10 Dec 2009 at 10:11

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r226.

Original comment by peter.kn...@gmail.com on 10 Dec 2009 at 7:39