@Test(expectedExceptions = {JSONConverterException.class}) public void testInValidRequiredString() throws JSONConverterException { JSONObject o = new JSONObject(); o.put("id", "bar"); JSONs.requiredString(o, "bar"); }
public static String requiredString(JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); return x.toString(); }
JSONs { public static String requiredString(JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); return x.toString(); } }
JSONs { public static String requiredString(JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); return x.toString(); } private  JSONs(); }
JSONs { public static String requiredString(JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); return x.toString(); } private  JSONs(); static void resetCaches(int size); static int requiredInt(JSONObject o, String id); static int optInt(JSONObject o, String id, int def); static void checkKeys(JSONObject o, String... keys); static String requiredString(JSONObject o, String id); static double requiredDouble(JSONObject o, String id); static boolean requiredBoolean(JSONObject o, String id); static List<VM> vmsFromJSON(Model mo, JSONArray a); static List<Node> nodesFromJSON(Model mo, JSONArray a); static JSONArray vmsToJSON(Collection<VM> s); static JSONArray nodesToJSON(Collection<Node> s); static List<VM> requiredVMs(Model mo, JSONObject o, String id); static List<Node> requiredNodes(Model mo, JSONObject o, String id); static Set<Collection<VM>> requiredVMPart(Model mo, JSONObject o, String id); static Set<Collection<Node>> requiredNodePart(Model mo, JSONObject o, String id); static VM requiredVM(Model mo, JSONObject o, String id); static Node requiredNode(Model mo, JSONObject o, String id); static VM getVM(Model mo, int vmID); static Node getNode(Model mo, int nodeID); static Integer elementToJSON(Element e); }
JSONs { public static String requiredString(JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); return x.toString(); } private  JSONs(); static void resetCaches(int size); static int requiredInt(JSONObject o, String id); static int optInt(JSONObject o, String id, int def); static void checkKeys(JSONObject o, String... keys); static String requiredString(JSONObject o, String id); static double requiredDouble(JSONObject o, String id); static boolean requiredBoolean(JSONObject o, String id); static List<VM> vmsFromJSON(Model mo, JSONArray a); static List<Node> nodesFromJSON(Model mo, JSONArray a); static JSONArray vmsToJSON(Collection<VM> s); static JSONArray nodesToJSON(Collection<Node> s); static List<VM> requiredVMs(Model mo, JSONObject o, String id); static List<Node> requiredNodes(Model mo, JSONObject o, String id); static Set<Collection<VM>> requiredVMPart(Model mo, JSONObject o, String id); static Set<Collection<Node>> requiredNodePart(Model mo, JSONObject o, String id); static VM requiredVM(Model mo, JSONObject o, String id); static Node requiredNode(Model mo, JSONObject o, String id); static VM getVM(Model mo, int vmID); static Node getNode(Model mo, int nodeID); static Integer elementToJSON(Element e);  }