freemarker.template

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 » Template Engine » freemarker 2.3.10 » freemarker.template 
freemarker.template

This package contains the core API's that most users will use.

The typical usage pattern is to be vended {@link freemarker.template.Template} objects by the {@link freemarker.template.Configuration} object. The Template class represents a template file compiled into an efficient data structure for later use. Processing of compiled templates is very fast.

For complete instructions on how to use this package, please see the manual.

Java Source File NameTypeComment
AdapterTemplateModel.javaInterface Supplemental interface that can be implemented by classes that also implement any of the TemplateModel interfaces.
Configuration.javaClass Main entry point into the FreeMarker API, this class encapsulates the various configuration parameters with which FreeMarker is run, as well as serves as a central template loading and caching point.
DefaultObjectWrapper.javaClass

The default implementation of the ObjectWrapper interface.

EmptyMap.javaClass
GeneralPurposeNothing.javaClass Singleton object representing nothing, used by ?if_exists built-in.
LocalizedString.javaClass An abstract base class for scalars that vary by locale.
ObjectWrapper.javaInterface

An object that knows how to "wrap" a java object as a TemplateModel instance.

ResourceBundleLocalizedString.javaClass
SettingStringParser.javaClass Helper class for parsing setting values given with string.
SimpleCollection.javaClass A simple implementation of TemplateCollectionModel . It's able to wrap java.util.Iterator-s and java.util.Collection-s. If you wrap an Iterator, the variable can be <list>-ed (<forach>-ed) only once!

Consider using SimpleSequence instead of this class if you want to wrap Iterators. SimpleSequence will read all elements of the Iterator, and store them in a List (this may cause too high resource consumption in some applications), so you can list the variable for unlimited times.

SimpleDate.javaClass A simple implementation of the TemplateDateModel interface.
SimpleHash.javaClass

A simple implementation of the TemplateHashModelEx interface, using an underlying Map or SortedMap .

This class is thread-safe if you don't call the put or remove methods after you have made the object available for multiple threads.

SimpleList.javaClass This is a trivial subclass that exists for backward compatibility with the SimpleList from FreeMarker Classic.
SimpleNumber.javaClass A simple implementation of the TemplateNumberModel interface.
SimpleObjectWrapper.javaClass

The default implementation of the ObjectWrapper interface.

SimpleScalar.javaClass A simple implementation of the TemplateScalarModel interface, using a String.
SimpleSequence.javaClass

A convenient implementation of a list.

Template.javaClass

A core FreeMarker API that represents a compiled template. Typically, you will use a Configuration object to instantiate a template.

 Configuration cfg = new Configuration();
 ...
 Template myTemplate = cfg.getTemplate("myTemplate.html");
 

However, you can also construct a template directly by passing in to the appropriate constructor a java.io.Reader instance that is set to read the raw template text.

TemplateBooleanModel.javaInterface Objects that will be interpreted as true/false in the appropriate context must implement this interface.
TemplateCollectionModel.javaInterface This interface can be implemented by a class to make a variable "foreach-able", i.e.
TemplateDateModel.javaInterface Date values in a template data model must implement this interface. Contrary to Java, FreeMarker actually distinguishes values that represent only a time, only a date, or a combined date and time.
TemplateException.javaClass The FreeMarker classes usually use this exception and its descendants to signal FreeMarker specific exceptions.
TemplateExceptionHandler.javaInterface An API for objects that handle exceptions that are thrown during template rendering.
TemplateHashModel.javaInterface Hashes in a data model must implement this interface.
TemplateHashModelEx.javaInterface

An extended hash interface with a couple of extra hooks.

TemplateMethodModel.javaInterface Objects that act as methods in a template data model must implement this interface.
TemplateMethodModelEx.javaInterface A subinterface of TemplateMethodModel that acts on models, rather than on strings.
TemplateModel.javaInterface

This is a marker interface that indicates that an object can be put in a template's data model.

TemplateModelAdapter.javaInterface Implemented by classes that serve as adapters for template model objects in some other object model.
TemplateModelException.javaClass Template model implementation classes should throw this exception if requested data cannot be retrieved.
TemplateModelIterator.javaInterface This interface is used to iterate over a set of template models, and is usually returned from an instance of TemplateCollectionModel .
TemplateModelListSequence.javaClass Sequence that wraps a java.util.List of already wrapped objects directly, with minimal resource usage.
TemplateNodeModel.javaInterface Describes objects that are nodes in a tree. If you have a tree of objects, they can be recursively visited using the <#visit...> and <#recurse...> FTL directives.
TemplateNumberModel.javaInterface Numeric values in a template data model must implement this interface.
TemplateScalarModel.javaInterface String values in a template data model must implement this interface. (Actually, the name of this interface should be TemplateStringModel.
TemplateSequenceModel.javaInterface List values in a template data model whose elements are accessed by the index operator should implement this interface.
TemplateTransformModel.javaInterface Objects that implement this interface can be used in a <transform> block to perform arbitrary transformations on a part of the template processing output.

Note that, as of FreeMarker 2.1, TemplateTransform Model has changed.

TransformControl.javaInterface An interface that can be implemented by writers returned from TemplateTransformModel.getWriter(java.io.Writerjava.util.Map) .
WrappingTemplateModel.javaClass A base class for containers that wrap arbitrary Java objects into TemplateModel instances.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.