| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class contains utility static methods.
| Field Summary | |
private final static String[][] | BOOLEAN_PAIRS |
private final static String | NAME_SEPARATOR |
private final static char | NAME_SEPARATOR_CHAR |
| Method Summary | |
static String | ascii2esc(String val)Translates ASCII chars to escaped sequences |
static String | dotSubstring(String s, int start, int end)Removes a first 'word' of string (words are separated by NAME_SEPARATOR character. |
static String | dotSubstring(String s, int start)Removes a first 'word' of string (words are separated by NAME_SEPARATOR character. |
static String | esc2ascii(String val)Translates all escaped sequences to ASCII chars |
static String | fromLangBoolean(Boolean value, String currentValue, String defaultValue)Returns a string representation of Boolean. |
static boolean | getBoolean(String value, boolean defaultValue)Returns a boolean value of String. |
static int | getInt(String value, int defaultValue)Returns an integer value of String. |
static Boolean | getLangBoolean(String value, Boolean defaultValue)Returns a Boolean value of String. |
static String | getString(String value) |
private static String | translateEscapes(String original) |
static int | wordCount(String str)Returns the number of substrings separated by the NAME_SEPARATOR
character in the string. |
static int | wordStartIndex(String s, int n)Returns the position of NAME_SEPARATOR character in the string
(-1 if not found). |
| Field Detail |
private final static String[][] BOOLEAN_PAIRS
private final static String NAME_SEPARATOR
private final static char NAME_SEPARATOR_CHAR
| Method Detail |
public static String ascii2esc(String val)
public static String dotSubstring(String s, int start, int end)
NAME_SEPARATOR character.public static String dotSubstring(String s, int start)
NAME_SEPARATOR character.public static String esc2ascii(String val)
public static String fromLangBoolean(Boolean value, String currentValue, String defaultValue)
Boolean. There are several types of
null it is used to select the type of represenationvalue is null.public static boolean getBoolean(String value, boolean defaultValue)
boolean value of String.public static int getInt(String value, int defaultValue)
public static Boolean getLangBoolean(String value, Boolean defaultValue)
Boolean value of String.public static String getString(String value)
private static String translateEscapes(String original)
public static int wordCount(String str)
NAME_SEPARATOR
public static int wordStartIndex(String s, int n)
NAME_SEPARATOR character in the string
| Association Links |
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||