PAJES 2.3.9

org.pajes.util
Class ProperCaseString

java.lang.Object
  extended byorg.pajes.util.ProperCaseString

public class ProperCaseString
extends java.lang.Object

Utility class for converting a String into a properly cased String.


Constructor Summary
ProperCaseString()
          Creates an object to properly case strings.
ProperCaseString(java.lang.String string, boolean spaces)
          Creates a properly cased string.
 
Method Summary
 ProperCaseString setSpaces(boolean spaces)
          Determines if the result should be returned with spaces separating the words or not.
 ProperCaseString setString(java.lang.String string)
          Specifies the string to be properly cased.
 java.lang.String toString()
          Over-rides the toString() method from Object to convert the string to a properly cased string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProperCaseString

public ProperCaseString()
Creates an object to properly case strings.


ProperCaseString

public ProperCaseString(java.lang.String string,
                        boolean spaces)
Creates a properly cased string.

Parameters:
string - the string that is to be converted.
spaces - true if the string is to be returned with spaces separating the words, or false if the words are to be concatenated with no spaces.
Method Detail

setSpaces

public ProperCaseString setSpaces(boolean spaces)
Determines if the result should be returned with spaces separating the words or not.

Parameters:
spaces - true if the string is to be returned with spaces separating the words, or false if the words are to be concatenated with no spaces.
Returns:
the modified ProperCaseString object.

setString

public ProperCaseString setString(java.lang.String string)
Specifies the string to be properly cased.

Parameters:
string - the string that is to be converted.
Returns:
the modified ProperCaseString object.

toString

public java.lang.String toString()
Over-rides the toString() method from Object to convert the string to a properly cased string.

Returns:
the original string, properly cased.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.