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
Types 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, writeprotected 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()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class ModelElementnull.public Constructor getConstructor()
public void removeConstructor()
protected void addIfImportRequired(Collection<Type> collection, Type typeToAdd)
Copyright © 2012–2019. All rights reserved.