Class Decorator

All Implemented Interfaces:
Writable

public class Decorator extends GeneratedType
Represents a decorator applied to a generated mapper type.
Author:
Gunnar Morling
  • Method Details

    • getImportTypes

      public SortedSet<Type> getImportTypes()
      Description copied from class: ModelElement
      Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
      Overrides:
      getImportTypes in class GeneratedType
      Returns:
      A set with type referenced by this model element. Must not be null.
    • getTemplateName

      protected String getTemplateName()
      Description copied from class: FreeMarkerWritable
      Returns the name of the template to be used for a specific writable type. By default, FreeMarkerWritable.getTemplateNameForClass(Class) is called with getClass(), but this can be customized by overriding this method if required.
      Overrides:
      getTemplateName in class FreeMarkerWritable
      Returns:
      the name of the template. Must not be null.
    • getMapperType

      public Type getMapperType()