public class PropertyConverter extends Object
| Constructor and Description |
|---|
PropertyConverter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToJavaScript(Properties properties,
String variable)
Converts the properties object into a JavaScript string, of the form
var variable = json; or object.property = json;
|
static String |
convertToJson(Properties properties)
Converts the properties object into a JSON string.
|
static String |
convertToJsonP(Properties properties,
String callback)
Converts the properties object into a JSONP string, of the form
callback(json);
|
static String |
convertToPodsModule(Properties properties,
String moduleName) |
public static String convertToJson(Properties properties)
properties - The properties object to convert.public static String convertToJsonP(Properties properties, String callback)
properties - The properties object to convert.callback - The name of the callback to call.public static String convertToJavaScript(Properties properties, String variable)
properties - The properties object to convert.variable - The name of the variable to store the object.public static String convertToPodsModule(Properties properties, String moduleName)
Copyright © 2014. All Rights Reserved.