Class InterfaceDefinitionToDataModelMapper
java.lang.Object
io.github.besi97.graphql.codegen.mapper.InterfaceDefinitionToDataModelMapper
Map interface definition to a Freemarker data model
-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceDefinitionToDataModelMapper(MapperFactory mapperFactory, FieldDefinitionToParameterMapper fieldDefinitionToParameterMapper) -
Method Summary
Modifier and TypeMethodDescriptionmap(MappingContext mappingContext, ExtendedInterfaceTypeDefinition definition) Map interface definition to a Freemarker data model
-
Constructor Details
-
InterfaceDefinitionToDataModelMapper
public InterfaceDefinitionToDataModelMapper(MapperFactory mapperFactory, FieldDefinitionToParameterMapper fieldDefinitionToParameterMapper)
-
-
Method Details
-
map
public Map<String,Object> map(MappingContext mappingContext, ExtendedInterfaceTypeDefinition definition) Map interface definition to a Freemarker data model- Parameters:
mappingContext- Global mapping contextdefinition- Definition of interface type including base definition and its extensions- Returns:
- Freemarker data model of the GraphQL interface
-