Package freemarker.template
Interface TemplateNodeModelEx
-
- All Superinterfaces:
TemplateModel
,TemplateNodeModel
- All Known Implementing Classes:
NodeModel
public interface TemplateNodeModelEx extends TemplateNodeModel
ATemplateNodeModel
that supports navigating to the previous and next sibling nodes.- Since:
- 2.3.26
-
-
Field Summary
-
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateNodeModelEx
getNextSibling()
TemplateNodeModelEx
getPreviousSibling()
-
Methods inherited from interface freemarker.template.TemplateNodeModel
getChildNodes, getNodeName, getNodeNamespace, getNodeType, getParentNode
-
-
-
-
Method Detail
-
getPreviousSibling
TemplateNodeModelEx getPreviousSibling() throws TemplateModelException
- Returns:
- The immediate previous sibling of this node, or
null
if there's no such node. - Throws:
TemplateModelException
-
getNextSibling
TemplateNodeModelEx getNextSibling() throws TemplateModelException
- Returns:
- The immediate next sibling of this node, or
null
if there's no such node. - Throws:
TemplateModelException
-
-