Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-90

Simple type derivation relationship lost when binding DTO is translated to DOM and back.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • None
    • 3658

      Having model:

       

      typedef uri {
        type string;
      }
      typedef specialized-uri {
        type uri;
      }
      
      container data {
        leaf value {
          type uri;
        }
      }

       

      Will result in following class hierarchy for typedefs:

      SpecializedUri extends Uri

      Container data will have builder with setValue(Uri value) method, which can accept also SpecializedUri,
      but when serializing / deserializing data - this information that originally SpecializedUri was used is lost and returned value is only of type Uri.

            Unassigned Unassigned
            tony.tkacik@gmail.com Tony Tkacik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: