@Override public Map<String, Object> getDataMap() { Map<String, Object> data = new HashMap<String, Object>(); data.put("@className", getClass().getName()); data.put("documentation", this.documentation); data.put("id", this.id); data.put("type", this.type); data.put("src", this.src); data.put("content", this.content); if (getHelpers() != null) { List<Object> helpersMap = new ArrayList<Object>(); for (ScriptData helper : getHelpers()) { helpersMap.add(helper.getDataMap()); } data.put("helpers", helpersMap); } data.put("invokeFunction", this.invokeFunction); return data; }
@Override public Map<String, Object> getDataMap() { Map<String, Object> data = new HashMap<String, Object>(); data.put("@className", getClass().getName()); data.put("documentation", this.documentation); data.put("id", this.id); data.put("type", this.type); data.put("src", this.src); data.put("content", this.content); if (getHelpers() != null) { List<Object> helpersMap = new ArrayList<Object>(); for (ScriptData helper : getHelpers()) { helpersMap.add(helper.getDataMap()); } data.put("helpers", helpersMap); } data.put("invokeFunction", this.invokeFunction); return data; }