|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.container.utils.StringUtils
public class StringUtils
A set of utility methods for Strings.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static boolean |
areEqualPropPaths(String[] pp1,
String[] pp2)
Tests whether two property paths are equal, i.e. have the same length and all elements are equal. |
static String |
createUniqueID()
Create a unique ID. |
static String |
deriveLabel(String arg)
This method tries to derive a meaningful label from a given String. |
static boolean |
isAsciiLetter(char c)
Determines if the specified character is a letter [a-z,A-Z]. |
static boolean |
isDigit(char c)
Determines if the specified character is a digit [0-9]. |
static boolean |
isNonEmpty(String arg)
Determines if the specified String is not null and not empty. |
static boolean |
isNullOrEmpty(String arg)
Determines if the specified String is null or empty. |
static boolean |
isQualifiedName(String uri)
Determines if the specified URI String is a qualified name. |
static boolean |
isQuote(char c)
Determines if the specified character is one of " ' ` ´ . |
static boolean |
startsWithURIScheme(String arg)
Determines if a prefix of the specified String is conform to an URI definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String createUniqueID()
public static boolean areEqualPropPaths(String[] pp1, String[] pp2)
public static String deriveLabel(String arg)
isQualifiedName(java.lang.String)
), only the
local part - the part after '#' - is taken. Multiple words starting with
upper case letters and written in one word are separated (e.g. 'myName'
is transformed to 'My Name').
public static boolean isQuote(char c)
" ' ` ´
.
public static boolean isDigit(char c)
public static boolean isAsciiLetter(char c)
public static boolean isNullOrEmpty(String arg)
public static boolean isNonEmpty(String arg)
public static boolean isQualifiedName(String uri)
startsWithURIScheme(java.lang.String)
)
public static boolean startsWithURIScheme(String arg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |