axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McCullough, Ryan" <rmccullo...@rightnow.com>
Subject suggested patch: _array class should have exposed size()
Date Fri, 30 May 2008 17:14:52 GMT
I added a public 'int size();' to my *_Array classes. It is useful for
determining the size of the _Array.

 

In ArrayParamHeaderWriter.java->writeMethods() add

writer.write("\t\tint size();\n");

 

In ArrayParamWriter.java->writeMethods() add

this.writeSizeMethod();

 

Add this method:

    /**

     * @throws WrapperFault

     */

    protected void writeSizeMethod() throws WrapperFault

    {

        try

        {

            writer.write("int " + classname + "::" + "size()\n");

            writer.write("{\n");

            writer.write("\treturn m_Size;\n");

            writer.write("}\n\n");

        }

        catch (IOException e)

        {

            throw new WrapperFault(e);

        }

    }

 

 

 

Ryan McCullough | RightNow Technologies | Integration Tools Engineer

406-556-3162 office | Bozeman, MT |  <mailto:rmccullough@rightnow.com>
rmccullough@rightnow.com |  <http://www.rightnow.com/>
http://www.rightnow.com

 


Mime
View raw message