[
https://issues.apache.org/jira/browse/WSCOMMONS-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Saliya Ekanayake updated WSCOMMONS-278:
---------------------------------------
Attachment: patch2.txt
Andreas,
I am not sure how the previous patch would violate either the DOM or Axiom
contract. Both contracts agree to just return the namespace URI if any. Thus by
defining a getNamespaceURI() method on OMElement interface make it possible for
OMElements to adhere to the contract. The Element (DOM) interface too has the
same method and an implementation is provided in ElementImpl class.
Initially I decided to return a string literal in the case of null namespace
just to be similar as in java.lang.String valueOf(obj) operator. I mean simply
to give out a string in all cases without returning null. Anyway it seems that
this is unnecessary for this case and I changed the implementation.
Thanks,
Saliya
> Need OMElement.getNamespaceURI() convenience method
> ---------------------------------------------------
>
> Key: WSCOMMONS-278
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-278
> Project: WS-Commons
> Issue Type: Improvement
> Components: AXIOM
> Reporter: Glen Daniels
> Assignee: Glen Daniels
> Fix For: Axiom 1.3
>
> Attachments: patch.txt, patch2.txt
>
>
> It is extremely *in*convenient to constantly have to type
> element.getNamespace().getNamespaceURI() in order to simply get the String
> namespace from an OMElement. :) We should add a convenience method
> OMElement.getNamespaceURI().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.