} else if (parent instanceof AEDelegates_Impl) {
return ((AEDelegates_Impl) parent).getDelegates().toArray();
} else if (parent instanceof AsyncAggregateErrorConfiguration) {
AsyncAggregateErrorConfiguration errorConfig = (AsyncAggregateErrorConfiguration) parent;
} else if (parent instanceof GetMetadataErrors) {
GetMetadataErrors getMetadataErrors = (GetMetadataErrors) parent;
objs = new Object[3];
objs[0] = "MaxRetries: " + getMetadataErrors.getMaxRetries();
objs[1] = "Timeout: " + getMetadataErrors.getTimeout();
objs[2] = "Error Action: " + getMetadataErrors.getErrorAction();
return objs;
} else if (parent instanceof ProcessCasErrors) {
ProcessCasErrors processCasErrors = (ProcessCasErrors) parent;
objs = new Object[6];
objs[0] = "MaxRetries: " + processCasErrors.getMaxRetries();
objs[1] = "Timeout: " + processCasErrors.getTimeout();
objs[2] = "ContinueOnRetryFailure: " + processCasErrors.isContinueOnRetryFailure();
objs[3] = "Threshold Count: " + processCasErrors.getThresholdCount();
objs[4] = "Threshold Window: " + processCasErrors.getThresholdWindow();
objs[5] = "Threshold Action: " + processCasErrors.getThresholdAction();
return objs;
} else if (parent instanceof CollectionProcessCompleteErrors) {
CollectionProcessCompleteErrors completeErrors = (CollectionProcessCompleteErrors) parent;
objs = new Object[2];
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;