Class SimpleTemplate
- java.lang.Object
-
- ru.ispras.microtesk.tools.templgen.templates.GeneratedTemplate
-
- ru.ispras.microtesk.tools.templgen.templates.SimpleTemplate
-
- All Implemented Interfaces:
BaseTemplate
public final class SimpleTemplate extends GeneratedTemplate
TheSimpleTemplate
class generates simple template of meta model.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SIMPLE_TEMPLATE_NAME
-
Fields inherited from class ru.ispras.microtesk.tools.templgen.templates.GeneratedTemplate
ignoredInstructions, templateMetaModel, templatePrinter
-
-
Constructor Summary
Constructors Constructor Description SimpleTemplate(MetaModel metaModel, TemplatePrinter printer, java.util.Set<java.lang.String> ignoredInstructions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
extract()
Extracts the information from model for this template.boolean
generate()
Generates the template and output it in the format of the specified printer.-
Methods inherited from class ru.ispras.microtesk.tools.templgen.templates.GeneratedTemplate
sort
-
-
-
-
Field Detail
-
SIMPLE_TEMPLATE_NAME
public static final java.lang.String SIMPLE_TEMPLATE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleTemplate
public SimpleTemplate(MetaModel metaModel, TemplatePrinter printer, java.util.Set<java.lang.String> ignoredInstructions)
-
-
Method Detail
-
generate
public boolean generate()
Description copied from class:GeneratedTemplate
Generates the template and output it in the format of the specified printer.- Specified by:
generate
in interfaceBaseTemplate
- Specified by:
generate
in classGeneratedTemplate
-
extract
protected boolean extract()
Description copied from class:GeneratedTemplate
Extracts the information from model for this template.- Specified by:
extract
in classGeneratedTemplate
- Returns:
- true if success
-
-