axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinath Perera <hemap...@gmail.com>
Subject Re: [Axis2] OM QNames
Date Tue, 14 Dec 2004 01:28:49 GMT
On Mon, 13 Dec 2004 12:25:07 -0500, Glen Daniels <glen@thoughtcraft.com> wrote:
> Aleksander Slominski wrote:
> 
> 
> > Glen Daniels wrote:
> >
> >> Hi Sanjiva, all:
> >>
> >> Sanjiva Weerawarana wrote:
> >>
> >>> "Eran Chinthaka" <chinthaka@opensource.lk> writes:
> >>>
> >>>> We must have a method to retrieve an attribute, given a QName.
> >>>
> >>>
> >>>
> >>> I think we should have two functions for this purpose:
> >>>     OmAttribute getAttribute (QName qname)
> >>>     OmAttribute getAttribute (String namespace, String name)
> >>
> >>
> > or
> >   OmAttribute getAttribute (OmNamespace namespace, String name)
> >
> > and do not worry that users put arguments in wrong order and be
> > surprised their attributes are not found ...
> 
> -1
> 
> I think forcing people to use this "OMNamespace" thing is bad bad bad.
> Why do I care about a prefix/uri mapping if what I'm looking for is a
> particular attribute namespace/localName pair?  I really think they can
> handle methods with two Strings (no one has complained about that in
> Axis 1.X that I know of).
I agree with Glen ... this is one of the two points that causes the
this thread to start. I feel better design is to hide the OMNamesapce
behind the impl and remove it from the interface!

Mime
View raw message