TemplateNodeModelEx (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.template, interface: TemplateNodeModelEx

Package freemarker.template

# Interface TemplateNodeModelEx

All Superinterfaces:
  `TemplateModel`, `TemplateNodeModel`

All Known Implementing Classes:
  `NodeModel`

public interface TemplateNodeModelEx extends TemplateNodeModel
A `TemplateNodeModel` 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

  Modifier and Type
  Method
  Description
  `TemplateNodeModelEx`
  `getNextSibling()`
  `TemplateNodeModelEx`
  `getPreviousSibling()`

  ### Methods inherited from interface freemarker.template.TemplateNodeModel

  `getChildNodes, getNodeName, getNodeNamespace, getNodeType, getParentNode`

- ## Method Details

  - ### 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`