axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Created: (AXIS-1307) SOAPElement and Text should be mutually exclusive
Date Tue, 13 Apr 2004 11:49:43 GMT

  A new issue has been created in JIRA.

View the issue:

Here is an overview of the issue:
        Key: AXIS-1307
    Summary: SOAPElement and Text should be mutually exclusive
       Type: Improvement

     Status: Unassigned
   Priority: Major

    Project: Axis
             Basic Architecture
             current (nightly)

   Reporter: Brian Ewins

    Created: Tue, 13 Apr 2004 4:49 AM
    Updated: Tue, 13 Apr 2004 4:49 AM

In SAAJ, javax.xml.soap.Text does not extend javax.xml.soap.SOAPElement; having it do so would
be counterintuitive when compared to the DOM equivalents. However, in axis, org.apache.axis.message.Text
extends org.apache.axis.message.MessageElement, which implements SOAPElement.

This means that to find element nodes which /actually are/ elements you have to do an extra

if (!(obj instanceof Text)) {

A possible solution: move the "implements SOAPElement" from MessageElement to a new class
org.apache.axis.message.SOAPElement extends MessageElement, with an empty class body. Since
the other SOAPElement implementations in the package already "implement SOAPElement" by virtue
of implementing SOAPBodyElement, Detail, etc, this should be the only change required.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message