test_class.declarator: settings = new Settings()
test_class.modifier: final
test_class.original_string: final Settings settings = new Settings();
test_class.type: Settings
test_class.var_name: settings
test_class.declarator: pippoSettings = RestModule.getPippoSettings(settings)
test_class.modifier: final
test_class.original_string: final PippoSettings pippoSettings = RestModule.getPippoSettings(settings);
test_class.type: PippoSettings
test_class.var_name: pippoSettings
test_class.file: fathom-rest-swagger/src/test/java/fathom/rest/swagger/SwaggerBuilderTest.java
test_class.identifier: SwaggerBuilderTest
test_case.body: @Test
      public void testGenerate() throws Exception {
          DefaultRouter router = new DefaultRouter();
          for (Route route : getRoutes()) {
              router.addRoute(route);
          }
  
          SwaggerBuilder sb = new SwaggerBuilder(settings, router);
          String json = sb.generateJSON(router.getRoutes());
          assertNotNull(json);
      }
test_case.class_method_signature: SwaggerBuilderTest.testGenerate()
test_case.full_signature: @Test public void testGenerate()
test_case.identifier: testGenerate
test_case.invocations: getRoutes addRoute generateJSON getRoutes assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenerate()
focal_class.declarator: log = LoggerFactory.getLogger(SwaggerBuilder.class)
focal_class.modifier: private final static
focal_class.original_string: private final static Logger log = LoggerFactory.getLogger(SwaggerBuilder.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: PATTERN_FOR_VARIABLE_PARTS_OF_ROUTE = Pattern.compile("\\{(.*?)(:\\s(.*?))?\\}")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern PATTERN_FOR_VARIABLE_PARTS_OF_ROUTE = Pattern.compile("\\{(.*?)(:\\s(.*?))?\\}");
focal_class.type: Pattern
focal_class.var_name: PATTERN_FOR_VARIABLE_PARTS_OF_ROUTE
focal_class.declarator: PATTERN_FOR_CONTENT_TYPE_SUFFIX = Pattern.compile("(\\(\\\\.\\([a-z\\|]+\\)\\)\\??)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern PATTERN_FOR_CONTENT_TYPE_SUFFIX = Pattern.compile("(\\(\\\\.\\([a-z\\|]+\\)\\)\\??)");
focal_class.type: Pattern
focal_class.var_name: PATTERN_FOR_CONTENT_TYPE_SUFFIX
focal_class.declarator: PATTERN_FOR_SUFFIX_EXTRACTION = Pattern.compile("([a-z]+)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern PATTERN_FOR_SUFFIX_EXTRACTION = Pattern.compile("([a-z]+)");
focal_class.type: Pattern
focal_class.var_name: PATTERN_FOR_SUFFIX_EXTRACTION
focal_class.declarator: METHODS = Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
focal_class.modifier: private static final
focal_class.original_string: private static final List<String> METHODS = Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS");
focal_class.type: List<String>
focal_class.var_name: METHODS
focal_class.declarator: settings
focal_class.modifier: private final
focal_class.original_string: private final Settings settings;
focal_class.type: Settings
focal_class.var_name: settings
focal_class.declarator: router
focal_class.modifier: private final
focal_class.original_string: private final Router router;
focal_class.type: Router
focal_class.var_name: router
focal_class.declarator: engines
focal_class.modifier: private final
focal_class.original_string: private final ContentTypeEngines engines;
focal_class.type: ContentTypeEngines
focal_class.var_name: engines
focal_class.declarator: messages
focal_class.modifier: private final
focal_class.original_string: private final Messages messages;
focal_class.type: Messages
focal_class.var_name: messages
focal_class.declarator: defaultLanguage
focal_class.modifier: private final
focal_class.original_string: private final String defaultLanguage;
focal_class.type: String
focal_class.var_name: defaultLanguage
focal_class.declarator: relativeSwaggerBasePath
focal_class.modifier: private final
focal_class.original_string: private final String relativeSwaggerBasePath;
focal_class.type: String
focal_class.var_name: relativeSwaggerBasePath
focal_class.declarator: outputSnakeCaseParameters
focal_class.modifier: private final
focal_class.original_string: private final boolean outputSnakeCaseParameters;
focal_class.type: boolean
focal_class.var_name: outputSnakeCaseParameters
focal_class.file: fathom-rest-swagger/src/main/java/fathom/rest/swagger/SwaggerBuilder.java
focal_class.identifier: SwaggerBuilder
focal_class.class_method_signature: SwaggerBuilder.SwaggerBuilder(Settings settings, Router router)
focal_class.full_signature: public  SwaggerBuilder(Settings settings, Router router)
focal_class.identifier: SwaggerBuilder
focal_class.modifiers: public
focal_class.parameters: (Settings settings, Router router)
focal_class.signature:  SwaggerBuilder(Settings settings, Router router)
focal_class.class_method_signature: SwaggerBuilder.SwaggerBuilder(Settings settings, Router router, ContentTypeEngines engines, Messages messages)
focal_class.full_signature: public  SwaggerBuilder(Settings settings, Router router, ContentTypeEngines engines, Messages messages)
focal_class.identifier: SwaggerBuilder
focal_class.modifiers: public
focal_class.parameters: (Settings settings, Router router, ContentTypeEngines engines, Messages messages)
focal_class.signature:  SwaggerBuilder(Settings settings, Router router, ContentTypeEngines engines, Messages messages)
focal_class.class_method_signature: SwaggerBuilder.generateJSON(Collection<Route> routes)
focal_class.full_signature: public String generateJSON(Collection<Route> routes)
focal_class.identifier: generateJSON
focal_class.modifiers: public
focal_class.parameters: (Collection<Route> routes)
focal_class.return: String
focal_class.signature: String generateJSON(Collection<Route> routes)
focal_class.class_method_signature: SwaggerBuilder.build(Collection<Route> routes)
focal_class.full_signature: public Swagger build(Collection<Route> routes)
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: (Collection<Route> routes)
focal_class.return: Swagger
focal_class.signature: Swagger build(Collection<Route> routes)
focal_class.class_method_signature: SwaggerBuilder.canRegister(Route route, ControllerHandler handler)
focal_class.full_signature: protected boolean canRegister(Route route, ControllerHandler handler)
focal_class.identifier: canRegister
focal_class.modifiers: protected
focal_class.parameters: (Route route, ControllerHandler handler)
focal_class.return: boolean
focal_class.signature: boolean canRegister(Route route, ControllerHandler handler)
focal_class.class_method_signature: SwaggerBuilder.registerOperation(Swagger swagger, Route route, ControllerHandler handler)
focal_class.full_signature: protected void registerOperation(Swagger swagger, Route route, ControllerHandler handler)
focal_class.identifier: registerOperation
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Route route, ControllerHandler handler)
focal_class.return: void
focal_class.signature: void registerOperation(Swagger swagger, Route route, ControllerHandler handler)
focal_class.class_method_signature: SwaggerBuilder.registerResponses(Swagger swagger, Operation operation, Method method)
focal_class.full_signature: protected void registerResponses(Swagger swagger, Operation operation, Method method)
focal_class.identifier: registerResponses
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Operation operation, Method method)
focal_class.return: void
focal_class.signature: void registerResponses(Swagger swagger, Operation operation, Method method)
focal_class.class_method_signature: SwaggerBuilder.registerResponse(Swagger swagger, Operation operation, Return aReturn)
focal_class.full_signature: protected void registerResponse(Swagger swagger, Operation operation, Return aReturn)
focal_class.identifier: registerResponse
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Operation operation, Return aReturn)
focal_class.return: void
focal_class.signature: void registerResponse(Swagger swagger, Operation operation, Return aReturn)
focal_class.class_method_signature: SwaggerBuilder.registerModel(Swagger swagger, Class<?> modelClass)
focal_class.full_signature: protected String registerModel(Swagger swagger, Class<?> modelClass)
focal_class.identifier: registerModel
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Class<?> modelClass)
focal_class.return: String
focal_class.signature: String registerModel(Swagger swagger, Class<?> modelClass)
focal_class.class_method_signature: SwaggerBuilder.registerErrorModel(Swagger swagger)
focal_class.full_signature: protected RefProperty registerErrorModel(Swagger swagger)
focal_class.identifier: registerErrorModel
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger)
focal_class.return: RefProperty
focal_class.signature: RefProperty registerErrorModel(Swagger swagger)
focal_class.class_method_signature: SwaggerBuilder.registerSecurity(Swagger swagger, Operation operation, Method method)
focal_class.full_signature: protected void registerSecurity(Swagger swagger, Operation operation, Method method)
focal_class.identifier: registerSecurity
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Operation operation, Method method)
focal_class.return: void
focal_class.signature: void registerSecurity(Swagger swagger, Operation operation, Method method)
focal_class.class_method_signature: SwaggerBuilder.registerParameters(Swagger swagger, Operation operation, Route route, Method method)
focal_class.full_signature: protected String registerParameters(Swagger swagger, Operation operation, Route route, Method method)
focal_class.identifier: registerParameters
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Operation operation, Route route, Method method)
focal_class.return: String
focal_class.signature: String registerParameters(Swagger swagger, Operation operation, Route route, Method method)
focal_class.class_method_signature: SwaggerBuilder.setPropertyType(Swagger swagger, AbstractSerializableParameter swaggerParameter, Method method)
focal_class.full_signature: protected void setPropertyType(Swagger swagger, AbstractSerializableParameter swaggerParameter, Method method)
focal_class.identifier: setPropertyType
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, AbstractSerializableParameter swaggerParameter, Method method)
focal_class.return: void
focal_class.signature: void setPropertyType(Swagger swagger, AbstractSerializableParameter swaggerParameter, Method method)
focal_class.class_method_signature: SwaggerBuilder.getSwaggerProperty(Swagger swagger, Class<?> objectClass)
focal_class.full_signature: protected Property getSwaggerProperty(Swagger swagger, Class<?> objectClass)
focal_class.identifier: getSwaggerProperty
focal_class.modifiers: protected
focal_class.parameters: (Swagger swagger, Class<?> objectClass)
focal_class.return: Property
focal_class.signature: Property getSwaggerProperty(Swagger swagger, Class<?> objectClass)
focal_class.class_method_signature: SwaggerBuilder.getControllerTag(Class<? extends Controller> controllerClass)
focal_class.full_signature: protected Tag getControllerTag(Class<? extends Controller> controllerClass)
focal_class.identifier: getControllerTag
focal_class.modifiers: protected
focal_class.parameters: (Class<? extends Controller> controllerClass)
focal_class.return: Tag
focal_class.signature: Tag getControllerTag(Class<? extends Controller> controllerClass)
focal_class.class_method_signature: SwaggerBuilder.getModelTag(Class<?> modelClass)
focal_class.full_signature: protected Tag getModelTag(Class<?> modelClass)
focal_class.identifier: getModelTag
focal_class.modifiers: protected
focal_class.parameters: (Class<?> modelClass)
focal_class.return: Tag
focal_class.signature: Tag getModelTag(Class<?> modelClass)
focal_class.class_method_signature: SwaggerBuilder.getNotes(Method method)
focal_class.full_signature: protected String getNotes(Method method)
focal_class.identifier: getNotes
focal_class.modifiers: protected
focal_class.parameters: (Method method)
focal_class.return: String
focal_class.signature: String getNotes(Method method)
focal_class.class_method_signature: SwaggerBuilder.getDescription(Parameter parameter)
focal_class.full_signature: protected String getDescription(Parameter parameter)
focal_class.identifier: getDescription
focal_class.modifiers: protected
focal_class.parameters: (Parameter parameter)
focal_class.return: String
focal_class.signature: String getDescription(Parameter parameter)
focal_class.class_method_signature: SwaggerBuilder.isRequired(Parameter parameter)
focal_class.full_signature: protected boolean isRequired(Parameter parameter)
focal_class.identifier: isRequired
focal_class.modifiers: protected
focal_class.parameters: (Parameter parameter)
focal_class.return: boolean
focal_class.signature: boolean isRequired(Parameter parameter)
focal_class.class_method_signature: SwaggerBuilder.getUriParameterNames(String uriPattern)
focal_class.full_signature: protected List<String> getUriParameterNames(String uriPattern)
focal_class.identifier: getUriParameterNames
focal_class.modifiers: protected
focal_class.parameters: (String uriPattern)
focal_class.return: List<String>
focal_class.signature: List<String> getUriParameterNames(String uriPattern)
focal_class.class_method_signature: SwaggerBuilder.getParameterName(Parameter parameter)
focal_class.full_signature: protected String getParameterName(Parameter parameter)
focal_class.identifier: getParameterName
focal_class.modifiers: protected
focal_class.parameters: (Parameter parameter)
focal_class.return: String
focal_class.signature: String getParameterName(Parameter parameter)
focal_class.class_method_signature: SwaggerBuilder.prepareParameterName(String name)
focal_class.full_signature: protected String prepareParameterName(String name)
focal_class.identifier: prepareParameterName
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String prepareParameterName(String name)
focal_class.class_method_signature: SwaggerBuilder.stripContentTypeSuffixPattern(String uriPattern)
focal_class.full_signature: protected String stripContentTypeSuffixPattern(String uriPattern)
focal_class.identifier: stripContentTypeSuffixPattern
focal_class.modifiers: protected
focal_class.parameters: (String uriPattern)
focal_class.return: String
focal_class.signature: String stripContentTypeSuffixPattern(String uriPattern)
focal_class.class_method_signature: SwaggerBuilder.translate(String messageKey, String defaultMessage)
focal_class.full_signature: protected String translate(String messageKey, String defaultMessage)
focal_class.identifier: translate
focal_class.modifiers: protected
focal_class.parameters: (String messageKey, String defaultMessage)
focal_class.return: String
focal_class.signature: String translate(String messageKey, String defaultMessage)
focal_method.body: public String generateJSON(Collection<Route> routes) {
          Swagger swagger = build(routes);
          String json = Json.pretty(swagger);
          return json;
      }
focal_method.class_method_signature: SwaggerBuilder.generateJSON(Collection<Route> routes)
focal_method.full_signature: public String generateJSON(Collection<Route> routes)
focal_method.identifier: generateJSON
focal_method.invocations: build pretty
focal_method.modifiers: public
focal_method.parameters: (Collection<Route> routes)
focal_method.return: String
focal_method.signature: String generateJSON(Collection<Route> routes)