de.aitools.ir.retrievalmodels.representation.suffixtree
Class Suffix

java.lang.Object
  extended by de.aitools.ir.retrievalmodels.representation.suffixtree.Suffix

public class Suffix
extends java.lang.Object

A suffix contains a reference to the text which contains it, the index it begins inside the text and a reference to the succeeding suffix if there is any.

Version:
$Id: Suffix.java,v 1.1 2010/05/19 15:48:58 poma1006 Exp $
Author:
Martin Potthast

Constructor Summary
Suffix()
           
 
Method Summary
 int getId()
          Gets the id associated with the text which contains this suffix.
 int getIndex()
          Gets the index value the suffix begins at within the text.
 Suffix getSucceedingSuffix()
          Gets the reference to the suffix which succeeds this instance in the text.
 java.lang.String getText()
          Gets the reference to the text which contains the suffix.
 void setId(int id)
          Sets the reference to the text which contains this suffix via an id.
 void setIndex(int index)
          Sets the index value the suffix begins at within the text.
 void setSucceedingSuffix(Suffix succSuffix)
          Sets a reference to the suffix which succeeds this instance in the text.
 void setText(java.lang.String text)
          Sets the reference to the text which contains the suffix.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Suffix

public Suffix()
Method Detail

setText

public void setText(java.lang.String text)
Sets the reference to the text which contains the suffix.

Parameters:
text - A reference to a text.

getText

public java.lang.String getText()
Gets the reference to the text which contains the suffix.

Returns:
A reference to a text.

setIndex

public void setIndex(int index)
Sets the index value the suffix begins at within the text.

Parameters:
index - An integer.

getIndex

public int getIndex()
Gets the index value the suffix begins at within the text.

Returns:
An integer.

setSucceedingSuffix

public void setSucceedingSuffix(Suffix succSuffix)
Sets a reference to the suffix which succeeds this instance in the text.

Parameters:
succSuffix - The succeeding suffix of this instance.

getSucceedingSuffix

public Suffix getSucceedingSuffix()
Gets the reference to the suffix which succeeds this instance in the text.

Returns:
A reference to the suffix.

setId

public void setId(int id)
Sets the reference to the text which contains this suffix via an id.

Parameters:
id - the id of the text which contains this suffix

getId

public int getId()
Gets the id associated with the text which contains this suffix.

Returns:
the id of the text which contains this suffix

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()