Package org.apache.uima.aae.deployment

Examples of org.apache.uima.aae.deployment.AsyncPrimitiveErrorConfiguration


      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;
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.deployment.AsyncPrimitiveErrorConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.