Class JsonNodeModelFactory.ArrayNodeModel

  • All Implemented Interfaces:
    freemarker.ext.util.WrapperTemplateModel, freemarker.template.AdapterTemplateModel, freemarker.template.TemplateCollectionModel, freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel, freemarker.template.TemplateModelWithAPISupport, freemarker.template.TemplateSequenceModel
    Enclosing class:
    JsonNodeModelFactory

    public static class JsonNodeModelFactory.ArrayNodeModel
    extends freemarker.ext.beans.BeanModel
    implements freemarker.template.TemplateCollectionModel, freemarker.template.TemplateSequenceModel
    • Field Summary

      • Fields inherited from class freemarker.ext.beans.BeanModel

        object, wrapper
      • Fields inherited from interface freemarker.template.TemplateModel

        NOTHING
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayNodeModel​(com.fasterxml.jackson.databind.node.ArrayNode object, freemarker.ext.beans.BeansWrapper wrapper)  
    • Constructor Detail

      • ArrayNodeModel

        public ArrayNodeModel​(com.fasterxml.jackson.databind.node.ArrayNode object,
                              freemarker.ext.beans.BeansWrapper wrapper)
    • Method Detail

      • iterator

        public freemarker.template.TemplateModelIterator iterator()
                                                           throws freemarker.template.TemplateModelException
        Specified by:
        iterator in interface freemarker.template.TemplateCollectionModel
        Throws:
        freemarker.template.TemplateModelException
      • get

        public freemarker.template.TemplateModel get​(int index)
                                              throws freemarker.template.TemplateModelException
        Specified by:
        get in interface freemarker.template.TemplateSequenceModel
        Throws:
        freemarker.template.TemplateModelException
      • size

        public int size()
        Specified by:
        size in interface freemarker.template.TemplateHashModelEx
        Specified by:
        size in interface freemarker.template.TemplateSequenceModel
        Overrides:
        size in class freemarker.ext.beans.BeanModel
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface freemarker.template.TemplateHashModel
        Overrides:
        isEmpty in class freemarker.ext.beans.BeanModel