test_class.declarator: geoServer
test_class.modifier: @Mock
test_class.original_string: @Mock
      GeoServer geoServer;
test_class.type: GeoServer
test_class.var_name: geoServer
test_class.declarator: ctrl
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      FormatController ctrl;
test_class.type: FormatController
test_class.var_name: ctrl
test_class.file: geoserver/webapp/api-composer/src/test/java/com/boundlessgeo/geoserver/api/controllers/FormatControllerTest.java
test_class.identifier: FormatControllerTest
test_case.body: @Test
      public void testList() {
          ctrl = new FormatController(geoServer);
  
          JSONArr all = ctrl.list();
          assertTrue(all.size() > 0);
          Iterators.find(all.iterator(), nameIs("shapefile"));
          Iterators.find(all.iterator(), Predicates.and(nameIs("h2"), typeIs("database")));
      }
test_case.class_method_signature: FormatControllerTest.testList()
test_case.full_signature: @Test public void testList()
test_case.identifier: testList
test_case.invocations: list assertTrue size find iterator nameIs find iterator and nameIs typeIs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testList()
focal_class.declarator: LOG = Logging.getLogger(FormatController.class)
focal_class.modifier: static
focal_class.original_string: static Logger LOG = Logging.getLogger(FormatController.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: geoserver/webapp/api-composer/src/main/java/com/boundlessgeo/geoserver/api/controllers/FormatController.java
focal_class.identifier: FormatController
focal_class.class_method_signature: FormatController.FormatController(GeoServer geoServer)
focal_class.full_signature: @Autowired public  FormatController(GeoServer geoServer)
focal_class.identifier: FormatController
focal_class.modifiers: @Autowired public
focal_class.parameters: (GeoServer geoServer)
focal_class.signature:  FormatController(GeoServer geoServer)
focal_class.class_method_signature: FormatController.list()
focal_class.full_signature: @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list()
focal_class.identifier: list
focal_class.modifiers: @RequestMapping(method = RequestMethod.GET) public @ResponseBody
focal_class.parameters: ()
focal_class.return: JSONArr
focal_class.signature: JSONArr list()
focal_class.class_method_signature: FormatController.get(@PathVariable String name)
focal_class.full_signature: @RequestMapping(value = "/{name}", method = RequestMethod.GET) public @ResponseBody JSONObj get(@PathVariable String name)
focal_class.identifier: get
focal_class.modifiers: @RequestMapping(value = "/{name}", method = RequestMethod.GET) public @ResponseBody
focal_class.parameters: (@PathVariable String name)
focal_class.return: JSONObj
focal_class.signature: JSONObj get(@PathVariable String name)
focal_class.class_method_signature: FormatController.encode(JSONObj obj, DataFormat<?> format)
focal_class.full_signature:  JSONObj encode(JSONObj obj, DataFormat<?> format)
focal_class.identifier: encode
focal_class.parameters: (JSONObj obj, DataFormat<?> format)
focal_class.return: JSONObj
focal_class.signature: JSONObj encode(JSONObj obj, DataFormat<?> format)
focal_class.class_method_signature: FormatController.findRasterFormat(String name)
focal_class.full_signature: private DataFormat<Format> findRasterFormat(String name)
focal_class.identifier: findRasterFormat
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: DataFormat<Format>
focal_class.signature: DataFormat<Format> findRasterFormat(String name)
focal_class.class_method_signature: FormatController.findVectorFormat(String name)
focal_class.full_signature: private DataFormat<DataAccessFactory> findVectorFormat(String name)
focal_class.identifier: findVectorFormat
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: DataFormat<DataAccessFactory>
focal_class.signature: DataFormat<DataAccessFactory> findVectorFormat(String name)
focal_class.class_method_signature: FormatController.findServiceFormat(String name)
focal_class.full_signature: private DataFormat<Class<?>> findServiceFormat(String name)
focal_class.identifier: findServiceFormat
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: DataFormat<Class<?>>
focal_class.signature: DataFormat<Class<?>> findServiceFormat(String name)
focal_class.class_method_signature: FormatController.formatName(String displayName)
focal_class.full_signature: static String formatName(String displayName)
focal_class.identifier: formatName
focal_class.modifiers: static
focal_class.parameters: (String displayName)
focal_class.return: String
focal_class.signature: String formatName(String displayName)
focal_class.class_method_signature: FormatController.formats()
focal_class.full_signature:  Iterable<DataFormat> formats()
focal_class.identifier: formats
focal_class.parameters: ()
focal_class.return: Iterable<DataFormat>
focal_class.signature: Iterable<DataFormat> formats()
focal_class.class_method_signature: FormatController.vectorFormats()
focal_class.full_signature:  Iterable<DataFormat> vectorFormats()
focal_class.identifier: vectorFormats
focal_class.parameters: ()
focal_class.return: Iterable<DataFormat>
focal_class.signature: Iterable<DataFormat> vectorFormats()
focal_class.class_method_signature: FormatController.rasterFormats()
focal_class.full_signature:  Iterable<DataFormat> rasterFormats()
focal_class.identifier: rasterFormats
focal_class.parameters: ()
focal_class.return: Iterable<DataFormat>
focal_class.signature: Iterable<DataFormat> rasterFormats()
focal_class.class_method_signature: FormatController.serviceFormats()
focal_class.full_signature:  Iterable<DataFormat<Class<?>>> serviceFormats()
focal_class.identifier: serviceFormats
focal_class.parameters: ()
focal_class.return: Iterable<DataFormat<Class<?>>>
focal_class.signature: Iterable<DataFormat<Class<?>>> serviceFormats()
focal_class.class_method_signature: FormatController.format(DataAccessFactory f)
focal_class.full_signature:  DataFormat<DataAccessFactory> format(DataAccessFactory f)
focal_class.identifier: format
focal_class.parameters: (DataAccessFactory f)
focal_class.return: DataFormat<DataAccessFactory>
focal_class.signature: DataFormat<DataAccessFactory> format(DataAccessFactory f)
focal_class.class_method_signature: FormatController.format(Format g)
focal_class.full_signature:  DataFormat<Format> format(Format g)
focal_class.identifier: format
focal_class.parameters: (Format g)
focal_class.return: DataFormat<Format>
focal_class.signature: DataFormat<Format> format(Format g)
focal_class.class_method_signature: FormatController.format(Class<WebMapServer> clazz)
focal_class.full_signature:  DataFormat<Class<?>> format(Class<WebMapServer> clazz)
focal_class.identifier: format
focal_class.parameters: (Class<WebMapServer> clazz)
focal_class.return: DataFormat<Class<?>>
focal_class.signature: DataFormat<Class<?>> format(Class<WebMapServer> clazz)
focal_class.superclass: extends ApiController
focal_method.body: @RequestMapping(method = RequestMethod.GET)
      public @ResponseBody JSONArr list() {
          JSONArr list = new JSONArr();
          for (DataFormat<?> format : formats()) {
              encode(list.addObject(), format);
          }
  
          return list;
      }
focal_method.class_method_signature: FormatController.list()
focal_method.full_signature: @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list()
focal_method.identifier: list
focal_method.invocations: formats encode addObject
focal_method.modifiers: @RequestMapping(method = RequestMethod.GET) public @ResponseBody
focal_method.parameters: ()
focal_method.return: JSONArr
focal_method.signature: JSONArr list()