DBVIEW
|
Static Public Member Functions | |
static String | joinWithNewLines (List< String > in_list) |
static String | join (List< String > in_list, String in_separator) |
static String | indent (String in_prefix, String in_text) |
static int | longest (ArrayList< String > in_list) |
static String | paddingRight (String in_string, int in_length, Character in_padding) |
static void | paddingRight (ArrayList< String > in_list, int in_length) |
static void | paddingRight (ArrayList< String > in_list, int in_length, Character in_padding) |
static void | margingRight (ArrayList< String > in_list, int in_gap) |
static ArrayList< String > | stringToArrayList (String in_source) |
static String | arrayListToString (ArrayList< String > in_array) |
static String | dashToLowerCamelCase (String in_source) |
static String | dashToUpperCamelCase (String in_source) |
static String | lowerCamelCaseToDash (String in_source) |
static String | upperCamelCaseToDash (String in_source) |
static String | firstToUppercase (String in_string) |
static String | firstTolowercase (String in_string) |
static Boolean | isEmpty (String in_string) |
static String | SHAsum (byte[] in_convertme) |
static String | SHAsum (String in_convertme) |
Static Private Member Functions | |
static String | byteArray2Hex (final byte[] in_hash) |
Static Private Attributes | |
static String | __newLine = System.getProperty("line.separator") |
This class contains tools used to manipulate strings.
Definition at line 38 of file Strings.java.
static String org.dbview.utils.Strings.arrayListToString | ( | ArrayList< String > | in_array | ) | [static] |
This method returns a string that is the concatenation of an array list of strings.
in_array | Array list of strings to convert. |
Definition at line 189 of file Strings.java.
Referenced by org.dbview.utils.Strings.dashToLowerCamelCase(), and org.dbview.utils.Strings.lowerCamelCaseToDash().
static String org.dbview.utils.Strings.byteArray2Hex | ( | final byte[] | in_hash | ) | [static, private] |
Convert an array of bytes into a string that represents a hexadecimal value.
in_hash | Array of bytes. |
Definition at line 309 of file Strings.java.
Referenced by org.dbview.utils.Strings.SHAsum().
static String org.dbview.utils.Strings.dashToLowerCamelCase | ( | String | in_source | ) | [static] |
This method converts a string that contains dashes into "Lower Camel Case". Example: "a-bc-de" becomes "aBcDe".
in_source | String to convert. |
Definition at line 202 of file Strings.java.
Referenced by org.dbview.utils.Strings.dashToUpperCamelCase().
static String org.dbview.utils.Strings.dashToUpperCamelCase | ( | String | in_source | ) | [static] |
This method converts a string that contains dashes into "Upper Camel Case". Example: "a-bc-de" becomes "ABcDe".
in_source | String to convert. |
Definition at line 224 of file Strings.java.
static String org.dbview.utils.Strings.firstTolowercase | ( | String | in_string | ) | [static] |
This method converts the first character of a given string into lower case.
in_string | String to convert. |
Definition at line 284 of file Strings.java.
Referenced by org.dbview.utils.Strings.upperCamelCaseToDash().
static String org.dbview.utils.Strings.firstToUppercase | ( | String | in_string | ) | [static] |
This method converts the first character of a given string into upper case.
in_string | String to convert. |
Definition at line 272 of file Strings.java.
Referenced by org.dbview.utils.Strings.dashToUpperCamelCase().
static String org.dbview.utils.Strings.indent | ( | String | in_prefix, |
String | in_text | ||
) | [static] |
This method adds a given prefix at the beginning of all lines in a given text.
in_prefix | String to add at the beginning of all lines. |
in_text | Text to indent. |
Definition at line 88 of file Strings.java.
Referenced by org.dbview.db.structure.Database.toString().
static Boolean org.dbview.utils.Strings.isEmpty | ( | String | in_string | ) | [static] |
Test if a string is empty or null.
in_string | String to test. |
Definition at line 297 of file Strings.java.
static String org.dbview.utils.Strings.join | ( | List< String > | in_list, |
String | in_separator | ||
) | [static] |
This method joins all elements of a given list using a given separator.
in_list | List to join. |
in_separator | Separator to use. |
Definition at line 69 of file Strings.java.
static String org.dbview.utils.Strings.joinWithNewLines | ( | List< String > | in_list | ) | [static] |
This method joins all elements of a given list using new lines as separator.
in_list | List to join. |
Definition at line 50 of file Strings.java.
Referenced by org.dbview.utils.Strings.indent(), org.dbview.db.structure.Table.toString(), and org.dbview.db.structure.Database.toString().
static int org.dbview.utils.Strings.longest | ( | ArrayList< String > | in_list | ) | [static] |
This method returns the size of the longest string in a list of strings.
in_list | List of strings. |
Definition at line 101 of file Strings.java.
Referenced by org.dbview.utils.Strings.margingRight().
static String org.dbview.utils.Strings.lowerCamelCaseToDash | ( | String | in_source | ) | [static] |
This method returns the dashed representation of a given "Lower Camel Case" string. Example: "aBcDe" -> "a-bc-de"
in_source | "Lower Camel Case" to convert. |
Definition at line 235 of file Strings.java.
Referenced by org.dbview.utils.Strings.upperCamelCaseToDash().
static void org.dbview.utils.Strings.margingRight | ( | ArrayList< String > | in_list, |
int | in_gap | ||
) | [static] |
This method adds spaces to the end of all elements of a given array of strings. At the end of the operation, all elements of the array have the same length. The length of all elements is equal to the length of the largest element plus a given gap.
in_list | Array of elements. |
in_gap | Size of the gap. |
Definition at line 166 of file Strings.java.
Referenced by org.dbview.runtime.actions.Actions.showProfile().
static String org.dbview.utils.Strings.paddingRight | ( | String | in_string, |
int | in_length, | ||
Character | in_padding | ||
) | [static] |
This method adds a given padding to the end of a given string.
in_string | The string that will be padded. |
in_length | Length of the string at the end of the operation. |
in_padding | Padding to add. |
Definition at line 115 of file Strings.java.
Referenced by org.dbview.utils.Strings.margingRight().
static void org.dbview.utils.Strings.paddingRight | ( | ArrayList< String > | in_list, |
int | in_length | ||
) | [static] |
This method adds spaces to the end of all elements of a given array.
in_list | Array of elements. |
in_length | Minimum length for all elements, at the end of the operation. |
Definition at line 129 of file Strings.java.
static void org.dbview.utils.Strings.paddingRight | ( | ArrayList< String > | in_list, |
int | in_length, | ||
Character | in_padding | ||
) | [static] |
This method adds a given padding to the end of all elements of a given array.
in_list | Array of elements. |
in_length | Minimum length for all elements, at the end of the operation. |
in_padding | Padding to add. |
Definition at line 147 of file Strings.java.
static String org.dbview.utils.Strings.SHAsum | ( | byte[] | in_convertme | ) | [static] |
Compute the SHA of a given array of bytes. The returned value is a string of hexadecimal characters.
in_convertme | Array of bytes to process. |
Definition at line 323 of file Strings.java.
Referenced by org.dbview.utils.dot.Node.generateName(), org.dbview.utils.dot.SubGraph.generateName(), and org.dbview.utils.Strings.SHAsum().
static String org.dbview.utils.Strings.SHAsum | ( | String | in_convertme | ) | [static] |
Compute the SHA of a given string. The returned value is a string of hexadecimal characters.
in_convertme | String to process. |
Definition at line 339 of file Strings.java.
static ArrayList<String> org.dbview.utils.Strings.stringToArrayList | ( | String | in_source | ) | [static] |
This method converts a string into an array list of strings.
in_source | String to convert. |
Definition at line 177 of file Strings.java.
Referenced by org.dbview.utils.Strings.dashToLowerCamelCase(), and org.dbview.utils.Strings.lowerCamelCaseToDash().
static String org.dbview.utils.Strings.upperCamelCaseToDash | ( | String | in_source | ) | [static] |
This method returns the dashed representation of a given "Upper Camel Case" string. Example: "ABcDe" -> "a-bc-de"
in_source | "Lower Camel Case" to convert. |
Definition at line 262 of file Strings.java.
String org.dbview.utils.Strings.__newLine = System.getProperty("line.separator") [static, private] |
New line separator.
Definition at line 43 of file Strings.java.
Referenced by org.dbview.utils.Strings.indent(), and org.dbview.utils.Strings.joinWithNewLines().