XStream
  1. XStream
  2. XSTR-355

use type attribute in XML and annotations as attributes

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      1.3 and 1.5+

      Description

      1. Make PreprocessingConverter capable of

      • catching class/field XML tag formation
      • managing list of PreprocessingListener and passing there tag events
        2. make Type2AttribListener which adds type attribute with class name
        3. make Annotation2AttribListener which adds attribute from Java5 annotations

      Implementation:

      • extension package, no current code change needed
      • 1,2 JRE 1.3;
      • Annotation2AttribListener JRE 1.5+

      In wish list

      • add events "In Begginig of tag body" "In End of tag body" ( say, for XML comments)
      • optionally exclude from attributes some of annotaions: XStream control, J2EE, user defined. Or use permitted annotations list. (Configuration on level Annotation2AttribListener)

      The prove of concept:
      http://javasa.org/~suns/demos/AnnotationTest/

      Extension library:
      http://javasa.org/~suns/demos/J2XmlExpansion/

        People

        • Assignee:
          Unassigned
          Reporter:
          Sasha Firsov
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: