Uses of Class freemarker.template.TemplateModelException

Uses in package freemarker.ext.rhino

Methods which throw type freemarker.template.TemplateModelException

Object
RhinoFunctionModel.exec(List arguments)
TemplateModel
TemplateModel
TemplateCollectionModel
TemplateCollectionModel
TemplateModel
RhinoWrapper.wrap(Object obj)

Uses in package freemarker.ext.xml

Methods which throw type freemarker.template.TemplateModelException

Object
NodeListModel.exec(List arguments)
Evaluates an XPath expression on XML nodes in this model.
TemplateModel
NodeListModel.get(String key)
Returns a new NodeListModel containing the nodes that result from applying an operator to this model's nodes.
String
Returns the string representation of the wrapped nodes.
TemplateSequenceModel
String
String
String
TemplateNodeModel

Uses in package freemarker.debug

Methods which throw type freemarker.template.TemplateModelException

DebugModel
DebugModel.get(String key)
DebugModel[]
DebugModel.get(String[] keys)
DebugModel
DebugModel.get(int index)
DebugModel[]
DebugModel.get(int fromIndex, int toIndex)
boolean
Date
Number
String
DebugModel[]
int
String[]
int

Uses in package freemarker.ext.jdom

Methods which throw type freemarker.template.TemplateModelException

Object
NodeListModel.exec(List arguments)
Applies an XPath expression to the node list and returns the resulting node list.
TemplateModel
NodeListModel.get(String key)
Provides node list traversal as well as special functions: filtering by name, filtering by node type, shallow-copying, and duplicate removal.
TemplateModel
Retrieves the i-th element of the node list.
String
This method returns the string resulting from concatenation of string representations of its nodes.

Uses in package freemarker.ext.dom

Methods which throw type freemarker.template.TemplateModelException

TemplateModel
NodeModel.exec(List args)
TemplateModel
XPathSupport.executeQuery(Object context, String xpathQuery)
TemplateModel
NodeModel.get(String key)
String

Uses in package freemarker.template.utility

Methods which throw type freemarker.template.TemplateModelException

Object
Execute.exec(List arguments)
Executes a method call.
Object
TemplateModel
DOMNodeModel.get(String key)
Writer
CaptureOutput.getWriter(Writer out, Map args)
Writer
StandardCompress.getWriter(Writer out, Map args)
Object
Same as unwrap(TemplateModel), but it doesn't throw exception if it doesn't know how to unwrap the object, but returns it as is.
Object
Unwraps TemplateModel-s recursively.

Uses in package freemarker.ext.jython

Methods which throw type freemarker.template.TemplateModelException

Object
JythonModel.exec(List arguments)
TemplateModel
JythonModel.get(String key)
Calls PyObject.__findattr__(java.lang.String), then if it returns null calls PyObject.__finditem__(java.lang.String).
TemplateModel
Returns PyObject.__finditem__(int).
boolean
Returns the value of PyObject.__nonzero__().
Number
Returns either PyObject.__tojava__(java.lang.Class) with java.lang.Number.class as argument.
String
Returns the value of Object.toString().
boolean
Returns PyObject.__len__() == 0.
TemplateCollectionModel
Returns either object.__findattr__("keys").__call__() or object.__findattr__("keySet").__call__().
int
Returns PyObject.__len__().
int
Returns PyObject.__len__().
PyObject
Coerces a template model into a PyObject.
TemplateCollectionModel
Returns object.__findattr__("values").__call__().

Uses in package freemarker.core

Methods which throw type freemarker.template.TemplateModelException

Object
A hook that Jython uses.
TemplateModel
Retrieves the i-th template model in this sequence.
TemplateModel
Returns the globally visible variable of the given name (or null).
Set
Returns a set of variable names that are known at the time of call.
TemplateModel
Returns the loop or macro local variable corresponding to this variable name.
TemplateModel
java.util.Set
TemplateModel
Environment.getVariable(String name)
Returns the variable that is visible in this context.
TemplateModelIterator
Retrieves a template model iterator that is used to iterate over the elements in this collection.
int

Uses in package freemarker.ext.servlet

Methods which throw type freemarker.template.TemplateModelException

