org.rr0.im.business.evidence
Class DocumentImpl
org.rr0.im.business.event.TimeableImpl
|
+--org.rr0.im.business.evidence.RecordImpl
|
+--org.rr0.im.business.evidence.DocumentImpl
- Direct Known Subclasses:
- AffidavitImpl, ArticleImpl, BroadcastImpl
- public abstract class DocumentImpl
- extends RecordImpl
- implements Document
Document Reference Implementation.
- Author:
- Jérôme Beau
- Version: 18 juin 2003 20:56:45
| 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) |
author
private Actor author
- The document's author.
May be an organization, a human being, etc.
PLAIN_TEXT_CONTENT
public final static String PLAIN_TEXT_CONTENT
SUBTYPE_SEPARATOR
public final static String SUBTYPE_SEPARATOR
TEXT_CONTENT
public final static String TEXT_CONTENT
title
private String title
DocumentImpl
public DocumentImpl(String title, Actor author)
getAuthor
public Actor getAuthor()
getText
public String getText(Locale locale)
- Get the document plain text, if available.
- Returns: A String, or null if not available.
getTitle
public String getTitle()
getWordCount
public int getWordCount(Locale locale)
- Words are counted between punctuation like " ,'.:?;!()[]/{}+=
- 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)
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class org.rr0.im.business.actor.Actor
- The document's author.
May be an organization, a human being, etc.
to Class java.lang.String