org.rr0.im.business.evidence
Interface Document

All Known Subinterfaces:
Affidavit, Article, Broadcast, RadioBroadcast, TelevisionBroadcast
All Known Implementing Classes:
DocumentImpl

public interface Document
extends Record

A textual record.

Author:
Jérôme Beau
Version: 21 avr. 2003 16:14:38

Method Summary
 ActorgetAuthor()
           
 StringgetText(Locale locale)
          Get the document plain text, if available.
 StringgetTitle()
           
 intgetWordCount(Locale locale)
          Words are counted between punctuation like " ,'.:?
 voidsetText(String text, Locale locale)
           

Methods inherited from interface org.rr0.im.business.evidence.Record
getContent, setContent

Methods inherited from interface org.rr0.im.business.event.Timeable
getBegining, getHistory

Methods inherited from interface org.rr0.im.business.event.Durable
getDuration

Method Detail

getAuthor

public Actor getAuthor()

getText

public String getText(Locale locale)
Get the document plain text, if available.
Parameters:
locale The locale of the document text to get.
Returns: A String, or null if not available.

getTitle

public String getTitle()

getWordCount

public int getWordCount(Locale locale)
Words are counted between punctuation like " ,'.:?;!()[]/{}+=
Parameters:
locale The locale of the document text to count words of.
Returns: The word count of the document's text, if any.
-1 if no plain text is available.

setText

public void setText(String text, Locale locale)