com.softwareag.tamino.db.api.common
Class TString

java.lang.Object
  extended by com.softwareag.tamino.db.api.common.TString

public class TString
extends java.lang.Object

TString is a collection of helpfull and repeating string manipulation tasks which are not covered by the JDK.

Version:
$Revision: 1.4 $
Author:
Stefan Liebig

Constructor Summary
TString()
           
 
Method Summary
static boolean isEmpty(java.lang.String string)
          Checks whether the given string is either null or empty.
static boolean isNumber(java.lang.String string)
          Checks whether the given string is a number (consists of digits).
static java.lang.String replace(java.lang.String string, java.lang.String what, java.lang.String with)
          Replaces in string 'string' the given sub-string 'what' with the contents of the string 'with'.
static java.lang.String stringize(java.lang.String string)
          "Stringizes" the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TString

public TString()
Method Detail

stringize

public static final java.lang.String stringize(java.lang.String string)
"Stringizes" the given string.

Parameters:
string - string to stringize
Returns:
"" on null string, otherwise the input string.

isEmpty

public static final boolean isEmpty(java.lang.String string)
Checks whether the given string is either null or empty.

Parameters:
string - to check
Returns:
true on null string or empty ("").

isNumber

public static final boolean isNumber(java.lang.String string)
Checks whether the given string is a number (consists of digits).

Parameters:
string - to check
Returns:
true on a number string.

replace

public static final java.lang.String replace(java.lang.String string,
                                             java.lang.String what,
                                             java.lang.String with)
Replaces in string 'string' the given sub-string 'what' with the contents of the string 'with'.

Parameters:
string - to replace
what - the search string
with - the replacement for what
Returns:
the replaced string.


Copyright (c) 2013 Software AG. All Rights Reserved.