dev@jax-ws.java.net

[Fwd: getName() on WSDL objects?]

From: Fabian Ritzmann <Fabian.Ritzmann_at_Sun.COM>
Date: Tue, 04 Sep 2007 10:53:03 +0300

Oops, this went to the wrong mailing list originally.


attached mail follows:



Hi,

All classes I know that derive from
com.sun.xml.ws.api.model.wsdl.WSDLObject have a getName() method. Most
of them return a QName, e.g.:
http://kohsuke.sfbay/hudson/job/jaxws-ri-2.1.3/javadoc/com/sun/xml/ws/api/model/wsdl/WSDLOperation.html#getName()

Some however return a String, e.g.:
http://kohsuke.sfbay/hudson/job/jaxws-ri-2.1.3/javadoc/com/sun/xml/ws/api/model/wsdl/WSDLOutput.html#getName()

Why do we make this distinction?

The policy code always operates on QNames. In those cases where
getName() returns a String, could we have an additional method that
returns a QName, e.g. getQName()?

Fabian