Examples of RutaDisjunctiveMatcher


Examples of org.apache.uima.ruta.rule.RutaDisjunctiveMatcher

  public String verbalizeMatcher(RutaRuleElement tmre) {
    StringBuilder result = new StringBuilder();
    RutaMatcher matcher = tmre.getMatcher();
    if (matcher instanceof RutaDisjunctiveMatcher) {
      RutaDisjunctiveMatcher dmatcher = (RutaDisjunctiveMatcher) matcher;
      List<RutaExpression> expressions = dmatcher.getExpressions();
      result.append("(");
      for (RutaExpression each : expressions) {
        if (expressions.indexOf(each) != 0) {
          result.append(" | ");
        }
View Full Code Here

Examples of org.apache.uima.ruta.rule.RutaDisjunctiveMatcher

 
  public RutaRuleElement createRuleElement(List<RutaExpression> exprs,
          RuleElementQuantifier quantifier, List<AbstractRutaCondition> conditions,
          List<AbstractRutaAction> actions, RuleElementContainer container,
          RutaBlock parent) {
    RutaDisjunctiveMatcher matcher = new RutaDisjunctiveMatcher(exprs);
    return new RutaRuleElement(matcher, quantifier, conditions, actions, container, parent);
  }
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.