Uses of Class
freemarker.template.TemplateModelException

Packages that use TemplateModelException
freemarker.core This package contains FreeMarker's core parsing/rendering functionality; most casual users do not need to be aware of the classes in this package, and can restrict their attention to the freemarker.template package. 
freemarker.debug   
freemarker.ext.beans Provides model implementations that allow access to arbitrary Java objects. 
freemarker.ext.dom   
freemarker.ext.jdom Provides adapter for JDOM including support for writing XML fragments, listing nodes, traversal, copying, and filtering, and a full XPath support. 
freemarker.ext.jsp Classes for two-way FreeMarker-JSP integration.  
freemarker.ext.jython Provides model implementations that allow access to arbitrary Jython objects. 
freemarker.ext.servlet Provides a generic purpose servlet that generates dynamic response using FreeMarker. 
freemarker.ext.xml Provides data model adapter for DOM, dom4j and JDOM; three widely used XML document object models.  
freemarker.template This package contains the core API's that most users will use. 
freemarker.template.utility Utility classes that may be used to customize aspects of FreeMarker.  
 

Uses of TemplateModelException in freemarker.core
 

Methods in freemarker.core that throw TemplateModelException
 TemplateModel LocalContext.getLocalVariable(java.lang.String name)
           
 java.util.Set LocalContext.getLocalVariableNames()
           
 TemplateModel Environment.getLocalVariable(java.lang.String name)
          Returns the loop or macro local variable corresponding to this variable name.
 TemplateModel Environment.getVariable(java.lang.String name)
          Returns the variable that is visible in this context.
 TemplateModel Environment.getGlobalVariable(java.lang.String name)
          Returns the globally visible variable of the given name (or null).
 java.util.Set Environment.getKnownVariableNames()
          Returns a set of variable names that are known at the time of call.
 java.lang.Object Environment.__getitem__(java.lang.String key)
          A hook that Jython uses.
 TemplateModelIterator CollectionAndSequence.iterator()
           
 TemplateModel CollectionAndSequence.get(int i)
           
 int CollectionAndSequence.size()
           
 

Uses of TemplateModelException in freemarker.debug
 

Methods in freemarker.debug that throw TemplateModelException
 java.lang.String DebugModel.getAsString()
           
 java.lang.Number DebugModel.getAsNumber()
           
 boolean DebugModel.getAsBoolean()
           
 java.util.Date DebugModel.getAsDate()
           
 int DebugModel.getDateType()
           
 int DebugModel.size()
           
 DebugModel DebugModel.get(int index)
           
 DebugModel[] DebugModel.get(int fromIndex, int toIndex)
           
 DebugModel DebugModel.get(java.lang.String key)
           
 DebugModel[] DebugModel.get(java.lang.String[] keys)
           
 DebugModel[] DebugModel.getCollection()
           
 java.lang.String[] DebugModel.keys()
           
 

Uses of TemplateModelException in freemarker.ext.beans
 

Methods in freemarker.ext.beans that throw TemplateModelException
 TemplateModel SimpleMapModel.get(java.lang.String key)
           
 java.lang.Object SimpleMapModel.exec(java.util.List args)
           
protected  TemplateModel ResourceBundleModel.invokeGenericGet(java.util.Map keyMap, java.lang.Class clazz, java.lang.String key)
          Overridden to invoke the getObject method of the resource bundle.
 java.lang.Object ResourceBundleModel.exec(java.util.List arguments)
          Takes first argument as a resource key, looks up a string in resource bundle with this key, then applies a MessageFormat.format on the string with the rest of the arguments.
 java.lang.Object MapModel.exec(java.util.List arguments)
          The first argument is used as a key to call the map's get method.
protected  TemplateModel MapModel.invokeGenericGet(java.util.Map keyMap, java.lang.Class clazz, java.lang.String key)
          Overridden to invoke the generic get method by casting to Map instead of through reflection - should yield better performance.
 TemplateModelIterator IteratorModel.iterator()
          This allows the iterator to be used in a <foreach> block.
 TemplateModel IteratorModel.next()
          Calls underlying Iterator.next() and wraps the result.
 TemplateModelIterator EnumerationModel.iterator()
          This allows the enumeration to be used in a <foreach> block.
 TemplateModel EnumerationModel.next()
          Calls underlying Enumeration.nextElement() and wraps the result.
 TemplateModel CollectionModel.get(int index)
          Retrieves the i-th object from the collection, wrapped as a TemplateModel.
 TemplateModel BeansWrapper.wrap(java.lang.Object object)
          Wraps the object with a template model that is most specific for the object's class.
 java.lang.Object BeansWrapper.unwrap(TemplateModel model)
          Attempts to unwrap a model into underlying object.
 java.lang.Object BeansWrapper.newInstance(java.lang.Class clazz, java.util.List arguments)
           
 TemplateModel BeanModel.get(java.lang.String key)
          Uses Beans introspection to locate a property or method with name matching the key name.
