Package at.ofai.gate.japeutils.ops

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

/*
*  ValueRef.java
*
*  $Id: NotCoextensive.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 NotCoextensive extends Coextensive {

  @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();
  }

  public String getOperator() {
    return "notCoextensive";
  }
}
TOP

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

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.