creamtec.core
Class StringUtilities

java.lang.Object
  extended by creamtec.core.StringUtilities

public class StringUtilities
extends java.lang.Object

Helper class for various string manipulations


Constructor Summary
StringUtilities()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests the utility method(s)
static java.lang.String replaceParameters(java.lang.String text, java.util.Properties params)
          Replaces the parameters inside the string with the values given in the properties object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtilities

public StringUtilities()
Method Detail

replaceParameters

public static java.lang.String replaceParameters(java.lang.String text,
                                                 java.util.Properties params)
                                          throws java.lang.IllegalArgumentException
Replaces the parameters inside the string with the values given in the properties object. The parameters in the string should be enclosed in {}, for example {name}.

Parameters:
text - string template with parameters
params - Properties
Returns:
parameterized string
Throws:
java.lang.IllegalArgumentException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Tests the utility method(s)

Parameters:
args - String[]
Throws:
java.lang.Exception


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.