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 |
Actor | getAuthor() |
String | getText(Locale locale) Get the document plain text, if available. |
String | getTitle() |
int | getWordCount(Locale locale) Words are counted between punctuation like " ,'.:? |
void | setText(String text, Locale locale) |
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)