com.softwareag.centrasite.appl.framework.util
Class Strings

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.util.Strings

public final class Strings
extends java.lang.Object

Utility class for working with strings.


Method Summary
static boolean isEmpty(java.lang.String pValue)
          Returns, whether the given string is null, or empty.
static boolean isTrimmedEmpty(java.lang.String pValue)
          Returns, whether the given string is null, or empty after trimming.
static java.lang.String notNull(java.lang.String pValue)
          Returns the given string, if it is non-null, or the empty string.
static java.lang.String notNull(java.lang.String pValue, java.lang.String pDefault)
          Returns the given string, if it is non-null, or the given default value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

notNull

public static java.lang.String notNull(java.lang.String pValue)
Returns the given string, if it is non-null, or the empty string.


notNull

public static java.lang.String notNull(java.lang.String pValue,
                                       java.lang.String pDefault)
Returns the given string, if it is non-null, or the given default value.


isEmpty

public static boolean isEmpty(java.lang.String pValue)
Returns, whether the given string is null, or empty. The string is not trimmed.


isTrimmedEmpty

public static boolean isTrimmedEmpty(java.lang.String pValue)
Returns, whether the given string is null, or empty after trimming.