test_class.declarator: enumExtractor
test_class.modifier: private
test_class.original_string: private EnumExtractor         enumExtractor;
test_class.type: EnumExtractor
test_class.var_name: enumExtractor
test_class.declarator: converter
test_class.modifier: private
test_class.original_string: private ObjectToJsonConverter converter;
test_class.type: ObjectToJsonConverter
test_class.var_name: converter
test_class.file: agent/core/src/test/java/org/jolokia/converter/json/EnumExtractorTest.java
test_class.identifier: EnumExtractorTest
test_case.body: @Test
      public void plainExtract() throws AttributeNotFoundException {
          Stack stack = new Stack();
          Object result = enumExtractor.extractObject(converter, TestEnum.EINS,stack,false);
          assertEquals(result,TestEnum.EINS);
      }
test_case.class_method_signature: EnumExtractorTest.plainExtract()
test_case.full_signature: @Test public void plainExtract()
test_case.identifier: plainExtract
test_case.invocations: extractObject assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void plainExtract()
focal_class.file: agent/core/src/main/java/org/jolokia/converter/json/EnumExtractor.java
focal_class.identifier: EnumExtractor
focal_class.interfaces: implements Extractor
focal_class.class_method_signature: EnumExtractor.getType()
focal_class.full_signature: public Class getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class
focal_class.signature: Class getType()
focal_class.class_method_signature: EnumExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_class.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_class.identifier: extractObject
focal_class.modifiers: public
focal_class.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_class.return: Object
focal_class.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_class.class_method_signature: EnumExtractor.setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue)
focal_class.full_signature: public Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue)
focal_class.identifier: setObjectValue
focal_class.modifiers: public
focal_class.parameters: (StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue)
focal_class.return: Object
focal_class.signature: Object setObjectValue(StringToObjectConverter pConverter, Object pInner, String pAttribute, Object pValue)
focal_class.class_method_signature: EnumExtractor.canSetValue()
focal_class.full_signature: public boolean canSetValue()
focal_class.identifier: canSetValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canSetValue()
focal_method.body: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify) throws AttributeNotFoundException {
          String pathPart = pPathPart.isEmpty() ? null : pPathPart.pop();
          Enum en = (Enum) pValue;
          String name = en.name();
          if (pathPart != null) {
              if (name.equals(pathPart)) {
                  return name;
              } else {
                  return pConverter.getValueFaultHandler().handleException(
                          new AttributeNotFoundException("Enum value '" + name + "' doesn't match path '" + pathPart + "'" ));
              }
          }
          return jsonify ? name : en;
      }
focal_method.class_method_signature: EnumExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_method.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_method.identifier: extractObject
focal_method.invocations: isEmpty pop name equals handleException getValueFaultHandler
focal_method.modifiers: public
focal_method.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)
focal_method.return: Object
focal_method.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathPart, boolean jsonify)