XStream
  1. XStream
  2. XSTR-500

Provide wildcard for field names

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Core
    • Labels:
      None

      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

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Michel Zanini
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: