Package freemarker.template

Examples of freemarker.template.TemplateHashModelEx


                list.add(unwrap(it.next(), permissive));
            }
            return list;
        }
        if(model instanceof TemplateHashModelEx) {
            TemplateHashModelEx hash = (TemplateHashModelEx)model;
            Map map = new LinkedHashMap();
            TemplateModelIterator keys = hash.keys().iterator();
            while(keys.hasNext()) {
                String key = (String)unwrap(keys.next(), permissive);
                map.put(key, unwrap(hash.get(key), permissive));
            }
            return map;
        }
        if(model == TemplateModel.JAVA_NULL) {
            return null;
View Full Code Here


        return dm;
    }

    public String[] keys() throws TemplateModelException
    {
        TemplateHashModelEx h = (TemplateHashModelEx)model;
        List list = new ArrayList();
        TemplateModelIterator i = h.keys().iterator();
        while(i.hasNext())
        {
            list.add(((TemplateScalarModel)i.next()).getAsString());
        }
        return (String[])list.toArray(new String[list.size()]);
View Full Code Here

TOP

Related Classes of freemarker.template.TemplateHashModelEx

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.