TemplateModel
FreemarkerServlet.createModel(ObjectWrapper wrapper, ServletContext servletContext, HttpServletRequest request, HttpServletResponse response)
TemplateModel
TemplateModel
TemplateModel
TemplateModel
Gets a TemplateModel from the hash.
boolean

Uses in package freemarker.template

Constructors which throw type freemarker.template.TemplateModelException

Constructs a simple sequence from the passed collection model using the default object wrapper set in WrappingTemplateModel.setDefaultObjectWrapper(ObjectWrapper).

Methods which throw type freemarker.template.TemplateModelException

int
Called after the body has been evaluated.
Object
TemplateMethodModel.exec(List arguments)
Executes a method call.
TemplateModel
SimpleHash.get(String key)
TemplateModel
TemplateHashModel.get(String key)
Gets a TemplateModel from the hash.
TemplateModel
TemplateModel
Retrieves the i-th template model in this sequence.
boolean
Date
Returns the date value.
Number
Returns the numeric value.
String
Returns the string representation of this model.
String
Returns the string representation of this model.
TemplateSequenceModel
String
String
String
String
String
TemplateNodeModel
Writer
TemplateTransformModel.getWriter(Writer out, Map args)
Returns a writer that will be used by the engine to feed the transformation input to the transform.
TemplateModel
Called if an unknown type is passed in.
TemplateModel
Called if a type other than the simple ones we know about is passed in.
boolean
boolean
TemplateModelIterator
Retrieves a template model iterator that is used to iterate over the elements in this collection.
TemplateCollectionModel
TemplateModel
Returns the next model.
int
Called before the body is evaluated for the first time.
void
Adds all object in the hash as shared variable to the configuration.
void
Configuration.setSharedVariable(String name, Object obj)
Adds shared variable to the configuration.
int
int
List
Note that this method creates and returns a deep-copy of the underlying list used internally.
Map
Note that this method creates and returns a deep-copy of the underlying hash used internally.
TemplateCollectionModel
TemplateModel
TemplateModel
ObjectWrapper.wrap(Object obj)
TemplateModel
Wraps the passed object into a template model using this object's object wrapper.

Uses in package freemarker.ext.jsp

Methods which throw type freemarker.template.TemplateModelException

TemplateModel
TaglibFactory.get(String uri)
Retrieves a JSP tag library identified by an URI.

Uses in package freemarker.ext.beans

Classes derived from freemarker.template.TemplateModelException

class
An exception thrown when there is an attempt to access an invalid bean property when we are in a "strict bean" mode

Methods which throw type freemarker.template.TemplateModelException

Object
MapModel.exec(List arguments)
The first argument is used as a key to call the map's get method.
Object
ResourceBundleModel.exec(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.
Object
SimpleMapModel.exec(List args)
TemplateModel
BeanModel.get(String key)
Uses Beans introspection to locate a property or method with name matching the key name.
TemplateModel
SimpleMapModel.get(String key)
TemplateModel
ArrayModel.get(int index)
TemplateModel
CollectionModel.get(int index)
Retrieves the i-th object from the collection, wrapped as a TemplateModel.
TemplateModel
BeanModel.invokeGenericGet(Map keyMap, Class clazz, String key)
TemplateModel
MapModel.invokeGenericGet(Map keyMap, Class clazz, String key)
Overridden to invoke the generic get method by casting to Map instead of through reflection - should yield better performance.
TemplateModel
ResourceBundleModel.invokeGenericGet(Map keyMap, Class clazz, String key)
Overridden to invoke the getObject method of the resource bundle.
TemplateModelIterator
This allows the enumeration to be used in a <foreach> block.
TemplateModelIterator
This allows the iterator to be used in a <foreach> block.
Object
BeansWrapper.newInstance(Class clazz, List arguments)
TemplateModel
Calls underlying Enumeration.nextElement() and wraps the result.
TemplateModel
Calls underlying Iterator.next() and wraps the result.
Object
Object
Attempts to unwrap a model into underlying object.
Object
BeansWrapper.unwrap(TemplateModel model, Class hint)
TemplateCollectionModel
TemplateModel
BeanModel.wrap(Object obj)
TemplateModel
BeansWrapper.wrap(Object object)
Wraps the object with a template model that is most specific for the object's class.