use of freemarker.debug.DebugModel in project freemarker by apache.
the class RmiDebugModelImpl method get.
public DebugModel[] get(String[] keys) throws TemplateModelException, RemoteException {
DebugModel[] dm = new DebugModel[keys.length];
TemplateHashModel h = (TemplateHashModel) model;
for (int i = 0; i < keys.length; i++) {
dm[i] = getDebugModel(h.get(keys[i]));
}
return dm;
}
use of freemarker.debug.DebugModel in project freemarker by apache.
the class RmiDebugModelImpl method getCollection.
public DebugModel[] getCollection() throws TemplateModelException, RemoteException {
List list = new ArrayList();
TemplateModelIterator i = ((TemplateCollectionModel) model).iterator();
while (i.hasNext()) {
list.add(getDebugModel(i.next()));
}
return (DebugModel[]) list.toArray(new DebugModel[list.size()]);
}
Aggregations