com.sun.xml.ws.util
Class StringUtils

java.lang.Object
  extended by com.sun.xml.ws.util.StringUtils

public class StringUtils
extends java.lang.Object


Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String capitalize(java.lang.String name)
          Utility method to take a string and convert it to normal a string with the first character in upper case.
static java.lang.String decapitalize(java.lang.String name)
          Utility method to take a string and convert it to normal Java variable name capitalization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

decapitalize

public static java.lang.String decapitalize(java.lang.String name)
Utility method to take a string and convert it to normal Java variable name capitalization. This normally means converting the first character from upper case to lower case, but in the (unusual) special case when there is more than one character and both the first and second characters are upper case, we leave it alone.

Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".

Parameters:
name - The string to be decapitalized.
Returns:
The decapitalized version of the string.

capitalize

public static java.lang.String capitalize(java.lang.String name)
Utility method to take a string and convert it to normal a string with the first character in upper case.

Thus "fooBah" becomes "FooBah" and "x" becomes "X".\

Parameters:
name - The string to be capitalized.
Returns:
The capitalized version of the string.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.