public class Mapper extends GeneratedType
@Mapper
). This is the root object of the
mapper model.Modifier and Type | Class and Description |
---|---|
static class |
Mapper.Builder |
Writable.Context
Modifier and Type | Method and Description |
---|---|
Decorator |
getDecorator() |
List<MapperReference> |
getReferencedMappers() |
protected String |
getTemplateName()
Returns the name of the template to be used for a specific writable type.
|
boolean |
hasCustomImplementation() |
void |
removeDecorator() |
addAnnotation, addIfImportRequired, getAccessibility, getAnnotations, getConstructor, getFields, getImportTypes, getInterfaceName, getInterfacePackage, getMethods, getName, getPackageName, getSuperClassName, getVersionInformation, isGeneratedTypeAvailable, isSuppressGeneratorTimestamp, isSuppressGeneratorVersionComment, removeConstructor, setFields
write
getTemplateNameForClass
public List<MapperReference> getReferencedMappers()
public Decorator getDecorator()
public void removeDecorator()
public boolean hasCustomImplementation()
protected String getTemplateName()
FreeMarkerWritable
FreeMarkerWritable.getTemplateNameForClass(Class)
is called with getClass()
, but this can be customized by
overriding this method if required.getTemplateName
in class FreeMarkerWritable
null
.Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.