[ 
https://issues.apache.org/jira/browse/WODEN-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527541
 ] 

Dan Harvey commented on WODEN-140:
----------------------------------

After looking into these two different options 1) makes more sense for Woden at 
the moment in time to keep a consistent style of return types with the API. 
This is the option I have implemented and added in the final patch "woden-140 - 
namespace scope.patch" to the 140 branch. Option 2) would probably be tidier 
with newer versions of java but would require larger changes to Woden to have a 
consistent API. As there are very little code differences for the 
implementation of 1) and 2) it can very easily be changed over when a future 
revision of the Woden API happens.

This solves the issue specified in this Jira and adds scope support for 
namespaces on any wsdl element.

> 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: Dan Harvey
>             Fix For: M8
>
>         Attachments: woden-140 - namespace scope.patch, Woden-140.patch.txt, 
> woden140_option1.patch, woden140_option2.patch
>
>
> 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]

Reply via email to