src/wsdl/org/apache/axis/wsdl/wsdl2ws/CUtils.java
/**
     * Sanitizes a string so that it can be used in generated code. 
     * The '*' character is not touched.
     * 
     */
Sanitizes a string so that it can be used in generated code.
The '*' character is not touched.
Sanitizes a string so that it can be used in generated code . The ' * ' character is not touched .
public static String sanitizeStringWithSplats( String name)
    {
        if (name == null)
            return name;
        String sanitisedName=name.trim();
        int i = -1;
        if (sanitisedName.endsWith("*"))
            i = sanitisedName.lastIndexOf('*');
        String suffix = "";
        String prefix = sanitisedName;
        if (i != -1)
        {
            suffix = sanitisedName.substring(i);
            prefix = sanitisedName.substring(0, i).trim();
        }
        sanitisedName = sanitizeString(prefix) + suffix;
        return sanitisedName;
    }
public static String sanitizeStringWithSplats ( String name ) { if ( name == null ) return name ; String sanitisedName = name . trim ( ) ; int i = - 1 ; if ( sanitisedName . endsWith ( "*" ) ) i = sanitisedName . lastIndexOf ( '*' ) ; String suffix = "" ; String prefix = sanitisedName ; if ( i != - 1 ) { suffix = sanitisedName . substring ( i ) ; prefix = sanitisedName . substring ( 0 , i ) . trim ( ) ; } sanitisedName = sanitizeString ( prefix ) + suffix ; 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 .