src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java
/**
     * Sanitizes a string so that it can be used in generated code. 
     * 
     * @param name
     * @return
     */
Sanitizes a string so that it can be used in generated code.

@param name
@return
Sanitizes a string so that it can be used in generated code . @param name @return
public static String sanitizeString( String name)
    {
        int i;
        String sanitisedName=name;
        for (i=0; i<name.length() && name.charAt(i) == TypeMap.ANON_TOKEN_CHAR; ++i);
        sanitisedName = name.substring(i);
        for(i=0; i < Array.getLength(c_invalidCChars); i++)
            sanitisedName = sanitisedName.replace((char)c_invalidCChars[i], '_'); 
        sanitisedName = resolveWSDL2LanguageNameClashes(sanitisedName);
        return sanitisedName;
    }
public static String sanitizeString ( String name ) { int i ; String sanitisedName = name ; for ( i = 0 ; i < name . length ( ) && name . charAt ( i ) == TypeMap . ANON_TOKEN_CHAR ; ++ i ) ; sanitisedName = name . substring ( i ) ; for ( i = 0 ; i < Array . getLength ( c_invalidCChars ) ; i ++ ) sanitisedName = sanitisedName . replace ( ( char ) c_invalidCChars [ i ] , '_' ) ; sanitisedName = resolveWSDL2LanguageNameClashes ( sanitisedName ) ; return sanitisedName ; }
Sanitizes a string so that it can be used in generated code.
Sanitizes a string so that it can be used in generated code .
// Anonymous names start with '>'. For example, '>Type'. However, if it was  // nested, then it would be something like '>>Type>Type2'.  // We should really be nice and get the name after last '>', but will wait and // simply remove starting '>'. // Now replace invalid character with '_' // Now ensure that string does not conflict with language constructs