Package fmpp.models
Class JSONNullNode
java.lang.Object
fmpp.models.JSONNode
fmpp.models.JSONNullNode
- All Implemented Interfaces:
freemarker.template.AdapterTemplateModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateNodeModel
,Serializable
JSON "null" value; see http://www.json.org/. Instances of this can only be found through traversing the FTL node
tree (
TemplateNodeModel
tree), not as normal FTL sequence or FTL hash items.- See Also:
-
Field Summary
FieldsFields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdaptedObject
(Class<?> hint) Returns the plain Java object wrapped into this node.freemarker.template.TemplateSequenceModel
protected String
Returns the name of the node if it has no explicit name.Methods inherited from class fmpp.models.JSONNode
getNodeName, getNodeNamespace, getParentNode, nodeTypeToDefaultNodeName, wrap, wrap
-
Field Details
-
NODE_TYPE
- See Also:
-
DEFAULT_NODE_NAME
-
-
Constructor Details
-
JSONNullNode
-
-
Method Details
-
getChildNodes
public freemarker.template.TemplateSequenceModel getChildNodes() throws freemarker.template.TemplateModelException- Throws:
freemarker.template.TemplateModelException
-
getNodeType
- Throws:
freemarker.template.TemplateModelException
-
getDefaultNodeName
Description copied from class:JSONNode
Returns the name of the node if it has no explicit name. This is normally called by theJSONNode(JSONNode, String)
constructor if its second argument isnull
.- Specified by:
getDefaultNodeName
in classJSONNode
- See Also:
-
getAdaptedObject
Returns the plain Java object wrapped into this node.- Since:
- 0.9.16
-