Package fmpp.models
Class JSONBooleanNode
java.lang.Object
fmpp.models.JSONNode
fmpp.models.JSONBooleanNode
- All Implemented Interfaces:
freemarker.template.AdapterTemplateModel
,freemarker.template.TemplateBooleanModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateNodeModel
,Serializable
JSON "true" and "false" value; see http://www.json.org/.
- See Also:
-
Field Summary
FieldsFields inherited from interface freemarker.template.TemplateBooleanModel
FALSE, TRUE
Fields 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.boolean
freemarker.template.TemplateSequenceModel
Always returnsnull
.protected String
Returns the name of the node if it has no explicit name.ReturnsNODE_TYPE
.Methods inherited from class fmpp.models.JSONNode
getNodeName, getNodeNamespace, getParentNode, nodeTypeToDefaultNodeName, wrap, wrap
-
Field Details
-
NODE_TYPE
- See Also:
-
DEFAULT_NODE_NAME
-
-
Constructor Details
-
JSONBooleanNode
-
-
Method Details
-
getChildNodes
public freemarker.template.TemplateSequenceModel getChildNodes() throws freemarker.template.TemplateModelExceptionAlways returnsnull
.- Specified by:
getChildNodes
in interfacefreemarker.template.TemplateNodeModel
- Throws:
freemarker.template.TemplateModelException
-
getNodeType
ReturnsNODE_TYPE
.- Specified by:
getNodeType
in interfacefreemarker.template.TemplateNodeModel
- Throws:
freemarker.template.TemplateModelException
-
getAsBoolean
public boolean getAsBoolean() throws freemarker.template.TemplateModelException- Specified by:
getAsBoolean
in interfacefreemarker.template.TemplateBooleanModel
- 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.- Specified by:
getAdaptedObject
in interfacefreemarker.template.AdapterTemplateModel
- Since:
- 0.9.16
-