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

Field Summary
 private Actorauthor
          The document's author.
 final static StringPLAIN_TEXT_CONTENT
           
 final static StringSUBTYPE_SEPARATOR
           
 final static StringTEXT_CONTENT
           
 private Stringtitle
           

Fields inherited from class org.rr0.im.business.event.TimeableImpl
history

Constructor Summary
DocumentImpl(String title, Actor author)
           

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 class org.rr0.im.business.evidence.RecordImpl
getContent, setContent

Methods inherited from class org.rr0.im.business.event.TimeableImpl
compareTo, equals, getBegining, getDuration, getEnd, getHistory, hashCode, setEndMoment, setTitle

Field Detail

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
Constructor Detail

DocumentImpl

public DocumentImpl(String title, Actor author)
Method Detail

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)

Association Links

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