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()
Checks if the mapper has a custom implementation that is a custom suffix of an explicit destination package.
|
void |
removeDecorator() |
addAnnotation, addWithDependents, getAccessibility, getAnnotations, getConstructor, getFields, getImportTypes, getInterfaceName, getInterfacePackage, getMethods, getName, getPackageName, getSuperClassName, getVersionInformation, 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-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.