Package fmpp.models

Class JSONStringNode

  • All Implemented Interfaces:
    freemarker.template.AdapterTemplateModel, freemarker.template.TemplateModel, freemarker.template.TemplateNodeModel, freemarker.template.TemplateScalarModel, java.io.Serializable

    public class JSONStringNode
    extends JSONNode
    implements freemarker.template.TemplateScalarModel
    JSON "string" value; see http://www.json.org/.
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_NODE_NAME

        public static final java.lang.String DEFAULT_NODE_NAME
    • Constructor Detail

      • JSONStringNode

        public JSONStringNode​(JSONNode parentNode,
                              java.lang.String nodeName,
                              java.lang.String value)
    • Method Detail

      • getChildNodes

        public freemarker.template.TemplateSequenceModel getChildNodes()
                                                                throws freemarker.template.TemplateModelException
        Always returns null.
        Specified by:
        getChildNodes in interface freemarker.template.TemplateNodeModel
        Throws:
        freemarker.template.TemplateModelException
      • getNodeType

        public java.lang.String getNodeType()
                                     throws freemarker.template.TemplateModelException
        Returns NODE_TYPE.
        Specified by:
        getNodeType in interface freemarker.template.TemplateNodeModel
        Throws:
        freemarker.template.TemplateModelException
      • getAsString

        public java.lang.String getAsString()
                                     throws freemarker.template.TemplateModelException
        Specified by:
        getAsString in interface freemarker.template.TemplateScalarModel
        Throws:
        freemarker.template.TemplateModelException
      • getAdaptedObject

        public java.lang.String getAdaptedObject​(java.lang.Class<?> hint)
        Returns the plain Java object wrapped into this node.
        Specified by:
        getAdaptedObject in interface freemarker.template.AdapterTemplateModel
        Since:
        0.9.16