XML Schema API Usability improvements: java.util.List, java.util.Map and 
utility methods
----------------------------------------------------------------------------------------

                 Key: XERCESJ-1360
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1360
             Project: Xerces2-J
          Issue Type: Improvement
          Components: XML Schema API
    Affects Versions: 2.9.1
            Reporter: Michael Glavassevich


As a consequence of our choice to design XSModel in IDL instead of Java we 
ended up creating many list type interfaces and XSNamedMap. If we had started 
this work in Java we would have used java.util.List and java.util.Map instead, 
interfaces which are built into the Java class library that have first class 
support in the Collections API and are used by countless applications. To 
improve usability we should retrofit java.util.Map everywhere into the API 
where we are returning XSNamedMap and java.util.List everywhere in the API 
where we are returning the XSModel specific list types.

Also, we defined methods on the API which accept StringLists and LSInputLists 
but provided no methods for creating them. This forces users to create their 
own implementations. We should provide utility methods on the XSImplementation 
interface to eliminate this burden.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to