test_class.declarator: extractor
test_class.original_string: CollectionExtractor extractor;
test_class.type: CollectionExtractor
test_class.var_name: extractor
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/CollectionExtractorTest.java
test_class.identifier: CollectionExtractorTest
test_case.body: @Test
      public void jsonAndPath() throws AttributeNotFoundException {
          Collection collection = Arrays.asList("jolokia","habanero");
  
          Stack paths = new Stack();
          paths.add("1");
  
          String val = (String) extractor.extractObject(converter,collection,paths,true);
          assertEquals(val, "habanero");
      }
test_case.class_method_signature: CollectionExtractorTest.jsonAndPath()
test_case.full_signature: @Test public void jsonAndPath()
test_case.identifier: jsonAndPath
test_case.invocations: asList add extractObject assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void jsonAndPath()
focal_class.file: agent/core/src/main/java/org/jolokia/converter/json/CollectionExtractor.java
focal_class.identifier: CollectionExtractor
focal_class.interfaces: implements Extractor
focal_class.class_method_signature: CollectionExtractor.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: CollectionExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_class.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_class.identifier: extractObject
focal_class.modifiers: public
focal_class.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_class.return: Object
focal_class.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_class.class_method_signature: CollectionExtractor.extractWithPath(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, boolean pJsonify, String pPathPart,int pLength)
focal_class.full_signature: private Object extractWithPath(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, boolean pJsonify, String pPathPart,int pLength)
focal_class.identifier: extractWithPath
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, boolean pJsonify, String pPathPart,int pLength)
focal_class.return: Object
focal_class.signature: Object extractWithPath(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, boolean pJsonify, String pPathPart,int pLength)
focal_class.class_method_signature: CollectionExtractor.getElement(Collection pCollection, int pIdx, int pLength)
focal_class.full_signature: private Object getElement(Collection pCollection, int pIdx, int pLength)
focal_class.identifier: getElement
focal_class.modifiers: private
focal_class.parameters: (Collection pCollection, int pIdx, int pLength)
focal_class.return: Object
focal_class.signature: Object getElement(Collection pCollection, int pIdx, int pLength)
focal_class.class_method_signature: CollectionExtractor.extractListAsJson(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, int pLength)
focal_class.full_signature: private Object extractListAsJson(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, int pLength)
focal_class.identifier: extractListAsJson
focal_class.modifiers: private
focal_class.parameters: (ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, int pLength)
focal_class.return: Object
focal_class.signature: Object extractListAsJson(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, int pLength)
focal_class.class_method_signature: CollectionExtractor.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: CollectionExtractor.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> pPathParts, boolean jsonify) throws AttributeNotFoundException {
          Collection collection = (Collection) pValue;
          String pathPart = pPathParts.isEmpty() ? null : pPathParts.pop();
          int length = pConverter.getCollectionLength(collection.size());
          if (pathPart != null) {
              return extractWithPath(pConverter, collection, pPathParts, jsonify, pathPart, length);
          } else {
              return jsonify ? extractListAsJson(pConverter, collection, pPathParts, length) : collection;
          }
      }
focal_method.class_method_signature: CollectionExtractor.extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_method.full_signature: public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_method.identifier: extractObject
focal_method.invocations: isEmpty pop getCollectionLength size extractWithPath extractListAsJson
focal_method.modifiers: public
focal_method.parameters: (ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)
focal_method.return: Object
focal_method.signature: Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify)