Uploaded image for project: 'JBoss XML Binding (JBossXB)'
  1. JBoss XML Binding (JBossXB)
  2. JBXB-40

Support for plugable serializer/deserializer

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: JBossXB-1.0RC2
    • Labels:
      None

      Description

      The CTS uses soap encoded arrays as bean properties

      <complex-type name="MyBeanType">
      <sequence>
      <element name="intValue" type="xsd:int"/>
      <element name="arrValue" type="soap:Array" soap:arrayType="xsd:int[2]" />
      </sequence>
      </complex-type>
      <element name="myBean" type="MyBeanType"/>

      <myBean>
      <intValue>5</intValue>
      <soap:Array soap:arrayType="xsd:int[2]">
      <value>5</value>
      <value>6</value>
      <soap:Array>
      </myBean>

      I would like to see an API for a plugable serializer like this

      marshaller.registerSerializer(QName xmlType, Serializer ser);

      JBossXB would then delegate to the registered serializer when the associated type is encountered.

      See SerializerSupport

      /** Serialize an object value to an XML fragment

      • @param xmlName The root element name of the resulting fragment
      • @param xmlType The associated schema type
      • @param serContext The serialization context
        */
        public abstract String serialize(QName xmlName, QName xmlType, Object value, SerializationContextImpl serContext) throws BindingException;

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aloubyansky Alexey Loubyansky
                  Reporter:
                  thomas.diesler Thomas Diesler
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: