MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel.adm
Class LinguisticToken

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.adm.LinguisticToken
All Implemented Interfaces:
FTToken

public class LinguisticToken
extends java.lang.Object
implements FTToken

Linguistic Token: for each word in the text there exists a Linguistic Token Additional Information: position of term in text, Dewey Identifier, sentence and paragraph information etc.


Constructor Summary
LinguisticToken(int startPos, int endPos, DeweyIdentifier did, TextToken token, int sentenceID, int paraID, boolean startingToken, boolean endingToken)
           
 
Method Summary
 int compareTo(LinguisticToken value)
           
 LinguisticToken copy()
           
 boolean equals(java.lang.Object obj)
           
 DeweyIdentifier getDeweyId()
           
 int getParagraph()
           
 int getPosition()
           
 int getSentence()
           
 java.lang.String getText()
          getter methods
 TextToken getTextToken()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinguisticToken

public LinguisticToken(int startPos,
                       int endPos,
                       DeweyIdentifier did,
                       TextToken token,
                       int sentenceID,
                       int paraID,
                       boolean startingToken,
                       boolean endingToken)
Method Detail

getText

public java.lang.String getText()
getter methods


getPosition

public int getPosition()

getDeweyId

public DeweyIdentifier getDeweyId()

getTextToken

public TextToken getTextToken()

getSentence

public int getSentence()

getParagraph

public int getParagraph()

copy

public LinguisticToken copy()
                     throws MXQueryException
Throws:
MXQueryException

compareTo

public int compareTo(LinguisticToken value)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich