Details
Description
Provide funcionality to execute some operations in all attributes of a class. For example:
xstream.useAttributeFor(Book.class, "*") //all fields of Book class
or
xstream.useAttributeForAllType(Book.class) //all fields of type Book
insted of write all the field like:
xstream.useAttributeFor(Book.class, "author")
xstream.useAttributeFor(Book.class, "name")
xstream.useAttributeFor(Book.class, "price")
.... and so one
This can be made in several methods like these:
- xstream.omitField
- xstream.addImplicitCollection
- xstream.alias
Issue Links
- is related to
-
XSTR-344 Allow convert element with string body and attributes
Looks like a nice idea at first glance, however there have to be some considerations taken into account: