org.treebind
Class Util

java.lang.Object
  extended byorg.treebind.Util

public class Util
extends java.lang.Object

Class with some utility static methods.

Author:
Eric van der Vlist
See Also:
Name

Constructor Summary
Util()
           
 
Method Summary
static java.lang.String ToFirstUpper(java.lang.String string)
          Converts the first character of a String into upper case.
static java.lang.String ToUpperCamelCase(Name name)
          Converts the local part of a name to UpperCamelCase.
static java.lang.String ToUpperCamelCase(java.lang.String s)
          Converts a String to "UpperCamelCase" (UCC) : the string "upper-camel-case" is converted into "UpperCamelCase".
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

ToFirstUpper

public static java.lang.String ToFirstUpper(java.lang.String string)
Converts the first character of a String into upper case.

Parameters:
string - the string the convert
Returns:
the converted string

ToUpperCamelCase

public static java.lang.String ToUpperCamelCase(Name name)
Converts the local part of a name to UpperCamelCase.

Parameters:
name - the name
Returns:
the local name converted to UCC

ToUpperCamelCase

public static java.lang.String ToUpperCamelCase(java.lang.String s)
Converts a String to "UpperCamelCase" (UCC) : the string "upper-camel-case" is converted into "UpperCamelCase".

Parameters:
s - the string the convert
Returns:
the converted string