XFire
  1. XFire
  2. XFIRE-123

Consider @XmlElement's type value for type mapping

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-M5
    • Fix Version/s: 1.0-M6
    • Component/s: Aegis Module
    • Labels:
      None
    • Number of attachments :
      1

      Description

      The @XmlElement annotation includes a type element but its value is not considered in type mapping.

      Example:

      @XmlElement(type = "org.codehaus.xfire.aegis.type.basic.DateType")
      public Date getStartDate() {
      return startDate;
      }

      ...to switch from the default type (which would be xsd:dateTime for java.util.Date) to xsd:date.

      Attached is a patch for org.codehaus.xfire.aegis.type.basic.BeanTypeInfo (against the 1.0M5 version) to introduce this functionality. Unfortunately, it renders BeanTypeInfo dependant on Java 5, so this just a preliminary solution.

        Activity

        Hide
        Dan Diephouse added a comment -

        This is in cvs now. Should work with XML descriptors as well. Still need to work a bit on the @XmlType attribute though, so I'm going to leave this open.

        Show
        Dan Diephouse added a comment - This is in cvs now. Should work with XML descriptors as well. Still need to work a bit on the @XmlType attribute though, so I'm going to leave this open.
        Hide
        Dan Diephouse added a comment -

        I'm closing this because it seems to be working and no one is complaining.

        Show
        Dan Diephouse added a comment - I'm closing this because it seems to be working and no one is complaining.

          People

          • Assignee:
            Dan Diephouse
            Reporter:
            Sebastian Beigel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: