test_class.declarator: COMPONENT_NAME = "definition"
test_class.modifier: private static final
test_class.original_string: private static final String COMPONENT_NAME = "definition";
test_class.type: String
test_class.var_name: COMPONENT_NAME
test_class.declarator: outputDirectory
test_class.modifier: private
test_class.original_string: private Path outputDirectory;
test_class.type: Path
test_class.var_name: outputDirectory
test_class.file: swagger2markup/src/test/java/io/github/swagger2markup/internal/component/DefinitionComponentTest.java
test_class.identifier: DefinitionComponentTest
test_class.superclass: extends AbstractComponentTest
test_case.body: @Test
      public void testDefinitionComponent() throws URISyntaxException {
          //Given
          Path file = Paths.get(DefinitionComponentTest.class.getResource("/yaml/swagger_petstore.yaml").toURI());
          Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(file).build();
          Swagger swagger = converter.getContext().getSchema();
  
          Model petModel = swagger.getDefinitions().get("Pet");
  
          Swagger2MarkupConverter.SwaggerContext context = converter.getContext();
          MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder();
  
          //When
          markupDocBuilder = new DefinitionComponent(context, new DefinitionDocumentResolverFromDefinition(context))
                  .apply(markupDocBuilder, DefinitionComponent.parameters("Pet", petModel, 2));
          markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8);
  
          //Then
          Path expectedFile = getExpectedFile(COMPONENT_NAME);
          DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME));
  
      }
test_case.class_method_signature: DefinitionComponentTest.testDefinitionComponent()
test_case.full_signature: @Test public void testDefinitionComponent()
test_case.identifier: testDefinitionComponent
test_case.invocations: get toURI getResource build from getSchema getContext get getDefinitions getContext createMarkupDocBuilder apply parameters writeToFileWithoutExtension getExpectedFile assertThatFileIsEqual getReportName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefinitionComponent()
focal_class.declarator: ALWAYS_DISPLAY_DISCRIMINATOR = false
focal_class.modifier: private static final
focal_class.original_string: private static final boolean ALWAYS_DISPLAY_DISCRIMINATOR = false;
focal_class.type: boolean
focal_class.var_name: ALWAYS_DISPLAY_DISCRIMINATOR
focal_class.declarator: definitions
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Model> definitions;
focal_class.type: Map<String, Model>
focal_class.var_name: definitions
focal_class.declarator: POLYMORPHISM_NATURE
focal_class.modifier: private final
focal_class.original_string: private final Map<ObjectTypePolymorphism.Nature, String> POLYMORPHISM_NATURE;
focal_class.type: Map<ObjectTypePolymorphism.Nature, String>
focal_class.var_name: POLYMORPHISM_NATURE
focal_class.declarator: definitionsDocumentResolver
focal_class.modifier: private final
focal_class.original_string: private final DocumentResolver definitionsDocumentResolver;
focal_class.type: DocumentResolver
focal_class.var_name: definitionsDocumentResolver
focal_class.declarator: propertiesTableComponent
focal_class.modifier: private
focal_class.original_string: private PropertiesTableComponent propertiesTableComponent;
focal_class.type: PropertiesTableComponent
focal_class.var_name: propertiesTableComponent
focal_class.file: swagger2markup/src/main/java/io/github/swagger2markup/internal/component/DefinitionComponent.java
focal_class.identifier: DefinitionComponent
focal_class.class_method_signature: DefinitionComponent.DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_class.full_signature: public  DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_class.identifier: DefinitionComponent
focal_class.modifiers: public
focal_class.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_class.signature:  DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_class.class_method_signature: DefinitionComponent.parameters(String definitionName,
                                                              Model model,
                                                              int titleLevel)
focal_class.full_signature: public static DefinitionComponent.Parameters parameters(String definitionName,
                                                              Model model,
                                                              int titleLevel)
focal_class.identifier: parameters
focal_class.modifiers: public static
focal_class.parameters: (String definitionName,
                                                              Model model,
                                                              int titleLevel)
focal_class.return: DefinitionComponent.Parameters
focal_class.signature: DefinitionComponent.Parameters parameters(String definitionName,
                                                              Model model,
                                                              int titleLevel)
focal_class.class_method_signature: DefinitionComponent.apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.full_signature: @Override public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.return: MarkupDocBuilder
focal_class.signature: MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.class_method_signature: DefinitionComponent.determineDefinitionTitle(Parameters params)
focal_class.full_signature: private String determineDefinitionTitle(Parameters params)
focal_class.identifier: determineDefinitionTitle
focal_class.modifiers: private
focal_class.parameters: (Parameters params)
focal_class.return: String
focal_class.signature: String determineDefinitionTitle(Parameters params)
focal_class.class_method_signature: DefinitionComponent.addInlineDefinitionTitle(String title, String anchor, MarkupDocBuilder docBuilder)
focal_class.full_signature: private void addInlineDefinitionTitle(String title, String anchor, MarkupDocBuilder docBuilder)
focal_class.identifier: addInlineDefinitionTitle
focal_class.modifiers: private
focal_class.parameters: (String title, String anchor, MarkupDocBuilder docBuilder)
focal_class.return: void
focal_class.signature: void addInlineDefinitionTitle(String title, String anchor, MarkupDocBuilder docBuilder)
focal_class.class_method_signature: DefinitionComponent.inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.full_signature: private void inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.identifier: inlineDefinitions
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.return: void
focal_class.signature: void inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.class_method_signature: DefinitionComponent.typeSection(MarkupDocBuilder markupDocBuilder, String definitionName, Model model)
focal_class.full_signature: private List<ObjectType> typeSection(MarkupDocBuilder markupDocBuilder, String definitionName, Model model)
focal_class.identifier: typeSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String definitionName, Model model)
focal_class.return: List<ObjectType>
focal_class.signature: List<ObjectType> typeSection(MarkupDocBuilder markupDocBuilder, String definitionName, Model model)
focal_class.class_method_signature: DefinitionComponent.applyDefinitionsDocumentExtension(Context context)
focal_class.full_signature: private void applyDefinitionsDocumentExtension(Context context)
focal_class.identifier: applyDefinitionsDocumentExtension
focal_class.modifiers: private
focal_class.parameters: (Context context)
focal_class.return: void
focal_class.signature: void applyDefinitionsDocumentExtension(Context context)
focal_class.superclass: extends MarkupComponent<DefinitionComponent.Parameters>
focal_method.body: public DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver) {
          super(context);
          this.definitions = context.getSchema().getDefinitions();
          this.definitionsDocumentResolver = definitionsDocumentResolver;
          POLYMORPHISM_NATURE = new HashMap<ObjectTypePolymorphism.Nature, String>() {{
              put(ObjectTypePolymorphism.Nature.COMPOSITION, labels.getLabel(POLYMORPHISM_NATURE_COMPOSITION));
              put(ObjectTypePolymorphism.Nature.INHERITANCE, labels.getLabel(POLYMORPHISM_NATURE_INHERITANCE));
          }};
          propertiesTableComponent = new PropertiesTableComponent(context, definitionsDocumentResolver);
      }
focal_method.class_method_signature: DefinitionComponent.DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_method.full_signature: public  DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_method.identifier: DefinitionComponent
focal_method.modifiers: public
focal_method.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)
focal_method.signature:  DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                                 DocumentResolver definitionsDocumentResolver)