Package org.apache.uima.taeconfigurator

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE


    return result;
  }

  public static boolean arrayContains(Object[] array, Object element) {
    if (null == element)
      throw new InternalErrorCDE("null not allowed as an argument");
    if (null == array)
      return false;
    for (int i = 0; i < array.length; i++) {
      if (null == array[i])
        continue;
View Full Code Here


      try {
        try {
          fileOutputStream = new FileOutputStream(file.getLocation().toOSString());
        } catch (FileNotFoundException e) {
          throw new InternalErrorCDE("unexpected Exception", e);
        }
        printWriter = new PrintWriter(fileOutputStream);
        printWriter.println(descriptor);
      } finally {
        if (null != printWriter)
View Full Code Here

      return editor.getTypePriorities().getName();
    if (editor.isFsIndexCollection())
      return editor.getFsIndexCollection().getName();
    if (editor.isExtResAndBindingsDescriptor())
      return editor.getExtResAndBindings().getName();
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

    else if (editor.isFsIndexCollection())
      editor.getFsIndexCollection().setName(name);
    else if (editor.isExtResAndBindingsDescriptor())
      editor.getExtResAndBindings().setName(name);
    else
      throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

      return editor.getTypePriorities().getVersion();
    if (editor.isFsIndexCollection())
      return editor.getFsIndexCollection().getVersion();
    if (editor.isExtResAndBindingsDescriptor())
      return editor.getExtResAndBindings().getVersion();
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

    else if (editor.isFsIndexCollection())
      editor.getFsIndexCollection().setVersion(name);
    else if (editor.isExtResAndBindingsDescriptor())
      editor.getExtResAndBindings().setVersion(name);
    else
      throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

      return editor.getTypePriorities().getVendor();
    if (editor.isFsIndexCollection())
      return editor.getFsIndexCollection().getVendor();
    if (editor.isExtResAndBindingsDescriptor())
      return editor.getExtResAndBindings().getVendor();
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

    else if (editor.isFsIndexCollection())
      editor.getFsIndexCollection().setVendor(name);
    else if (editor.isExtResAndBindingsDescriptor())
      editor.getExtResAndBindings().setVendor(name);
    else
      throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

      return editor.getTypePriorities().getDescription();
    if (editor.isFsIndexCollection())
      return editor.getFsIndexCollection().getDescription();
    if (editor.isExtResAndBindingsDescriptor())
      return editor.getExtResAndBindings().getDescription();
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

    else if (editor.isFsIndexCollection())
      editor.getFsIndexCollection().setDescription(name);
    else if (editor.isExtResAndBindingsDescriptor())
      editor.getExtResAndBindings().setDescription(name);
    else
      throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.taeconfigurator.InternalErrorCDE

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.