public class JSONStringNode extends JSONNode implements TemplateScalarModel
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NODE_NAME |
static String |
NODE_TYPE |
EMPTY_STRING
NOTHING
Constructor and Description |
---|
JSONStringNode(JSONNode parentNode,
String nodeName,
String value) |
Modifier and Type | Method and Description |
---|---|
String |
getAsString() |
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, wrap
public static final String NODE_TYPE
public static final String DEFAULT_NODE_NAME
public TemplateSequenceModel getChildNodes() throws TemplateModelException
null
.getChildNodes
in interface TemplateNodeModel
TemplateModelException
public String getNodeType() throws TemplateModelException
NODE_TYPE
.getNodeType
in interface TemplateNodeModel
TemplateModelException
public String getAsString() throws TemplateModelException
getAsString
in interface TemplateScalarModel
TemplateModelException
protected String getDefaultNodeName()
JSONNode
JSONNode.JSONNode(JSONNode, String)
constructor if its second argument is null
.getDefaultNodeName
in class JSONNode
JSONNode.nodeTypeToDefaultNodeName(String)