001package org.andromda.core.templateengine;
002
003import java.io.Writer;
004import java.util.List;
005import java.util.Map;
006
007/**
008 * Just a mock template engine implementation
009 * for testing purposes.
010 *
011 * @author Chad Brandon
012 */
013public class MockTemplateEngine
014    implements TemplateEngine
015{
016    /**
017     * @see org.andromda.core.templateengine.TemplateEngine#initialize(String)
018     */
019    public void initialize(String namespace)
020        throws Exception
021    {
022    }
023
024    /**
025     * @see org.andromda.core.templateengine.TemplateEngine#processTemplate(String, Map, Writer)
026     */
027    public void processTemplate(
028        String templateFile,
029        Map<String, Object> templateObjects,
030        Writer output)
031        throws Exception
032    {
033    }
034
035    /**
036     * @see org.andromda.core.templateengine.TemplateEngine#shutdown()
037     */
038    public void shutdown()
039    {
040    }
041
042    /**
043     * @see org.andromda.core.templateengine.TemplateEngine#getMacroLibraries()
044     */
045    public List<String> getMacroLibraries()
046    {
047        return null;
048    }
049
050    /**
051     * @see org.andromda.core.templateengine.TemplateEngine#addMacroLibrary(String)
052     */
053    public void addMacroLibrary(String macroLibrary)
054    {
055    }
056
057    /**
058     * @see org.andromda.core.templateengine.TemplateEngine#setMergeLocation(String)
059     */
060    public void setMergeLocation(String mergeLocation)
061    {
062    }
063
064    /**
065     * @see org.andromda.core.templateengine.TemplateEngine#getEvaluatedExpression(String, Map)
066     */
067    public String getEvaluatedExpression(String expression, Map<String, Object> templateObjects)
068    {
069        return null;
070    }
071}