ruta-ep-addons/src/main/java/org/apache/uima/ruta/explain/failed/FailedTreeLabelProvider.java [53:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public String getText(Object element) {
    if (element instanceof RuleMatchNode) {
      RuleMatchNode debugNode = (RuleMatchNode) element;
      FeatureStructure fs = debugNode.getFeatureStructure();
      if (fs != null) {
        String s = ((AnnotationFS) fs).getCoveredText();
        s = s.replaceAll("[\\n\\r]", "");
        return s;
      }
    }

    return element.toString();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ruta-ep-addons/src/main/java/org/apache/uima/ruta/explain/matched/MatchedTreeLabelProvider.java [53:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public String getText(Object element) {
    if (element instanceof RuleMatchNode) {
      RuleMatchNode debugNode = (RuleMatchNode) element;
      FeatureStructure fs = debugNode.getFeatureStructure();
      if (fs != null) {
        String s = ((AnnotationFS) fs).getCoveredText();
        s = s.replaceAll("[\\n\\r]", "");
        return s;
      }
    }

    return element.toString();
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



