use of org.pentaho.platform.scheduler2.ws.JaxBSafeMap.JaxBSafeEntry in project pentaho-platform by pentaho.
the class JobParamsAdapter method unmarshal.
public Map<String, ParamValue> unmarshal(JaxBSafeMap safeMap) throws Exception {
Map<String, ParamValue> unsafeMap = null;
try {
unsafeMap = new HashMap<String, ParamValue>();
for (JaxBSafeEntry safeEntry : safeMap.entry) {
ParamValue v = safeEntry.getStringValue();
if (v == null) {
v = safeEntry.getListValue();
}
if (v == null) {
v = safeEntry.getMapValue();
}
unsafeMap.put(safeEntry.key, v);
}
return unsafeMap;
} catch (Throwable t) {
logger.error(t);
}
return null;
}
Aggregations