public abstract class GeneratedType extends ModelElement
Modifier and Type | Class and Description |
---|---|
protected static class |
GeneratedType.GeneratedTypeBuilder<T extends GeneratedType.GeneratedTypeBuilder> |
Writable.Context
Modifier | Constructor and Description |
---|---|
protected |
GeneratedType(TypeFactory typeFactory,
String packageName,
String name,
String superClassName,
String interfacePackage,
String interfaceName,
List<MappingMethod> methods,
List<Field> fields,
Options options,
VersionInformation versionInformation,
Accessibility accessibility,
SortedSet<Type> extraImportedTypes,
Constructor constructor) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation annotation) |
protected void |
addIfImportRequired(Collection<Type> collection,
Type typeToAdd) |
Accessibility |
getAccessibility() |
List<Annotation> |
getAnnotations() |
Constructor |
getConstructor() |
List<Field> |
getFields() |
SortedSet<String> |
getImportTypeNames() |
SortedSet<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getInterfaceName() |
String |
getInterfacePackage() |
List<MappingMethod> |
getMethods() |
String |
getName() |
String |
getPackageName() |
String |
getSuperClassName() |
VersionInformation |
getVersionInformation() |
boolean |
hasPackageName() |
boolean |
isGeneratedTypeAvailable() |
boolean |
isSuppressGeneratorTimestamp() |
boolean |
isSuppressGeneratorVersionComment() |
void |
removeConstructor() |
void |
setConstructor(Constructor constructor) |
void |
setFields(List<Field> fields) |
getTemplateName, getTemplateNameForClass, write
protected GeneratedType(TypeFactory typeFactory, String packageName, String name, String superClassName, String interfacePackage, String interfaceName, List<MappingMethod> methods, List<Field> fields, Options options, VersionInformation versionInformation, Accessibility accessibility, SortedSet<Type> extraImportedTypes, Constructor constructor)
public String getPackageName()
public boolean hasPackageName()
public String getName()
public String getSuperClassName()
public String getInterfacePackage()
public String getInterfaceName()
public List<Annotation> getAnnotations()
public void addAnnotation(Annotation annotation)
public List<MappingMethod> getMethods()
public boolean isSuppressGeneratorTimestamp()
public boolean isSuppressGeneratorVersionComment()
public boolean isGeneratedTypeAvailable()
public VersionInformation getVersionInformation()
public Accessibility getAccessibility()
public void setConstructor(Constructor constructor)
public SortedSet<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.public Constructor getConstructor()
public void removeConstructor()
protected void addIfImportRequired(Collection<Type> collection, Type typeToAdd)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.