org.ow2.util.substitution.engine.util
Class StringUtils

java.lang.Object
  extended by org.ow2.util.substitution.engine.util.StringUtils

public class StringUtils
extends Object

Utility class for String processing.

Author:
Guillaume Sauthier

Constructor Summary
StringUtils()
           
 
Method Summary
static String increment(int indent)
          Produces an increment String sized given the provided indent value
static String increment(int indent, String block)
          Produces an increment String sized given the provided indent value
static boolean isEmpty(String value)
          Returns true if value is null or empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

increment

public static String increment(int indent)
Produces an increment String sized given the provided indent value

Parameters:
indent - expected indentation
Returns:
increment String

increment

public static String increment(int indent,
                               String block)
Produces an increment String sized given the provided indent value

Parameters:
indent - expected indentation
block - block of increment to be replicated
Returns:
increment String

isEmpty

public static boolean isEmpty(String value)
Returns true if value is null or empty.

Parameters:
value - tested String
Returns:
true/false


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.