Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21936

Add Property.getXPath method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.1
    • Component/s: Core
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      New API: Property.getXPath()
      Deprecated: Property.getPath()

      Show
      New API: Property.getXPath() Deprecated: Property.getPath()
    • Sprint:
      nxFG 9.1.9
    • Story Points:
      2

      Description

      To get the XPath of a property one must currently call Property.getPath then do string replacement because the path:

      • contains an initial /
      • expresses list indexes using the old-style for foo/bar[123]/baz instead of the new-style foo/123/baz

      Adding a clean Property.getXPath method would simplify this. Note that this method will not add a schema name as prefix if the property's base schema doesn't have a namespace prefix defined.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h