public class Dom4jNodeModel extends Object implements freemarker.template.TemplateNodeModel, freemarker.template.TemplateSequenceModel, freemarker.template.TemplateHashModel, freemarker.template.AdapterTemplateModel, freemarker.template.TemplateScalarModel
Nodes.| Modifier and Type | Field and Description |
|---|---|
static freemarker.ext.util.ModelFactory |
FACTORY |
| Constructor and Description |
|---|
Dom4jNodeModel(org.dom4j.Node node) |
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)
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.TemplateSequenceModelfreemarker.template.TemplateModelExceptionpublic int size()
throws freemarker.template.TemplateModelException
size in interface freemarker.template.TemplateSequenceModelfreemarker.template.TemplateModelExceptionpublic freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic boolean isEmpty()
isEmpty in interface freemarker.template.TemplateHashModelpublic freemarker.template.TemplateNodeModel getParentNode()
getParentNode in interface freemarker.template.TemplateNodeModelpublic freemarker.template.TemplateSequenceModel getChildNodes()
throws freemarker.template.TemplateModelException
getChildNodes in interface freemarker.template.TemplateNodeModelfreemarker.template.TemplateModelExceptionpublic String getNodeName()
getNodeName in interface freemarker.template.TemplateNodeModelpublic String getNodeType()
getNodeType in interface freemarker.template.TemplateNodeModelpublic String getNodeNamespace()
getNodeNamespace in interface freemarker.template.TemplateNodeModelpublic Object getAdaptedObject(Class hint)
getAdaptedObject in interface freemarker.template.AdapterTemplateModelpublic String getAsString() throws freemarker.template.TemplateModelException
getAsString in interface freemarker.template.TemplateScalarModelfreemarker.template.TemplateModelExceptionCopyright © 2014 CrafterCMS. All Rights Reserved.