edu.uchsc.ccp.iaa.matcher
Class SpanMatcher

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

public class SpanMatcher
extends Object
implements Matcher


Constructor Summary
SpanMatcher()
           
 
Method Summary
 String getDescription()
           
 String getName()
           
 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.
 boolean returnsTrivials()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanMatcher

public SpanMatcher()
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 spans (but different class). 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)

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