Source Code Cross Referenced for TemplateEngine.java in  » UML » AndroMDA-3.2 » org » andromda » core » templateengine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » AndroMDA 3.2 » org.andromda.core.templateengine 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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:         * The interface that all templates engines used within AndroMDA must implement.
10:         * It allows us to plug-in the template engine to use for processing of
11:         * templates used by the system.
12:         *
13:         * @author Chad Brandon
14:         */
15:        public interface TemplateEngine {
16:            /**
17:             * Initializes the TempateEngine.
18:             *
19:             * @param namespace The name of a namespace this can be used for whatever the
20:             *        template engine implementation likes. For example, it can help
21:             *        determine the name of the log file to which output is logged.
22:             */
23:            public void initialize(String namespace) throws Exception;
24:
25:            /**
26:             * Processes a template.
27:             *
28:             * @param templateFile the path to the template file that will be processed.
29:             * @param templateObjects any additional objects we wish to make available
30:             *        to the translation template that is processed
31:             * @param output the Writer to which to write the output of the processing.
32:             * @throws Exception any exception that may occur
33:             */
34:            public void processTemplate(String templateFile,
35:                    Map templateObjects, Writer output) throws Exception;
36:
37:            /**
38:             * Shuts down the template engine. The meaning of this is defined by the
39:             * template engine itself. At least, it should close any logfiles.
40:             */
41:            public void shutdown();
42:
43:            /**
44:             * Returns the list of macro libraries used within this template engine.
45:             *
46:             * @return List the list of macros
47:             */
48:            public List getMacroLibraries();
49:
50:            /**
51:             * Adds a a macro library for use within this template engine.
52:             *
53:             * @param macroLibrary
54:             */
55:            public void addMacroLibrary(String macroLibrary);
56:
57:            /**
58:             * Sets the location of <code>merge</code> templates. These are templates
59:             * that will be merged into cartridges during processing from an external
60:             * location. This allows the ability to define templates external to plugins
61:             * so that these templates can override plugin templates in order to provide
62:             * customization.
63:             *
64:             * @param the location of the merge files.
65:             */
66:            public void setMergeLocation(String mergeLocation);
67:
68:            /**
69:             * Evaluates the <code>expression</code> contained within the template
70:             * being processed and returns the result.
71:             *  
72:             * @param expression the expression to evaluate.
73:             * @param templateObjects any additional objects we wish to make available
74:             *        to the template engine when the expression is evaluted.  It this is null
75:             *        there will be nothing to be evaluated and therefore this operation will return
76:             *        null.
77:             * @return the result of the evaluated expression as a String.
78:             */
79:            public String getEvaluatedExpression(String expression,
80:                    Map templateObjects);
81:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.