*/
public static AssertionStatusReport MapAssertionStatusReport(List<AssertionStatusItem> assertionStatusReport) {
if (assertionStatusReport == null) {
return null;
}
AssertionStatusReport r = new AssertionStatusReport();
r.setGeneric(VERSION);
for (int i = 0; i < assertionStatusReport.size(); i++) {
org.uddi.api_v2.AssertionStatusItem x = new org.uddi.api_v2.AssertionStatusItem();
switch (assertionStatusReport.get(i).getCompletionStatus()) {
case STATUS_BOTH_INCOMPLETE:
x.setCompletionStatus(null);
break;
case STATUS_COMPLETE:
x.setCompletionStatus("status:complete");
break;
case STATUS_FROM_KEY_INCOMPLETE:
x.setCompletionStatus("status:fromKey_incomplete");
break;
case STATUS_TO_KEY_INCOMPLETE:
x.setCompletionStatus("status:toKey_incomplete");
break;
}
x.setFromKey(assertionStatusReport.get(i).getFromKey());
x.setToKey(assertionStatusReport.get(i).getToKey());
if (assertionStatusReport.get(i).getKeyedReference() != null) {
x.setKeyedReference(new KeyedReference(assertionStatusReport.get(i).getKeyedReference().getTModelKey(),
assertionStatusReport.get(i).getKeyedReference().getKeyName(),
assertionStatusReport.get(i).getKeyedReference().getKeyValue()));
}
x.setKeysOwned(new KeysOwned());
r.getAssertionStatusItem().add(x);
// assertionStatusReport.get(i).
}
return r;
}