axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-c-...@ws.apache.org
Subject [jira] Closed: (AXISCPP-122) Provision of BasicNode::createAttribute(localname, value)
Date Fri, 15 Oct 2004 07:00:51 GMT
Message:

   The following issue has been closed.

   Resolver: Roshan Weerasuriya
       Date: Thu, 14 Oct 2004 11:59 PM

added the required feature
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXISCPP-122

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXISCPP-122
    Summary: Provision of BasicNode::createAttribute(localname, value)
       Type: Improvement

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Axis-C++
   Versions:
             1.3 Beta

   Assignee: Roshan Weerasuriya
   Reporter: Adrian Dick

    Created: Mon, 9 Aug 2004 7:27 AM
    Updated: Thu, 14 Oct 2004 11:59 PM
Environment: N/A

Description:
Recently the following methods have been added to BasicNode, to allow the addition of attributes:
    IAttribute* createAttribute(const AxisChar* localname, 
            const AxisChar* prefix, const AxisChar* uri, 
            const AxisChar* value);
and:
    IAttribute* createAttribute(const AxisChar* localname,
        const AxisChar* prefix, const AxisChar* value);

But, it is also legitimate to have an attribute with just a localname and value.   As such,
I propose the addition of the following method to the BasicNode:
    IAttribute* createAttribute(const AxisChar* localname,
            const AxisChar* value);

For ComplexElement this would be implemented as:
IAttribute* ComplexElement::createAttribute(const AxisChar *localname,
        const AxisChar *value)
{
    Attribute* pAttribute = new Attribute(localname, "", value);
    m_attributes.push_back(pAttribute);
    
    return (IAttribute*)pAttribute;
}


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message