de.dfki.lt.tools.tokenizer.output
Class Paragraph

java.lang.Object
  extended byde.dfki.lt.tools.tokenizer.output.Paragraph

public class Paragraph
extends java.lang.Object

This represents a paragraph with its text units.

Version:
$Id: Paragraph.java,v 1.4 2005/04/12 08:47:38 steffen Exp $
Author:
Joerg Steffen, DFKI

Constructor Summary
Paragraph()
          This creates a new instance of Paragraph.
Paragraph(java.util.List someTextUnits)
          This creates a new instance of Paragraph that contains the given text units.
 
Method Summary
 int getEndIndex()
          This returns the end index of the paragraph.
 int getStartIndex()
          This returns the start index of the paragraph.
 java.util.List getTextUnits()
          This returns the list with the text units of the paragraph.
 void setEndIndex(int anEndIndex)
          This sets the end index of the paragraph to anEndIndex.
 void setStartIndex(int aStartIndex)
          This sets the start index of the paragraph to aStartIndex.
 void setTextUnits(java.util.List someTextUnits)
          This sets the text units of the paragraph to someTextUnits.
 java.lang.String toString()
          This returns a string representation of the paragraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph()
This creates a new instance of Paragraph.


Paragraph

public Paragraph(java.util.List someTextUnits)
This creates a new instance of Paragraph that contains the given text units.

Parameters:
someTextUnits - a List with TextUnits
Method Detail

getStartIndex

public int getStartIndex()
This returns the start index of the paragraph.

Returns:
an int

setStartIndex

public void setStartIndex(int aStartIndex)
This sets the start index of the paragraph to aStartIndex.

Parameters:
aStartIndex - an int

getEndIndex

public int getEndIndex()
This returns the end index of the paragraph.

Returns:
an int

setEndIndex

public void setEndIndex(int anEndIndex)
This sets the end index of the paragraph to anEndIndex.

Parameters:
anEndIndex - an int

getTextUnits

public java.util.List getTextUnits()
This returns the list with the text units of the paragraph.

Returns:
a List

setTextUnits

public void setTextUnits(java.util.List someTextUnits)
This sets the text units of the paragraph to someTextUnits. As a side effect, it adjusts the start index and end index of the paragraph to the start index of the first text unit and the end index of the last text unit.

Parameters:
someTextUnits - a List

toString

public java.lang.String toString()
This returns a string representation of the paragraph.

Returns:
a String