public class JSONBooleanNode extends JSONNode implements TemplateBooleanModel
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NODE_NAME |
static String |
NODE_TYPE |
FALSE, TRUENOTHING| Constructor and Description |
|---|
JSONBooleanNode(JSONNode parentNode,
String nodeName,
boolean value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAsBoolean() |
TemplateSequenceModel |
getChildNodes()
Always returns
null. |
protected String |
getDefaultNodeName()
Returns the name of the node if it has no explicit name.
|
String |
getNodeType()
Returns
NODE_TYPE. |
getNodeName, getNodeNamespace, getParentNode, nodeTypeToDefaultNodeName, wrap, wrappublic static final String NODE_TYPE
public static final String DEFAULT_NODE_NAME
public TemplateSequenceModel getChildNodes() throws TemplateModelException
null.getChildNodes in interface TemplateNodeModelTemplateModelExceptionpublic String getNodeType() throws TemplateModelException
NODE_TYPE.getNodeType in interface TemplateNodeModelTemplateModelExceptionpublic boolean getAsBoolean()
throws TemplateModelException
getAsBoolean in interface TemplateBooleanModelTemplateModelExceptionprotected String getDefaultNodeName()
JSONNodeJSONNode.JSONNode(JSONNode, String) constructor if its second argument is null.getDefaultNodeName in class JSONNodeJSONNode.nodeTypeToDefaultNodeName(String)