Package org.apache.uima.ruta.explain.tree

Examples of org.apache.uima.ruta.explain.tree.RuleMatchNode


            && (part instanceof MatchedView || part instanceof FailedView)) {
      TreeSelection ts = (TreeSelection) selection;
      Object firstElement = ts.getFirstElement();

      if (firstElement instanceof RuleMatchNode) {
        RuleMatchNode match = (RuleMatchNode) firstElement;
        if (match.hasChildren()) {
          inputChange(match.getChildren().get(0));
        }
      }

    }
  }
View Full Code Here


  }

  @Override
  public Image getImage(Object element) {
    if (element instanceof RuleMatchNode) {
      RuleMatchNode ruleMatchNode = (RuleMatchNode) element;
      FeatureStructure fs = ruleMatchNode.getFeatureStructure();
      if (fs != null) {
        String name = fs.getType().getName();
        return owner.getImage(name);
      }
    }
View Full Code Here

  }

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

  }

  @Override
  public Image getImage(Object element) {
    if (element instanceof RuleMatchNode) {
      RuleMatchNode ruleMatchNode = (RuleMatchNode) element;
      FeatureStructure fs = ruleMatchNode.getFeatureStructure();
      if (fs != null) {
        String name = fs.getType().getName();
        return owner.getImage(name);
      }
    }
View Full Code Here

  }

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

            && (part instanceof MatchedView || part instanceof FailedView)) {
      TreeSelection ts = (TreeSelection) selection;
      Object firstElement = ts.getFirstElement();

      if (firstElement instanceof RuleMatchNode) {
        RuleMatchNode match = (RuleMatchNode) firstElement;
        if (match.hasChildren()) {
          inputChange(match.getChildren().get(0));
        }
      }

    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ruta.explain.tree.RuleMatchNode

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.