Examples of TaeError


Examples of org.apache.uima.caseditor.core.TaeError

        else {
          cell.setText("[" + fs.getType().getShortName() + "]");
        }
      }
      else {
        throw new TaeError("Unexpected array type!");
      }
    }
    else {
      throw new TaeError("Unkown element!");
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

                event.detail = DND.DROP_COPY;
              }

            } else {
              throw new TaeError("Unkown item type!");
            }
          }
        }
      }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

        else if (arrayFS instanceof CommonArrayFS ||
                arrayFS instanceof StringArrayFS) {
          return true;
        }
        else {
          throw new TaeError("Unkown array type");
        }
      }
      else {
        throw new TaeError("Unkown element type!");
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

          }
          else if (arrayFS instanceof StringArrayFS) {
            // no validator needed
          }
          else {
            throw new TaeError("Unkown array type!");
          }
        }

        return editor;
      }
      else {
        throw new TaeError("Unknown element type!");
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

          else {
            return booleanToInt((Boolean) value.get());
          }
      }
      else {
        throw new TaeError("Unkown element type!");
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

          }

          document.update(arrayValue.getFeatureStructure());

        } else {
          throw new TaeError("Unkown element type");
        }
      }
    }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

    if (mResourceBasePath.getLocation() != null) {
      try {
        resourceManager.setDataPath(mResourceBasePath.getLocation().toOSString());
      } catch (MalformedURLException e) {
        // this will not happen
        throw new TaeError("Unexpexted exceptioon", e);
      }
    }

    return UIMAFramework.produceAnalysisEngine(mDescriptor, resourceManager, null);
  }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

      array.set(slot, Double.parseDouble(value));
    } else if (arrayFS instanceof StringArrayFS) {
      StringArrayFS array = (StringArrayFS) arrayFS;
      array.set(slot, value);
    } else {
      throw new TaeError("Unkown array type!");
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

      return value;
    } else if (arrayFS instanceof ArrayFS) {
      ArrayFS array = (ArrayFS) arrayFS;
      return array.get(slot);
    } else {
      throw new TaeError("Unkown array type!");
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.core.TaeError

    } else if (value instanceof StringArrayFS) {
      StringArrayFS array = (StringArrayFS) value;

      size = array.size();
    } else {
      throw new TaeError("Unkown array type!");
    }

    return size;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.