01: package org.andromda.core.templateengine;
02:
03: import java.io.Writer;
04:
05: import java.util.List;
06: import java.util.Map;
07:
08: /**
09: * Just a mock template engine implementation
10: * for testing purposes.
11: *
12: * @author Chad Brandon
13: */
14: public class MockTemplateEngine implements TemplateEngine {
15: /**
16: * @see org.andromda.core.templateengine.TemplateEngine#initialize(java.lang.String)
17: */
18: public void initialize(String namespace) throws Exception {
19: }
20:
21: /**
22: * @see org.andromda.core.templateengine.TemplateEngine#processTemplate(java.lang.String, java.util.Map, java.io.Writer)
23: */
24: public void processTemplate(String templateFile,
25: Map templateObjects, Writer output) throws Exception {
26: }
27:
28: /**
29: * @see org.andromda.core.templateengine.TemplateEngine#shutdown()
30: */
31: public void shutdown() {
32: }
33:
34: /**
35: * @see org.andromda.core.templateengine.TemplateEngine#getMacroLibraries()
36: */
37: public List getMacroLibraries() {
38: return null;
39: }
40:
41: /**
42: * @see org.andromda.core.templateengine.TemplateEngine#addMacroLibrary(java.lang.String)
43: */
44: public void addMacroLibrary(String macroLibrary) {
45: }
46:
47: /**
48: * @see org.andromda.core.templateengine.TemplateEngine#setMergeLocation(java.lang.String)
49: */
50: public void setMergeLocation(String mergeLocation) {
51: }
52:
53: public String getEvaluatedExpression(String expression,
54: Map templateObjects) {
55: return null;
56: }
57: }
|