Support nested elements in @Key annotation #89
Labels
imported
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
From jcwen...@gmail.com on December 06, 2010 06:28:41
The @key("param") annotation does not support nested tags per Partial Response idioms. For example: @key("gf:symbol/@symbol") should return the symbol attribute from the symbol element within the element being parsed, without requiring the user to create a new class as an intermediary. 1.2.1-alpha fails to parse and returns null. Support for nested elements would be of great help in parsing as some of the Google APIs nest rather deeply and it would be useful to be able to flatten the structure somewhat. Another example is @key("gf:positionData/gf:marketValue/gf:money/@amount" -- Does that really need three nested classes to parse?
Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=72
The text was updated successfully, but these errors were encountered: