Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any annotations can support both attribute and sub tags #344

Closed
seiyafei opened this issue Sep 6, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@seiyafei
Copy link

seiyafei commented Sep 6, 2023

<parms> <parm name="AAA">BBBBB</parm> <parm name="CCC">DDDDD</parm> </parms>

Is there any annotations can support both attribute and sub tags like this?How should my class be written?

@joehni joehni self-assigned this Sep 6, 2023
@joehni joehni added the question label Sep 6, 2023
@joehni
Copy link
Member

joehni commented Sep 6, 2023

You can use the ToAttributedValueConverter and register it either for a specific type or as local converter. Registration of a converter can be done with annotation XStreamConverter. See unit test c.t.acceptance.annotations.ParameterizedConverterTest for examples.

@joehni joehni closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants