|
|
@ -488,6 +488,9 @@ public class JsonModel { |
|
|
|
|
|
|
|
|
|
|
|
return new JsonModel(json, JsonProviderFactory.createProvider()); |
|
|
|
return new JsonModel(json, JsonProviderFactory.createProvider()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static JsonModel create(String json) { |
|
|
|
|
|
|
|
return model(json); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a JsonModel |
|
|
|
* Creates a JsonModel |
|
|
@ -500,6 +503,9 @@ public class JsonModel { |
|
|
|
|
|
|
|
|
|
|
|
return new JsonModel(jsonObject, JsonProviderFactory.createProvider()); |
|
|
|
return new JsonModel(jsonObject, JsonProviderFactory.createProvider()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static JsonModel create(Object jsonObject) { |
|
|
|
|
|
|
|
return model(jsonObject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a JsonModel |
|
|
|
* Creates a JsonModel |
|
|
@ -512,6 +518,9 @@ public class JsonModel { |
|
|
|
|
|
|
|
|
|
|
|
return new JsonModel(url, JsonProviderFactory.createProvider()); |
|
|
|
return new JsonModel(url, JsonProviderFactory.createProvider()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static JsonModel create(URL url) throws IOException { |
|
|
|
|
|
|
|
return model(url); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a JsonModel |
|
|
|
* Creates a JsonModel |
|
|
@ -524,6 +533,9 @@ public class JsonModel { |
|
|
|
|
|
|
|
|
|
|
|
return new JsonModel(jsonInputStream, JsonProviderFactory.createProvider()); |
|
|
|
return new JsonModel(jsonInputStream, JsonProviderFactory.createProvider()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static JsonModel create(InputStream jsonInputStream) throws IOException { |
|
|
|
|
|
|
|
return model(jsonInputStream); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------
|
|
|
|
// --------------------------------------------------------
|
|
|
|
//
|
|
|
|
//
|
|
|
|