private Set getTypes()

in uimafit-core/src/main/java/org/apache/uima/fit/component/CasDumpWriter.java [318:341]


  private Set<String> getTypes(CAS cas) {
    Set<String> types = new HashSet<String>();
    Iterator<Type> typeIt = cas.getTypeSystem().getTypeIterator();
    nextType: while (typeIt.hasNext()) {
      Type type = typeIt.next();

      if (type.getName().equals(cas.getDocumentAnnotation().getType().getName())) {
        continue;
      }

      for (InExPattern p : cookedTypePatterns) {
        p.matchter.reset(type.getName());
        if (p.matchter.matches()) {
          if (p.includeInOutput) {
            types.add(type.getName());
          } else {
            types.remove(type.getName());
          }
          continue nextType;
        }
      }
    }
    return types;
  }