public class ContentModel extends Object implements freemarker.template.TemplateHashModelEx, freemarker.template.TemplateNodeModel, freemarker.template.TemplateScalarModel, freemarker.template.AdapterTemplateModel
Modifier and Type | Method and Description |
---|---|
Content |
asContent() |
freemarker.template.TemplateModel |
get(String key) |
Object |
getAdaptedObject(Class hint) |
String |
getAsString() |
freemarker.template.TemplateSequenceModel |
getChildNodes()
This returns all children, except nodes or jcr: types and mgnl:metaData.
|
String |
getNodeName() |
String |
getNodeNamespace() |
String |
getNodeType() |
freemarker.template.TemplateNodeModel |
getParentNode() |
boolean |
isEmpty() |
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
public String getAsString()
getAsString
in interface freemarker.template.TemplateScalarModel
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public int size() throws freemarker.template.TemplateModelException
size
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException
values
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public freemarker.template.TemplateNodeModel getParentNode() throws freemarker.template.TemplateModelException
getParentNode
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public freemarker.template.TemplateSequenceModel getChildNodes() throws freemarker.template.TemplateModelException
getChildNodes
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public String getNodeName() throws freemarker.template.TemplateModelException
getNodeName
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public String getNodeType() throws freemarker.template.TemplateModelException
getNodeType
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public String getNodeNamespace() throws freemarker.template.TemplateModelException
getNodeNamespace
in interface freemarker.template.TemplateNodeModel
freemarker.template.TemplateModelException
public Content asContent()
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.