protected  TemplateModel BeanModel.invokeGenericGet(java.util.Map keyMap, java.lang.Class clazz, java.lang.String key)
           
protected  TemplateModel BeanModel.wrap(java.lang.Object obj)
           
protected  java.lang.Object BeanModel.unwrap(TemplateModel model)
           
 TemplateCollectionModel BeanModel.values()
           
 TemplateModel ArrayModel.get(int index)
           
 

Uses of TemplateModelException in freemarker.ext.dom
 

Methods in freemarker.ext.dom that throw TemplateModelException
 TemplateModel XPathSupport.executeQuery(java.lang.Object context, java.lang.String xpathQuery)
           
 TemplateModel NodeModel.get(java.lang.String key)
           
 java.lang.String NodeModel.getNodeType()
           
 TemplateModel NodeModel.exec(java.util.List args)
           
 

Uses of TemplateModelException in freemarker.ext.jdom
 

Methods in freemarker.ext.jdom that throw TemplateModelException
 java.lang.String NodeListModel.getAsString()
          Deprecated. This method returns the string resulting from concatenation of string representations of its nodes.
 TemplateModel NodeListModel.get(java.lang.String key)
          Deprecated. Provides node list traversal as well as special functions: filtering by name, filtering by node type, shallow-copying, and duplicate removal.
 TemplateModel NodeListModel.get(int i)
          Deprecated. Retrieves the i-th element of the node list.
 java.lang.Object NodeListModel.exec(java.util.List arguments)
          Deprecated. Applies an XPath expression to the node list and returns the resulting node list.
 

Uses of TemplateModelException in freemarker.ext.jsp
 

Methods in freemarker.ext.jsp that throw TemplateModelException
 TemplateModel TaglibFactory.get(java.lang.String uri)
          Retrieves a JSP tag library identified by an URI.
 

Uses of TemplateModelException in freemarker.ext.jython
 

Methods in freemarker.ext.jython that throw TemplateModelException
 org.python.core.PyObject JythonWrapper.unwrap(TemplateModel model)
          Coerces a template model into a PyObject.
 TemplateModel JythonSequenceModel.get(int index)
          Returns PyObject.__finditem__(int).
 int JythonSequenceModel.size()
          Returns PyObject.__len__().
 java.lang.Number JythonNumberModel.getAsNumber()
          Returns either PyObject.__tojava__(java.lang.Class) with Number.class as argument.
 boolean JythonModel.getAsBoolean()
          Returns the value of PyObject.__nonzero__().
 java.lang.String JythonModel.getAsString()
          Returns the value of Object.toString().
 TemplateModel JythonModel.get(java.lang.String key)
          Calls PyObject.__findattr__(java.lang.String), then if it returns null calls PyObject.__finditem__(java.lang.String).
 boolean JythonModel.isEmpty()
          Returns PyObject.__len__() == 0.
 java.lang.Object JythonModel.exec(java.util.List arguments)
           
 int JythonHashModel.size()
          Returns PyObject.__len__().
 TemplateCollectionModel JythonHashModel.keys()
          Returns either object.
 TemplateCollectionModel JythonHashModel.values()
          Returns object.
 

Uses of TemplateModelException in freemarker.ext.servlet
 

Methods in freemarker.ext.servlet that throw TemplateModelException
 TemplateModel ServletContextHashModel.get(java.lang.String key)
           
 TemplateModel HttpSessionHashModel.get(java.lang.String key)
           
 boolean HttpSessionHashModel.isEmpty()
           
 TemplateModel HttpRequestHashModel.get(java.lang.String key)
           
