public abstract class ModelElement extends FreeMarkerWritable
Writable
contract to write model elements into source code
files.Writable.Context
Constructor and Description |
---|
ModelElement() |
Modifier and Type | Method and Description |
---|---|
abstract Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
void |
write(Writable.Context context,
Writer writer)
Writes this element to the given writer.
|
getTemplateName, getTemplateNameForClass
public void write(Writable.Context context, Writer writer) throws Exception
Writable
write
in interface Writable
write
in class FreeMarkerWritable
context
- Provides additional data specific to the used implementation of the serialization mechanism.writer
- The writer to write this element to. Must not be closed by implementations.Exception
- in case of an errorCopyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.