DOMNodeModel (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.template.utility, class: DOMNodeModel

Package freemarker.template.utility

# Class DOMNodeModel

java.lang.Object
freemarker.template.utility.DOMNodeModel

All Implemented Interfaces:
  `TemplateHashModel`, `TemplateModel`

@Deprecated public class DOMNodeModel extends Object implements TemplateHashModel
Deprecated.
Use `NodeModel` instead
A convenient wrapper class for wrapping a Node in the W3C DOM API.

- ## Field Summary

  ### Fields inherited from interface freemarker.template.TemplateModel

  `NOTHING`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DOMNodeModel​(Node node)`
  Deprecated.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `TemplateModel`
  `get​(String key)`
  Deprecated.
  Gets a `TemplateModel` from the hash.
  `boolean`
  `isEmpty()`
  Deprecated.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DOMNodeModel

    public DOMNodeModel​(Node node)
    Deprecated.

- ## Method Details

  - ### get

    public TemplateModel get​(String key) throws TemplateModelException
    Deprecated.
    Description copied from interface: `TemplateHashModel`
    Gets a `TemplateModel` from the hash.
    Specified by:
      `get` in interface `TemplateHashModel`
    Parameters:
      `key` - The name by which the `TemplateModel` is identified in the template.
    Returns:
      The `TemplateModel` referred to by the key, or `null` if not found.
    Throws:
      `TemplateModelException`

  - ### isEmpty

    public boolean isEmpty()
    Deprecated.
    Specified by:
      `isEmpty` in interface `TemplateHashModel`