protected  TemplateModel FreemarkerServlet.createModel(ObjectWrapper wrapper, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 

Uses of TemplateModelException in freemarker.ext.xml
 

Methods in freemarker.ext.xml that throw TemplateModelException
 java.lang.Object NodeListModel.exec(java.util.List arguments)
          Deprecated. Evaluates an XPath expression on XML nodes in this model.
 java.lang.String NodeListModel.getAsString()
          Deprecated. Returns the string representation of the wrapped nodes.
 TemplateModel NodeListModel.get(java.lang.String key)
          Deprecated. Returns a new NodeListModel containing the nodes that result from applying an operator to this model's nodes.
 TemplateSequenceModel NodeListModel.getChildNodes()
          Deprecated.  
 java.lang.String NodeListModel.getNodeName()
          Deprecated.  
 java.lang.String NodeListModel.getNodeNamespace()
          Deprecated.  
 java.lang.String NodeListModel.getNodeType()
          Deprecated.  
 TemplateNodeModel NodeListModel.getParentNode()
          Deprecated.  
 

Uses of TemplateModelException in freemarker.template
 

Methods in freemarker.template that throw TemplateModelException
protected  TemplateModel WrappingTemplateModel.wrap(java.lang.Object obj)
          Wraps the passed object into a template model using this object's object wrapper.
 int TransformControl.onStart()
          Called before the body is evaluated for the first time.
 int TransformControl.afterBody()
          Called after the body has been evaluated.
 java.io.Writer TemplateTransformModel.getWriter(java.io.Writer out, java.util.Map args)
          Returns a writer that will be used by the engine to feed the transformation input to the transform.
 TemplateModel TemplateSequenceModel.get(int index)
          Retrieves the i-th template model in this sequence.
 int TemplateSequenceModel.size()
           
 java.lang.String TemplateScalarModel.getAsString()
          Returns the string representation of this model.
 java.lang.Number TemplateNumberModel.getAsNumber()
          Returns the numeric value.
 TemplateNodeModel TemplateNodeModel.getParentNode()
           
 TemplateSequenceModel TemplateNodeModel.getChildNodes()
           
 java.lang.String TemplateNodeModel.getNodeName()
           
 java.lang.String TemplateNodeModel.getNodeType()
           
 java.lang.String TemplateNodeModel.getNodeNamespace()
           
 TemplateModel TemplateModelIterator.next()
          Returns the next model.
 boolean TemplateModelIterator.hasNext()
           
 java.lang.Object TemplateMethodModel.exec(java.util.List arguments)
          Executes a method call.
 int TemplateHashModelEx.size()
           
 TemplateCollectionModel TemplateHashModelEx.keys()
           
 TemplateCollectionModel TemplateHashModelEx.values()
           
 TemplateModel TemplateHashModel.get(java.lang.String key)
          Gets a TemplateModel from the hash.
 boolean TemplateHashModel.isEmpty()
           
 java.util.Date TemplateDateModel.getAsDate()
          Returns the date value.
 TemplateModelIterator TemplateCollectionModel.iterator()
          Retrieves a template model iterator that is used to iterate over the elements in this collection.
 boolean TemplateBooleanModel.getAsBoolean()
           
 TemplateModel SimpleSequence.get(int i)
           
protected  TemplateModel SimpleObjectWrapper.handleUnknownType(java.lang.Object obj)
          Called if a type other than the simple ones we know about is passed in.
 TemplateModel SimpleHash.get(java.lang.String key)
           
 TemplateModel ObjectWrapper.wrap(java.lang.Object obj)
           
 TemplateModel DefaultObjectWrapper.wrap(java.lang.Object obj)
           
protected  TemplateModel DefaultObjectWrapper.handleUnknownType(java.lang.Object obj)
          Called if an unknown type is passed in.
 void Configuration.setSharedVariable(java.lang.String name, java.lang.Object obj)
          Adds shared variable to the configuration.
 void Configuration.setAllSharedVariables(TemplateHashModelEx hash)
          Adds all object in the hash as shared variable to the configuration.
 

Constructors in freemarker.template that throw TemplateModelException
SimpleSequence(TemplateCollectionModel tcm)
          Constructs a simple sequence from the passed collection model using the default object wrapper set in WrappingTemplateModel.setDefaultObjectWrapper(ObjectWrapper).
 

Uses of TemplateModelException in freemarker.template.utility
 

Methods in freemarker.template.utility that throw TemplateModelException
 java.io.Writer StandardCompress.getWriter(java.io.Writer out, java.util.Map args)
           
 java.lang.Object ObjectConstructor.exec(java.util.List args)
           
 java.lang.Object Execute.exec(java.util.List arguments)
          Executes a method call.
 TemplateModel DOMNodeModel.get(java.lang.String key)
           
static java.lang.Object DeepUnwrap.unwrap(TemplateModel model)
          Unwraps TemplateModel-s recursively.
static java.lang.Object DeepUnwrap.premissiveUnwrap(TemplateModel model)
          Same as DeepUnwrap.unwrap(freemarker.template.TemplateModel), but it doesn't throw exception if it doesn't know how to unwrap the object, but returns it as is.
 java.io.Writer CaptureOutput.getWriter(java.io.Writer out, java.util.Map args)
          Deprecated.