|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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.rhino | Rhino (ECMAScript) support |
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 | |
---|---|
java.lang.Object |
Environment.__getitem__(java.lang.String key)
A hook that Jython uses. |
TemplateModel |
CollectionAndSequence.get(int i)
|
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. |
TemplateModel |
LocalContext.getLocalVariable(java.lang.String name)
|
TemplateModel |
Environment.getLocalVariable(java.lang.String name)
Returns the loop or macro local variable corresponding to this variable name. |
java.util.Collection |
LocalContext.getLocalVariableNames()
|
TemplateModel |
Environment.getVariable(java.lang.String name)
Returns the variable that is visible in this context. |
TemplateModelIterator |
CollectionAndSequence.iterator()
|
int |
CollectionAndSequence.size()
|
Uses of TemplateModelException in freemarker.debug |
---|
Methods in freemarker.debug that throw TemplateModelException | |
---|---|
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)
|
boolean |
DebugModel.getAsBoolean()
|
java.util.Date |
DebugModel.getAsDate()
|
java.lang.Number |
DebugModel.getAsNumber()
|
java.lang.String |
DebugModel.getAsString()
|
DebugModel[] |
DebugModel.getCollection()
|
int |
DebugModel.getDateType()
|
java.lang.String[] |
DebugModel.keys()
|
int |
DebugModel.size()
|
Uses of TemplateModelException in freemarker.ext.beans |
---|
Subclasses of TemplateModelException in freemarker.ext.beans | |
---|---|
class |
InvalidPropertyException
An exception thrown when there is an attempt to access an invalid bean property when we are in a "strict bean" mode |
Methods in freemarker.ext.beans that throw TemplateModelException | |
---|---|
java.lang.Object |
SimpleMethodModel.exec(java.util.List arguments)
Invokes the method, passing it the arguments from the list. |
java.lang.Object |
SimpleMapModel.exec(java.util.List args)
|
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. |
TemplateModel |
SimpleMethodModel.get(int index)
|
TemplateModel |
CollectionModel.get(int index)
Retrieves the i-th object from the collection, wrapped as a TemplateModel. |
TemplateModel |
ArrayModel.get(int index)
|
TemplateModel |
SimpleMapModel.get(java.lang.String key)
|
TemplateModel |
BeanModel.get(java.lang.String key)
Uses Beans introspection to locate a property or method with name matching the key name. |
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. |
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. |
protected TemplateModel |
BeanModel.invokeGenericGet(java.util.Map keyMap,
java.lang.Class clazz,
java.lang.String key)
|
TemplateModelIterator |
IteratorModel.iterator()
This allows the iterator to be used in a <foreach> block. |
TemplateModelIterator |
EnumerationModel.iterator()
This allows the enumeration to be used in a <foreach> block. |
java.lang.Object |
BeansWrapper.newInstance(java.lang.Class clazz,
java.util.List arguments)
|
TemplateModel |
IteratorModel.next()
Calls underlying Iterator.next() and wraps the result. |
TemplateModel |
EnumerationModel.next()
Calls underlying Enumeration.nextElement() and wraps the result. |
int |
SimpleMethodModel.size()
|
java.lang.Object |
BeansWrapper.unwrap(TemplateModel model)
Attempts to unwrap a model into underlying object. |
protected java.lang.Object |
BeanModel.unwrap(TemplateModel model)
|
java.lang.Object |
BeansWrapper.unwrap(TemplateModel model,
java.lang.Class hint)
Attempts to unwrap a model into an object of the desired class. |
TemplateCollectionModel |
BeanModel.values()
|
TemplateModel |
BeansWrapper.wrap(java.lang.Object object)
Wraps the object with a template model that is most specific for the object's class. |
protected TemplateModel |
BeanModel.wrap(java.lang.Object obj)
|
Uses of TemplateModelException in freemarker.ext.dom |
---|
Methods in freemarker.ext.dom that throw TemplateModelException | |
---|---|
TemplateModel |
NodeModel.exec(java.util.List args)
|
TemplateModel |
XPathSupport.executeQuery(java.lang.Object context,
java.lang.String xpathQuery)
|
TemplateModel |
NodeModel.get(java.lang.String key)
|
java.lang.String |
NodeModel.getNodeType()
|
Uses of TemplateModelException in freemarker.ext.jdom |
---|
Methods in freemarker.ext.jdom that throw TemplateModelException | |
---|---|
java.lang.Object |
NodeListModel.exec(java.util.List arguments)
Deprecated. Applies an XPath expression to the node list and returns the resulting node list. |
TemplateModel |
NodeListModel.get(int i)
Deprecated. Retrieves the i-th element of the node list. |
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. |
java.lang.String |
NodeListModel.getAsString()
Deprecated. This method returns the string resulting from concatenation of string representations of its nodes. |
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 | |
---|---|
java.lang.Object |
JythonModel.exec(java.util.List arguments)
|
TemplateModel |
JythonSequenceModel.get(int index)
Returns PyObject.__finditem__(int) . |
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.getAsBoolean()
Returns the value of PyObject.__nonzero__() . |
java.lang.Number |
JythonNumberModel.getAsNumber()
Returns either PyObject.__tojava__(java.lang.Class) with
Number .class as argument. |
java.lang.String |
JythonModel.getAsString()
Returns the value of Object.toString() . |
boolean |
JythonModel.isEmpty()
Returns PyObject.__len__() == 0 . |
TemplateCollectionModel |
JythonHashModel.keys()
Returns either object. |
int |
JythonSequenceModel.size()
Returns PyObject.__len__() . |
int |
JythonHashModel.size()
Returns PyObject.__len__() . |
org.python.core.PyObject |
JythonWrapper.unwrap(TemplateModel model)
Coerces a template model into a PyObject . |
TemplateCollectionModel |
JythonHashModel.values()
Returns object. |
Uses of TemplateModelException in freemarker.ext.rhino |
---|
Methods in freemarker.ext.rhino that throw TemplateModelException | |
---|---|
java.lang.Object |
RhinoFunctionModel.exec(java.util.List arguments)
|
TemplateModel |
RhinoScriptableModel.get(int index)
|
TemplateModel |
RhinoScriptableModel.get(java.lang.String key)
|
TemplateCollectionModel |
RhinoScriptableModel.keys()
|
TemplateCollectionModel |
RhinoScriptableModel.values()
|
TemplateModel |
RhinoWrapper.wrap(java.lang.Object obj)
|
Uses of TemplateModelException in freemarker.ext.servlet |
---|
Methods in freemarker.ext.servlet that throw TemplateModelException | |
---|---|
protected TemplateModel |
FreemarkerServlet.createModel(ObjectWrapper wrapper,
javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
TemplateModel |
ServletContextHashModel.get(java.lang.String key)
|
TemplateModel |
HttpSessionHashModel.get(java.lang.String key)
|
TemplateModel |
HttpRequestHashModel.get(java.lang.String key)
|
TemplateModel |
AllHttpScopesHashModel.get(java.lang.String key)
|
boolean |
HttpSessionHashModel.isEmpty()
|
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. |
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. |
java.lang.String |
NodeListModel.getAsString()
Deprecated. Returns the string representation of the wrapped 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 | |
---|---|
int |
TransformControl.afterBody()
Called after the body has been evaluated. |
java.lang.Object |
TemplateMethodModelEx.exec(java.util.List arguments)
Executes a method call. |
java.lang.Object |
TemplateMethodModel.exec(java.util.List arguments)
Executes a method call. |
TemplateModel |
TemplateSequenceModel.get(int index)
Retrieves the i-th template model in this sequence. |
TemplateModel |
SimpleSequence.get(int i)
|
TemplateModel |
TemplateHashModel.get(java.lang.String key)
Gets a TemplateModel from the hash. |
TemplateModel |
SimpleHash.get(java.lang.String key)
|
boolean |
TemplateBooleanModel.getAsBoolean()
|
java.util.Date |
TemplateDateModel.getAsDate()
Returns the date value. |
java.lang.Number |
TemplateNumberModel.getAsNumber()
Returns the numeric value. |
java.lang.String |
TemplateScalarModel.getAsString()
Returns the string representation of this model. |
java.lang.String |
LocalizedString.getAsString()
|
TemplateSequenceModel |
TemplateNodeModel.getChildNodes()
|
java.lang.String |
ResourceBundleLocalizedString.getLocalizedString(java.util.Locale locale)
|
abstract java.lang.String |
LocalizedString.getLocalizedString(java.util.Locale locale)
|
java.lang.String |
TemplateNodeModel.getNodeName()
|
java.lang.String |
TemplateNodeModel.getNodeNamespace()
|
java.lang.String |
TemplateNodeModel.getNodeType()
|
TemplateNodeModel |
TemplateNodeModel.getParentNode()
|
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. |
protected TemplateModel |
SimpleObjectWrapper.handleUnknownType(java.lang.Object obj)
Called if a type other than the simple ones we know about is passed in. |
protected TemplateModel |
DefaultObjectWrapper.handleUnknownType(java.lang.Object obj)
Called if an unknown type is passed in. |
boolean |
TemplateModelIterator.hasNext()
|
boolean |
TemplateHashModel.isEmpty()
|
TemplateModelIterator |
TemplateCollectionModel.iterator()
Retrieves a template model iterator that is used to iterate over the elements in this collection. |
TemplateCollectionModel |
TemplateHashModelEx.keys()
|
TemplateModel |
TemplateModelIterator.next()
Returns the next model. |
int |
TransformControl.onStart()
Called before the body is evaluated for the first time. |
void |
Configuration.setAllSharedVariables(TemplateHashModelEx hash)
Adds all object in the hash as shared variable to the configuration. |
void |
Configuration.setSharedVariable(java.lang.String name,
java.lang.Object obj)
Adds shared variable to the configuration. |
int |
TemplateSequenceModel.size()
|
int |
TemplateHashModelEx.size()
|
java.util.List |
SimpleSequence.toList()
Note that this method creates and returns a deep-copy of the underlying list used internally. |
java.util.Map |
SimpleHash.toMap()
Note that this method creates and returns a deep-copy of the underlying hash used internally. |
TemplateCollectionModel |
TemplateHashModelEx.values()
|
protected TemplateModel |
WrappingTemplateModel.wrap(java.lang.Object obj)
Wraps the passed object into a template model using this object's object wrapper. |
TemplateModel |
ObjectWrapper.wrap(java.lang.Object obj)
|
TemplateModel |
DefaultObjectWrapper.wrap(java.lang.Object obj)
|
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.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)
|
java.io.Writer |
StandardCompress.getWriter(java.io.Writer out,
java.util.Map args)
|
java.io.Writer |
CaptureOutput.getWriter(java.io.Writer out,
java.util.Map args)
Deprecated. |
static java.lang.Object |
DeepUnwrap.permissiveUnwrap(TemplateModel model)
Same as DeepUnwrap.unwrap(TemplateModel) , but it doesn't throw exception
if it doesn't know how to unwrap the model, but rather returns it as-is. |
static java.lang.Object |
DeepUnwrap.premissiveUnwrap(TemplateModel model)
Deprecated. the name of this method is mistyped. Use DeepUnwrap.permissiveUnwrap(TemplateModel) instead. |
static java.lang.Object |
DeepUnwrap.unwrap(TemplateModel model)
Unwraps TemplateModel -s recursively. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |