MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel.adm
Class StringMatch

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.adm.StringMatch

public class StringMatch
extends java.lang.Object

Represents a StringMatch of the Fulltext Data Model: Roughly speaking, a match of query tokens with document tokens


Constructor Summary
StringMatch(LinguisticToken[] myTokens, int queryPos)
           
StringMatch(java.util.Vector myTokens, int queryPos)
           
 
Method Summary
 int getEndParagraph()
          Get the end paragraph of the StringMatch
 int getEndPos()
          Get the end position of the StringMatch
 int getEndSentence()
          Get the end sentence of the StringMatch
 MXQueryDouble getScore()
           
 int getStartParagraph()
          Get the start paragraph of the StringMatch
 int getStartPos()
          Get the start position of the StringMatch
 int getStartSentence()
          Get the start sentence of the StringMatch
 void setScore(MXQueryDouble score)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMatch

public StringMatch(java.util.Vector myTokens,
                   int queryPos)

StringMatch

public StringMatch(LinguisticToken[] myTokens,
                   int queryPos)
Method Detail

getStartPos

public int getStartPos()
Get the start position of the StringMatch

Returns:
the integer position of the start

getEndPos

public int getEndPos()
Get the end position of the StringMatch

Returns:
the integer position of the end

getStartSentence

public int getStartSentence()
Get the start sentence of the StringMatch

Returns:
the integer position of the start

getEndSentence

public int getEndSentence()
Get the end sentence of the StringMatch

Returns:
the integer position of the end

getStartParagraph

public int getStartParagraph()
Get the start paragraph of the StringMatch

Returns:
the integer position of the start

getEndParagraph

public int getEndParagraph()
Get the end paragraph of the StringMatch

Returns:
the integer position of the end

setScore

public void setScore(MXQueryDouble score)

getScore

public MXQueryDouble getScore()

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich