public abstract class GeneratedType extends ModelElement
Writable.Context
Modifier | Constructor and Description |
---|---|
protected |
GeneratedType(TypeFactory typeFactory,
String packageName,
String name,
String superClassName,
String interfacePackage,
String interfaceName,
List<MappingMethod> methods,
List<? extends 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 |
addWithDependents(Collection<Type> collection,
Type typeToAdd) |
Accessibility |
getAccessibility() |
List<Annotation> |
getAnnotations() |
Constructor |
getConstructor() |
List<? extends Field> |
getFields() |
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 |
isSuppressGeneratorTimestamp() |
boolean |
isSuppressGeneratorVersionComment() |
void |
removeConstructor() |
void |
setFields(List<? extends Field> fields) |
write
getTemplateName, getTemplateNameForClass
protected GeneratedType(TypeFactory typeFactory, String packageName, String name, String superClassName, String interfacePackage, String interfaceName, List<MappingMethod> methods, List<? extends Field> fields, Options options, VersionInformation versionInformation, Accessibility accessibility, SortedSet<Type> extraImportedTypes, Constructor constructor)
public String getPackageName()
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 VersionInformation getVersionInformation()
public Accessibility getAccessibility()
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 addWithDependents(Collection<Type> collection, Type typeToAdd)
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.