|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.common.utilcomponents.UtilOnJdk
Various general algorithms implemented as static methods.
Field Summary | |
static int |
BAD_SYNTAX_NAME
An ill formed name has been detected. |
static int |
OK
A verification is OK. |
static char |
ROW_SEPARATOR
Row separator |
static char |
VALUE_SEPARATOR
Value separator |
static int |
VOID_NAME
A void name has been detected. |
Constructor Summary | |
UtilOnJdk()
|
Method Summary | |
static java.lang.Object |
isValidName(java.lang.String s)
Validates if a String is a valid name in the system. |
static boolean |
isValidNamePart(java.lang.String s)
Decides if a nonblank String can be part of a name in the system. |
static java.lang.String |
serializeRowSet(java.util.ArrayList rowset)
Serialize an ArrayList to a String. |
static java.lang.String |
squeeze(java.lang.String s)
Starting from a String, produces a new String where all internal white space sequences have length = 1 and all letters are in lowercase. |
static java.lang.String |
squeeze(java.lang.String s,
char whiteReplacement)
Starting from a String, produces a new String where each internal white space sequence is replaced by one occurrence of the "whiteReplacement" parameter and all letters are in lowercase. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int OK
public static final int VOID_NAME
public static final int BAD_SYNTAX_NAME
public static final char ROW_SEPARATOR
public static final char VALUE_SEPARATOR
Constructor Detail |
public UtilOnJdk()
Method Detail |
public static java.lang.Object isValidName(java.lang.String s)
s
- The string to be validated.VOID_NAME
if s has no visible characters.
BAD_SYNTAX_NAME
if the name is ill formed.
public static boolean isValidNamePart(java.lang.String s)
s
- The string to be validated.public static java.lang.String squeeze(java.lang.String s)
s
- The starting String.public static java.lang.String squeeze(java.lang.String s, char whiteReplacement)
s
- The starting String.whiteReplacement
- The character that replaces white spaces
sequences.public static java.lang.String serializeRowSet(java.util.ArrayList rowset)
rowset
- The set of rows to be serialized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |