Class GeneratedType

  • All Implemented Interfaces:
    Direct Known Subclasses:
    Decorator, Mapper

    public abstract class GeneratedType
    extends ModelElement
    A type generated by MapStruct, e.g. representing a mapper type.
    Gunnar Morling
    • Method Detail

      • getPackageName

        public String getPackageName()
      • hasPackageName

        public boolean hasPackageName()
      • getName

        public String getName()
      • getMapperDefinitionType

        public Type getMapperDefinitionType()
      • addAnnotation

        public void addAnnotation​(Annotation annotation)
      • setFields

        public void setFields​(List<Field> fields)
      • isSuppressGeneratorTimestamp

        public boolean isSuppressGeneratorTimestamp()
      • isSuppressGeneratorVersionComment

        public boolean isSuppressGeneratorVersionComment()
      • isGeneratedTypeAvailable

        public boolean isGeneratedTypeAvailable()
      • setConstructor

        public void setConstructor​(Constructor constructor)
      • 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.
        Specified by:
        getImportTypes in class ModelElement
        A set with type referenced by this model element. Must not be null.
      • removeConstructor

        public void removeConstructor()
      • addIfImportRequired

        protected void addIfImportRequired​(Collection<Type> collection,
                                           Type typeToAdd)