axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjiva Weerawarana <sanj...@opensource.lk>
Subject Re: svn commit: r396384 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisService.java
Date Mon, 24 Apr 2006 03:35:48 GMT
On Mon, 2006-04-24 at 02:37 +0000, dims@apache.org wrote:
>      public void setSchema(XmlSchema schema) {
>          schemaList.add(schema);
> -        addScheamNameSpace(schema.getTargetNamespace());
> +        addSchemaNameSpace(schema.getTargetNamespace());
> +    }
> +
> +    public void setSchema(Collection schemas) {
> +        Iterator iterator = schemas.iterator();
> +        while(iterator.hasNext()){
> +            XmlSchema schema = (XmlSchema)iterator.next();
> +            schemaList.add(schema);
> +            addSchemaNameSpace(schema.getTargetNamespace());
> +        }
>      }

s/setSchema/setSchemaCollection/ ?

I'm personally not a big fan of overloading ;-).

Sanjiva.


Mime
View raw message