Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1494

XML Schema API: Make it easier for applications to persist instances of ItemPSVI

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • XML Schema API
    • None

    Description

      When an application receives instances of ItemPSVI (i.e. ElementPSVI / AttributePSVI) the scope in which they can call methods on these objects is often limited (see PSVIProvider) to start and end element callbacks. If an application wishes to persist the data held by an ItemPSVI beyond this scope it needs to make a copy. To make it easier for users to copy these objects and determine when they need to make a copy I plan on adding the following methods to ItemPSVI:

      /**

      • Returns a reference to an immutable instance with the same data
      • that this instance of <code>ItemPSVI</code> currently has.
        */
        public ItemPSVI constant();

      /**

      • Returns <code>true</code> if this specific instance of
      • <code>ItemPSVI</code> is immutable, otherwise <code>false</code>.
        */
        public boolean isConstant();

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: