Package at.ofai.gate.japeutils.ops

Source Code of at.ofai.gate.japeutils.ops.NotStartsAt

/*
*  ValueRef.java
*
*  $Id: NotStartsAt.java 45 2012-06-12 23:06:24Z johann.petrak@gmail.com $
*/

package at.ofai.gate.japeutils.ops;

import at.ofai.gate.japeutils.JapeUtils;
import gate.Annotation;
import gate.AnnotationSet;
import gate.jape.JapeException;
import gate.jape.constraint.*;
import gate.util.MethodNotImplementedException;
import java.util.Collection;


/**
*
* @author Johann Petrak
*/
public class NotStartsAt extends StartsAt {

  @Override
  public boolean doMatch(Object annotValue, AnnotationSet context)
    throws JapeException {

    Annotation annot = (Annotation) annotValue;
    AnnotationSet containedSet = doMatch(annot, context);

    Collection<Annotation> filteredSet = filterMatches(containedSet);

    return filteredSet.isEmpty();
  }

  @Override
  public String getOperator() {
    return "notStartsAt";
  }
}
TOP

Related Classes of at.ofai.gate.japeutils.ops.NotStartsAt

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.