castor
  1. castor
  2. CASTOR-1722

Add support for validating <xsd:IDREF> types elements/attributes

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.5
    • Fix Version/s: 1.1 M2
    • Component/s: XML code generator
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Currently, the Castor XML code generator does not create any special validation logic for <xsd:IDREF> typed elements/attributes. As a result, it is currently impossible to assess that ...

      a) a content element typed with <xsd:IDREF> is not empty.
      b) a content element typed with <xsd:IDREF> does point to an existing <xsd:ID> instance.

      The idea is to create a new IdRefValidator and modify the XML code generator to make sure that this new validator is called accordingly.

        Issue Links

          Activity

          Hide
          Werner Guttmann added a comment -

          Patch for review.

          Observations:

          • I do have (locally) a JUnit test suite that covers all aspects of validation related to IDREF and IDREFs. I still need to transfer this to the CTF.
          • Strangely enough, there's existing IDREF(s) tests that now fail .. which is odd at least.
          Show
          Werner Guttmann added a comment - Patch for review. Observations: I do have (locally) a JUnit test suite that covers all aspects of validation related to IDREF and IDREFs. I still need to transfer this to the CTF. Strangely enough, there's existing IDREF(s) tests that now fail .. which is odd at least.

            People

            • Assignee:
              Werner Guttmann
              Reporter:
              Werner Guttmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified