"severity").getValue()).getValue().toString();
String message = ((SimpleValue) errorMo
.getProperty("value").getValue()).getValue()
.toString();
PropertyMap errorMap = new PropertyMap("errorMap",
new PropertySimple("severity", severity),
new PropertySimple("message", message));
errorList.add(errorMap);
}
}
for (Map<String, String> sourceMap : sourceList) {
if (isSource) {
String sourceName = (String) sourceMap.get("name");
String jndiName = (String) sourceMap.get("jndiName");
String translatorName = (String) sourceMap
.get("translatorName");
PropertyMap multiSourceModel = null;
PropertyMap model = null;
if (supportMultiSource) {
// TODO need to loop through multisource models
multiSourceModel = new PropertyMap("map",
new PropertySimple("name", modelName),
new PropertySimple("sourceName", sourceName),
new PropertySimple("jndiName", jndiName),
new PropertySimple("translatorName",
translatorName));
multiSourceModelsList.add(multiSourceModel);
model = new PropertyMap("map", new PropertySimple(
"name", modelName), new PropertySimple(
"sourceName", "See below"), new PropertySimple(
"jndiName", "See below"), new PropertySimple(
"translatorName", "See below"),
new PropertySimple("visibility", visibility),
new PropertySimple("supportsMultiSource", true));
sourceModelsList.add(model);
} else {
model = new PropertyMap("map", new PropertySimple(
"name", modelName), new PropertySimple(
"sourceName", sourceName), new PropertySimple(
"jndiName", jndiName), new PropertySimple(
"translatorName", translatorName),
new PropertySimple("visibility", visibility),
new PropertySimple("supportsMultiSource",
supportMultiSource));
sourceModelsList.add(model);
}
} else {
PropertyMap model = new PropertyMap("map",
new PropertySimple("name", modelName),
new PropertySimple("type", type),
new PropertySimple("visibility", visibility));
logicalModelsList.add(model);