objs[0] = "Timeout: " + completeErrors.getTimeout();
objs[1] = "Additional Error Action: " + completeErrors.getAdditionalErrorAction();
return objs;
} else if (parent instanceof AsyncPrimitiveErrorConfiguration) {
AsyncPrimitiveErrorConfiguration errorConfig = (AsyncPrimitiveErrorConfiguration) parent;
if (errorConfig.hasImport()) {
String importBy = "import ";
if (errorConfig.isImportByLocation()) {
importBy += " location=" + errorConfig.getImportedDescriptor();
} else {
importBy += " name=" + errorConfig.getImportedDescriptor();
}
objs = new Object[1];
objs[0] = importBy;
return objs;
}
if (errorConfig.getGetMetadataErrors() != null) {
++count;
}
if (errorConfig.getProcessCasErrors() != null) {
++count;
}
if (errorConfig.getCollectionProcessCompleteErrors() != null) {
++count;
}
objs = new Object[count];
int index = 0;
if (errorConfig.getGetMetadataErrors() != null) {
objs[index++] = errorConfig.getGetMetadataErrors();
}
if (errorConfig.getProcessCasErrors() != null) {
objs[index++] = errorConfig.getProcessCasErrors();
}
if (errorConfig.getCollectionProcessCompleteErrors() != null) {
objs[index++] = errorConfig.getCollectionProcessCompleteErrors();
}
return objs;
}
return EMPTY_ARRAY;