test_class.declarator: converter
test_class.modifier: private
test_class.original_string: private StringToOpenTypeConverter converter;
test_class.type: StringToOpenTypeConverter
test_class.var_name: converter
test_class.file: agent/core/src/test/java/org/jolokia/converter/object/StringToOpenTypeConverterTest.java
test_class.identifier: StringToOpenTypeConverterTest
test_case.body: @Test
      public void tabularTypeForMXBeanMapsComplex() throws OpenDataException {
          TabularTypeAndJson inner = getSampleTabularTypeForMXBeanMap();
          TabularTypeAndJson taj = new TabularTypeAndJson(
                  new String[]{"key"},
                  new CompositeTypeAndJson(
                          STRING, "key", null,
                          inner.getType(), "value", null
                  )
          );
  
          String json = "{ \"keyOne\" : { \"innerKeyOne\" : \"valueOne\" }, \"keyTwo\" : { \"innerKeyTwo\" : \"valueTwo\"}}";
          TabularData data = (TabularData) converter.convertToObject(taj.getType(),json);
          CompositeData col1 = data.get(new String[] { "keyOne" });
          assertEquals(col1.get("key"),"keyOne");
          TabularData innerCol1 = (TabularData) col1.get("value");
          CompositeData col1inner = innerCol1.get(new String[]{"innerKeyOne"});
          assertEquals(col1inner.get("key"),"innerKeyOne");
          assertEquals(col1inner.get("value"),"valueOne");
      }
test_case.class_method_signature: StringToOpenTypeConverterTest.tabularTypeForMXBeanMapsComplex()
test_case.full_signature: @Test public void tabularTypeForMXBeanMapsComplex()
test_case.identifier: tabularTypeForMXBeanMapsComplex
test_case.invocations: getSampleTabularTypeForMXBeanMap getType convertToObject getType get assertEquals get get get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tabularTypeForMXBeanMapsComplex()
focal_class.declarator: converters
focal_class.modifier: private
focal_class.original_string: private List<OpenTypeConverter<? extends OpenType>> converters;
focal_class.type: List<OpenTypeConverter<? extends OpenType>>
focal_class.var_name: converters
focal_class.file: agent/core/src/main/java/org/jolokia/converter/object/StringToOpenTypeConverter.java
focal_class.identifier: StringToOpenTypeConverter
focal_class.class_method_signature: StringToOpenTypeConverter.StringToOpenTypeConverter(StringToObjectConverter pStringToObjectConverter)
focal_class.full_signature: public  StringToOpenTypeConverter(StringToObjectConverter pStringToObjectConverter)
focal_class.identifier: StringToOpenTypeConverter
focal_class.modifiers: public
focal_class.parameters: (StringToObjectConverter pStringToObjectConverter)
focal_class.signature:  StringToOpenTypeConverter(StringToObjectConverter pStringToObjectConverter)
focal_class.class_method_signature: StringToOpenTypeConverter.convertToObject(OpenType openType, Object pValue)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public Object convertToObject(OpenType openType, Object pValue)
focal_class.identifier: convertToObject
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (OpenType openType, Object pValue)
focal_class.return: Object
focal_class.signature: Object convertToObject(OpenType openType, Object pValue)
focal_class.class_method_signature: StringToOpenTypeConverter.canConvert(OpenType pType)
focal_class.full_signature: @Override boolean canConvert(OpenType pType)
focal_class.identifier: canConvert
focal_class.modifiers: @Override
focal_class.parameters: (OpenType pType)
focal_class.return: boolean
focal_class.signature: boolean canConvert(OpenType pType)
focal_class.class_method_signature: StringToOpenTypeConverter.makeForgiving()
focal_class.full_signature: public StringToOpenTypeConverter makeForgiving()
focal_class.identifier: makeForgiving
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StringToOpenTypeConverter
focal_class.signature: StringToOpenTypeConverter makeForgiving()
focal_class.superclass: extends OpenTypeConverter
focal_method.body: @SuppressWarnings("unchecked")
      @Override
  	public Object convertToObject(OpenType openType, Object pValue) {
          if (pValue == null) {
              return null;
          } else {
              for (OpenTypeConverter converter : converters) {
                  if (converter.canConvert(openType)) {
                      return converter.convertToObject(openType,pValue);
                  }
              }
              throw new IllegalArgumentException(
                      "Cannot convert " + pValue + " to " + openType + ": " + "No converter could be found");
          }
  	}
focal_method.class_method_signature: StringToOpenTypeConverter.convertToObject(OpenType openType, Object pValue)
focal_method.full_signature: @SuppressWarnings("unchecked") @Override public Object convertToObject(OpenType openType, Object pValue)
focal_method.identifier: convertToObject
focal_method.invocations: canConvert convertToObject
focal_method.modifiers: @SuppressWarnings("unchecked") @Override public
focal_method.parameters: (OpenType openType, Object pValue)
focal_method.return: Object
focal_method.signature: Object convertToObject(OpenType openType, Object pValue)