edu.uchsc.ccp.iaa.matcher
Class ClassMatcher

java.lang.Object
  extended by edu.uchsc.ccp.iaa.matcher.ClassMatcher
All Implemented Interfaces:
Matcher

public class ClassMatcher
extends Object
implements Matcher


Constructor Summary
ClassMatcher()
           
 
Method Summary
 String getDescription()
           
 String getName()
           
static Annotation match(Annotation annotation, String compareSetName, IAA iaa, Set<Annotation> excludeAnnotations)
           
 Annotation match(Annotation annotation, String compareSetName, Set<Annotation> excludeAnnotations, IAA iaa, MatchResult matchResult)
          This method will return an annotation with the same class and spans.
static Set<Annotation> matches(Annotation annotation, String compareSetName, IAA iaa, Set<Annotation> excludeAnnotations)
           
 boolean returnsTrivials()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMatcher

public ClassMatcher()
Method Detail

match

public Annotation match(Annotation annotation,
                        String compareSetName,
                        Set<Annotation> excludeAnnotations,
                        IAA iaa,
                        MatchResult matchResult)
This method will return an annotation with the same class and spans. If one does not exist, then it will return an annotation with the same class and overlapping spans. If more than one of these exists, then the shortest annotation with the same class and overlapping spans will be returned. Otherwise, null is returned.

Specified by:
match in interface Matcher
Parameters:
annotation -
compareSetName -
excludeAnnotations -
iaa -
matchResult - will be set to NONTRIVIAL_MATCH or NONTRIVIAL_NONMATCH. Trivial matches and non-matches are not defined for this matcher.
Returns:
the annotation that was matched. If none exists then return null.
See Also:
Matcher.match(Annotation, String, Set, IAA, MatchResult), MatchResult.NONTRIVIAL_MATCH, MatchResult.NONTRIVIAL_NONMATCH, Annotation.getShortestAnnotation(Collection)

match

public static Annotation match(Annotation annotation,
                               String compareSetName,
                               IAA iaa,
                               Set<Annotation> excludeAnnotations)

matches

public static Set<Annotation> matches(Annotation annotation,
                                      String compareSetName,
                                      IAA iaa,
                                      Set<Annotation> excludeAnnotations)

getName

public String getName()
Specified by:
getName in interface Matcher

getDescription

public String getDescription()
Specified by:
getDescription in interface Matcher

returnsTrivials

public boolean returnsTrivials()
Specified by:
returnsTrivials in interface Matcher