|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.email.EmailDocumentHandler
public class EmailDocumentHandler
This class implements the behaviour of the Email reader It takes the Gate Document representing a list with e-mails and creates Gate annotations on it.
Field Summary | |
---|---|
protected List |
myStatusListeners
|
Constructor Summary | |
---|---|
EmailDocumentHandler()
Constructor used in tests mostly |
|
EmailDocumentHandler(Document aGateDocument,
Map aMarkupElementsMap,
Map anElement2StringMap)
Constructor initialises some private fields |
Method Summary | |
---|---|
void |
addStatusListener(StatusListener listener)
This methos is called when a listener is registered with this class |
void |
annotateMessages()
Reads the Gate Document line by line and does the folowing things: Each line is analized in order to detect where an e-mail starts. |
protected void |
fireStatusChangedEvent(String text)
This methos is called whenever we need to inform the listener about an event. |
void |
removeStatusListener(StatusListener listener)
This methos is called when a listener is removed |
void |
testSelf()
Test final |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List myStatusListeners
Constructor Detail |
---|
public EmailDocumentHandler()
public EmailDocumentHandler(Document aGateDocument, Map aMarkupElementsMap, Map anElement2StringMap)
Method Detail |
---|
public void annotateMessages() throws IOException, InvalidOffsetException
IOException
InvalidOffsetException
public void addStatusListener(StatusListener listener)
public void removeStatusListener(StatusListener listener)
protected void fireStatusChangedEvent(String text)
public void testSelf()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |