public abstract class StringHelper
extends java.lang.Object
Constructor and Description |
---|
StringHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertJavaIdentifier(java.lang.String string)
Returns a valid Java identifier by removing non valid character.
|
static java.lang.String |
escapeProperty(java.lang.String prop)
Java Properties values and keys need escaping when storing them
to conform to the Properties.load() specification.
|
static boolean |
isEnabled(java.lang.String value)
Checks if the given String is one among "true", "yes",
"on" (ignoring case) or "1".
|
static boolean |
isNullOrEmpty(java.lang.String value) |
public static java.lang.String convertJavaIdentifier(java.lang.String string)
string
- string to convert into a valid Java identifierpublic static java.lang.String escapeProperty(java.lang.String prop)
prop
- a property key or value to escapepublic static boolean isEnabled(java.lang.String value)
value
- the string to checkpublic static boolean isNullOrEmpty(java.lang.String value)