1 package br.com.ibnetwork.guara.view.impl;
2
3 import java.io.Writer;
4
5 import br.com.ibnetwork.guara.view.Context;
6 import br.com.ibnetwork.guara.view.TemplateEngine;
7 import br.com.ibnetwork.guara.view.TemplateEngineException;
8
9 public class NullTemplateEngine
10 implements TemplateEngine
11 {
12 private static final TemplateEngine INSTANCE = new NullTemplateEngine();
13
14 private NullTemplateEngine() {}
15
16 public static TemplateEngine instance()
17 {
18 return INSTANCE;
19 }
20
21 public void merge(String templateName, Context context, Writer writer)
22 throws TemplateEngineException
23 {
24 }
25
26 public boolean templateExists(String templateName)
27 throws TemplateEngineException
28 {
29 return false;
30 }
31
32 public Context createContext()
33 throws TemplateEngineException
34 {
35 return null;
36 }
37
38 public String getTemplateExtension()
39 {
40 return null;
41 }
42
43 public String getEncoding()
44 {
45 return null;
46 }
47
48 public String getOnErrorTemplate()
49 {
50 return null;
51 }
52
53 public String toTemplateName(String templateName)
54 {
55 return null;
56 }
57
58 public String toFileName(String templateName)
59 {
60 return null;
61 }
62 }