public class EnumDefinitionToDataModelMapper
extends java.lang.Object
Constructor and Description |
---|
EnumDefinitionToDataModelMapper(GraphQLTypeMapper graphQLTypeMapper,
DataModelMapper dataModelMapper) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
map(MappingContext mappingContext,
ExtendedEnumTypeDefinition definition)
Map field definition to a Freemarker data model
|
public EnumDefinitionToDataModelMapper(GraphQLTypeMapper graphQLTypeMapper, DataModelMapper dataModelMapper)
public java.util.Map<java.lang.String,java.lang.Object> map(MappingContext mappingContext, ExtendedEnumTypeDefinition definition)
mappingContext
- Global mapping contextdefinition
- Definition of enum type including base definition and its extensions