public class Dom4jNodeModel extends Object implements freemarker.template.TemplateNodeModel, freemarker.template.TemplateSequenceModel, freemarker.template.TemplateHashModel, freemarker.template.AdapterTemplateModel, freemarker.template.TemplateScalarModel
Node
s.Constructor and Description |
---|
Dom4jNodeModel(org.dom4j.Node node,
freemarker.template.ObjectWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.TemplateModel |
get(int index) |
freemarker.template.TemplateModel |
get(String key) |
Object |
getAdaptedObject(Class hint) |
String |
getAsString() |
freemarker.template.TemplateSequenceModel |
getChildNodes() |
String |
getNodeName() |
String |
getNodeNamespace() |
String |
getNodeType() |
freemarker.template.TemplateNodeModel |
getParentNode() |
boolean |
isEmpty() |
int |
size() |
public Dom4jNodeModel(org.dom4j.Node node, freemarker.template.ObjectWrapper wrapper)
public freemarker.template.TemplateModel get(int index) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateSequenceModel
freemarker.template.TemplateModelException
public int size() throws freemarker.template.TemplateModelException
size
in interface freemarker.template.TemplateSequenceModel
freemarker.template.TemplateModelException
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public boolean isEmpty()
isEmpty
in interface freemarker.template.TemplateHashModel
public freemarker.template.TemplateNodeModel getParentNode()
getParentNode
in interface freemarker.template.TemplateNodeModel
public freemarker.template.TemplateSequenceModel getChildNodes() throws freemarker.template.TemplateModelException
getChildNodes
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public String getNodeName()
getNodeName
in interface freemarker.template.TemplateNodeModel
public String getNodeType()
getNodeType
in interface freemarker.template.TemplateNodeModel
public String getNodeNamespace()
getNodeNamespace
in interface freemarker.template.TemplateNodeModel
public Object getAdaptedObject(Class hint)
getAdaptedObject
in interface freemarker.template.AdapterTemplateModel
public String getAsString() throws freemarker.template.TemplateModelException
getAsString
in interface freemarker.template.TemplateScalarModel
freemarker.template.TemplateModelException
Copyright © 2019 CrafterCMS. All rights reserved.