test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private StandardJsonBuilder builder;
test_class.type: StandardJsonBuilder
test_class.var_name: builder
test_class.file: interactivespaces-core/src/test/java/interactivespaces/util/data/json/StandardJsonBuilderTest.java
test_class.identifier: StandardJsonBuilderTest
test_case.body: @Test
    public void testPutAll() {
      Map<String, Object> testData = Maps.newHashMap();
  
      String keyString1 = "string1";
      String valueString1 = "bar";
      testData.put(keyString1, valueString1);
  
      String keyString2 = "string1";
      String valueString2 = "bar";
      testData.put(keyString2, valueString2);
  
      String keyInteger = "integer";
      int valueInteger = 1;
      testData.put(keyInteger, valueInteger);
  
      String keyDouble = "double";
      double valueDouble = 1.23456;
      testData.put(keyDouble, valueDouble);
  
      String keyBoolean = "boolean";
      boolean valueBoolean = true;
      testData.put(keyBoolean, valueBoolean);
  
      builder.putAll(testData);
  
      Map<String, Object> object = builder.build();
  
      assertEquals(valueString1, object.get(keyString1));
      assertEquals(valueString2, object.get(keyString2));
      assertEquals(valueInteger, object.get(keyInteger));
      assertEquals(valueDouble, object.get(keyDouble));
      assertEquals(valueBoolean, object.get(keyBoolean));
    }
test_case.class_method_signature: StandardJsonBuilderTest.testPutAll()
test_case.full_signature: @Test public void testPutAll()
test_case.identifier: testPutAll
test_case.invocations: newHashMap put put put put put putAll build assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPutAll()
focal_class.declarator: root = Maps.newHashMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, Object> root = Maps.newHashMap();
focal_class.type: Map<String, Object>
focal_class.var_name: root
focal_class.declarator: nav = new Stack<Object>()
focal_class.modifier: private
focal_class.original_string: private Stack<Object> nav = new Stack<Object>();
focal_class.type: Stack<Object>
focal_class.var_name: nav
focal_class.declarator: currentType
focal_class.modifier: private
focal_class.original_string: private JsonType currentType;
focal_class.type: JsonType
focal_class.var_name: currentType
focal_class.declarator: currentObject
focal_class.modifier: private
focal_class.original_string: private Map<String, Object> currentObject;
focal_class.type: Map<String, Object>
focal_class.var_name: currentObject
focal_class.declarator: currentArray
focal_class.modifier: private
focal_class.original_string: private List<Object> currentArray;
focal_class.type: List<Object>
focal_class.var_name: currentArray
focal_class.file: interactivespaces-core/src/main/java/interactivespaces/util/data/json/StandardJsonBuilder.java
focal_class.identifier: StandardJsonBuilder
focal_class.interfaces: implements JsonBuilder
focal_class.class_method_signature: StandardJsonBuilder.StandardJsonBuilder()
focal_class.full_signature: public  StandardJsonBuilder()
focal_class.identifier: StandardJsonBuilder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  StandardJsonBuilder()
focal_class.class_method_signature: StandardJsonBuilder.put(String name, Object value)
focal_class.full_signature: @Override public JsonBuilder put(String name, Object value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (String name, Object value)
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder put(String name, Object value)
focal_class.class_method_signature: StandardJsonBuilder.putAll(Map<String, Object> data)
focal_class.full_signature: @Override public JsonBuilder putAll(Map<String, Object> data)
focal_class.identifier: putAll
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> data)
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder putAll(Map<String, Object> data)
focal_class.class_method_signature: StandardJsonBuilder.put(Object value)
focal_class.full_signature: @Override public JsonBuilder put(Object value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (Object value)
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder put(Object value)
focal_class.class_method_signature: StandardJsonBuilder.newObject(String name)
focal_class.full_signature: @Override public JsonBuilder newObject(String name)
focal_class.identifier: newObject
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder newObject(String name)
focal_class.class_method_signature: StandardJsonBuilder.newArray(String name)
focal_class.full_signature: @Override public JsonBuilder newArray(String name)
focal_class.identifier: newArray
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder newArray(String name)
focal_class.class_method_signature: StandardJsonBuilder.newArray()
focal_class.full_signature: @Override public JsonBuilder newArray()
focal_class.identifier: newArray
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder newArray()
focal_class.class_method_signature: StandardJsonBuilder.newObject()
focal_class.full_signature: @Override public JsonBuilder newObject()
focal_class.identifier: newObject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder newObject()
focal_class.class_method_signature: StandardJsonBuilder.up()
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public JsonBuilder up()
focal_class.identifier: up
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: JsonBuilder
focal_class.signature: JsonBuilder up()
focal_class.class_method_signature: StandardJsonBuilder.build()
focal_class.full_signature: @Override public Map<String, Object> build()
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> build()
focal_class.class_method_signature: StandardJsonBuilder.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
    public JsonBuilder putAll(Map<String, Object> data) {
      if (currentType == JsonType.OBJECT) {
        currentObject.putAll(data);
      } else {
        // Must be an array
  
        throw new JsonInteractiveSpacesException("Cannot put a map of values into an array");
      }
  
      return this;
    }
focal_method.class_method_signature: StandardJsonBuilder.putAll(Map<String, Object> data)
focal_method.full_signature: @Override public JsonBuilder putAll(Map<String, Object> data)
focal_method.identifier: putAll
focal_method.invocations: putAll
focal_method.modifiers: @Override public
focal_method.parameters: (Map<String, Object> data)
focal_method.return: JsonBuilder
focal_method.signature: JsonBuilder putAll(Map<String, Object> data)