[
https://issues.apache.org/jira/browse/WODEN-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519943
]
John Kaputin commented on WODEN-140:
------------------------------------
Need something like a class called NamespaceMap with methods to:
put a key/value pair consisting of a prefix and NS uri
get a NS uri for a specified prefix arg
get a prefix for a specified NS uri
The getNamespaces() method would return a NamespaceMap instead of java.util.Map
and calling code must be changed to use this API instead of Map.
The set/getNamespace methods on DescriptionElement possibly become redundant
with the introduction of NamespaceMap, but maybe still useful as convenience
methods. However, there's more work to do on supporting namespace declarations
across the WSDL model, which I'll raise as a new JIRA.
> DescriptionElement.getNamespaces() should have a type-safe return type
> ----------------------------------------------------------------------
>
> Key: WODEN-140
> URL: https://issues.apache.org/jira/browse/WODEN-140
> Project: Woden
> Issue Type: Improvement
> Components: Parser
> Reporter: John Kaputin
> Assignee: John Kaputin
> Fix For: M8
>
>
> The DescriptionElement.getNamespaces() method currently returns a Map
> containing pairs of prefix String and namespace URI. In keeping with woden
> design goals and the rest of the API, this method should use a type-safe
> return type. Map, List, etc represent their content as java.lang.Object which
> requires casting.
--
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]