|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.typesafe.config.ConfigUtil
public final class ConfigUtil
Contains static utility methods.
| Method Summary | |
|---|---|
static String |
joinPath(List<String> elements)
Converts a list of strings to a path expression, by quoting the path elements as needed and then joining them separated by a period. |
static String |
joinPath(String... elements)
Converts a list of keys to a path expression, by quoting the path elements as needed and then joining them separated by a period. |
static String |
quoteString(String s)
Quotes and escapes a string, as in the JSON specification. |
static List<String> |
splitPath(String path)
Converts a path expression into a list of keys, by splitting on period and unquoting the individual path elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String quoteString(String s)
s - a string
public static String joinPath(String... elements)
Config, while individual path
elements are usable with a ConfigObject.
elements - the keys in the path
ConfigException - if there are no elementspublic static String joinPath(List<String> elements)
Config, while individual path
elements are usable with a ConfigObject.
elements - the keys in the path
ConfigException - if the list is emptypublic static List<String> splitPath(String path)
Config, while individual path elements are usable with a
ConfigObject.
path - a path expression
ConfigException - if the path expression is invalid
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||