Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-136

xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5
    • 3.6
    • spring
    • None

    Description

      with

      +    /**
      +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
      +    */
      +    public void setVolumeWithPropertyEditor(long volume) {
      +    	this.volume = volume;
      +    }
      

      the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

      Attachments

        1. xbean-136.diff.patch
          7 kB
          Gary Tully

        Activity

          People

            djencks David Jencks
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: