Class com.phrasys.events.ParagraphEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.phrasys.events.ParagraphEvent
- public class ParagraphEvent
- extends java.util.EventObject
This class is used as a wrapper for paragraphs as read by the
Sentencer component.
- Version:
- 1.0 (17/02/99)
- Author:
- Oliver Mason
ParagraphEvent(Object, String, int)
- Constructor.
getID()
- Retrieve the paragraph ID.
getParagraph()
- Retrieve the paragraph.
ParagraphEvent
public ParagraphEvent(java.lang.Object source,
java.lang.String para,
int id)
Constructor.
- Parameters:
source - the originating source (ie the Sentencer).
para - the paragraph that has been read or null as EOF marker.
id - the paragraph ID.
getParagraph
public java.lang.String getParagraph()
Retrieve the paragraph.
The paragraph that is transmitted using this event can be retrieved.
- Returns:
- the paragraph or null if the EOF has been reached.
getID
public int getID()
Retrieve the paragraph ID.
- Returns:
- the paragraph ID.